ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Removing element using JCN

Post new topic  Reply to topic
 Removing element using JCN « View previous topic :: View next topic » 
Author Message
gappodi
PostPosted: Wed Dec 05, 2018 9:32 pm    Post subject: Removing element using JCN Reply with quote

Voyager

Joined: 05 Sep 2014
Posts: 76

I am using a JCN inside which I am overriding a parameter for HTTPRequest node dynamically by writing the following code.

Code:
         MbMessage env = contact admin.getLocalEnvironment();
         MbMessage newEnv = new MbMessage(env);
         
         String  url = props.getProperty("einv.cte.sync.URL");
         String  alias = props.getProperty("einv.cte.KeyAlias");
         newEnv.getRootElement().evaluateXPath("string(?Destination/?HTTP/?RequestURL[set-value('" + url + "')])");
         newEnv.getRootElement().evaluateXPath("string(?Destination/?HTTP/?KeyAlias[set-value('" + alias + "')])");


After the HTTPRequest node is done making the web service call, I want to remove these overridden values from the LocalEnvironment. I am able to do so by using an ESQL compute node. However, Is there a way I can achieve the same in a JCN ? Please provide help..

Thanks and Regards,
Maneesh Sharma
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 06, 2018 6:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20695
Location: LI,NY

Have you even looked at the MbElement.delete() method?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gappodi
PostPosted: Thu Dec 06, 2018 6:50 am    Post subject: Reply with quote

Voyager

Joined: 05 Sep 2014
Posts: 76

Got it. Thank you fjb_saper.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Removing element using JCN
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.