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 » WebSphere Message Broker (ACE) Support » ResetContentDescriptor in java compute node

Post new topic  Reply to topic
 ResetContentDescriptor in java compute node « View previous topic :: View next topic » 
Author Message
4integration
PostPosted: Wed May 30, 2007 2:12 am    Post subject: ResetContentDescriptor in java compute node Reply with quote

Disciple

Joined: 04 Sep 2006
Posts: 197
Location: Gothenburg, Sweden

Hello,

I am using JText adapter with the support pack IA9F (sending files as BLOB).
The MQInout node takes the BLOB in MRM domain.
Then I need to check the field "InputFilename" to determine and set what message set/type/format to use, in a Java compute node, the same as what the ResetContentDescriptor does.

How can I perform the same functionality as RCD node in a JCN ???
_________________
Best regards
4 Integration
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 30, 2007 3:57 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

By adjusting the values of Properties.MessageSet, Properties.MessageType, and Properties.MessageDomain, and etc.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
4integration
PostPosted: Wed May 30, 2007 4:28 am    Post subject: Reply with quote

Disciple

Joined: 04 Sep 2006
Posts: 197
Location: Gothenburg, Sweden

Thanks, I suspected that RCD node only did some updates in Properties.

How can do a re-parse of the message?
_________________
Best regards
4 Integration
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 30, 2007 5:40 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

All parsing in Broker is performed on demand.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
4integration
PostPosted: Wed May 30, 2007 10:34 pm    Post subject: Reply with quote

Disciple

Joined: 04 Sep 2006
Posts: 197
Location: Gothenburg, Sweden

Thanks.
I have a BLOB in the message tree (input) and have a JCN which identifies the message and set the RCD node equivalent here according to:

Code:
outAssembly.getMbMessage().getRootElement().evaluateXPath("./?Properties/?MessageDomain[set-value('MRM')]");
outAssembly.getMbMessage().getRootElement().evaluateXPath("./?Properties/?MessageSet[set-value('" + messageSetId + "')]");
outAssembly.getMbMessage().getRootElement().evaluateXPath("./?Properties/?MessageType[set-value('" + messageType + "')]");
outAssembly.getMbMessage().getRootElement().evaluateXPath("./?Properties/?MessageFormat[set-value('" + messageFormat + "')]");


Then I have a Trace node that should re-parse the message (as suggested in http://www.mqseries.net/phpBB2/viewtopic.php?t=4025 ) and after that another JCN to handle the transformation.

But the message is not re-parsed into MRM...why?
_________________
Best regards
4 Integration
Back to top
View user's profile Send private message
4integration
PostPosted: Sun Jun 03, 2007 9:14 pm    Post subject: Reply with quote

Disciple

Joined: 04 Sep 2006
Posts: 197
Location: Gothenburg, Sweden

Using the RCD node with the same values gives a correct behavior so RCD does more than I do in my code.

Would be great to get understanding what more actions are needed so if you have some input I would be pleased.
_________________
Best regards
4 Integration
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 » WebSphere Message Broker (ACE) Support » ResetContentDescriptor in java compute node
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.