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 » Can change format of payload in JCN?

Post new topic  Reply to topic
 Can change format of payload in JCN? « View previous topic :: View next topic » 
Author Message
mahesh2069
PostPosted: Fri Jun 28, 2013 9:25 am    Post subject: Can change format of payload in JCN? Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Can We change format of input message in Java Compute Node.
Like if input is xml ,I need to change it to MRM.

How can I set MQMD properties like MessageSet ,and MessageType ,and Directly set message format?

Can I set these properties like compute node ..
Is it work in JCN?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jun 28, 2013 9:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You can use any transformation node you want to change a message from one format to the other. ESQL Compute transformation node is usually more efficient than a JCN to do this particular conversion.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mahesh2069
PostPosted: Fri Jun 28, 2013 9:41 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Hi lancelotlinc,
Yes , I can use Reset Content Descriptor,or in Compute node I can change properties ,I can achieve it.

But I have to work on Java Compute Node, for that transformation.

Just for back up,Is there any necessity to transform format in JCN..

How can I do it?

Please give idea to solve this issue?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jun 28, 2013 10:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

ResetContentDescriptor does two things. One, it sets the necessary fields in the Properties tree to match the new format. Two, it creates a new logical message tree that has a parser attached that matches the new format.

Both of these things can be done in JavaCompute node per the explicit examples in the Info Center.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jun 28, 2013 10:23 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

आप अन्य करने के लिए एक प्रारूप से एक संदेश बदलना चाहते हैं किसी भी परिवर्तन नोड का उपयोग कर सकते हैं. ESQL कंप्यूट परिवर्तन नोड आम तौर पर इस विशेष रूपांतरण करने के लिए एक JCN से अधिक कुशल है.

mqjeff कहा
ResetContentDescriptor दो बातें करता है. एक, यह नया प्रारूप मैच के लिए गुण पेड़ में आवश्यक फ़ील्ड्स सेट. दो, यह नया प्रारूप है कि मैच जुड़ी एक विश्लेषक है कि एक नई तार्किक संदेश पेड़ बनाता है.

इन दोनों चीजों की जानकारी केंद्र में स्पष्ट उदाहरण प्रति JavaCompute नोड में किया जा सकता है.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Jun 28, 2013 11:55 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
Gusto ba kamo nga sa pag-usab sa mga mensahe gikan sa usa ka format ngadto sa laing binurotan, hubag makagamit sa bisan unsa nga pagbag-o. Gikasal ESQL sa pagproseso sa pag-usab niining piho nga kalampusan mao ang kasagaran nga mas hapsay nga nga makabaton sa usa ka JCN.


I'm not so sure that JCN is really more efficient.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jun 28, 2013 11:59 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Definitely lost in the translation there !

For clarity - ESQL is designed to be able to traverse the LMT (Logical Message Tree). Java is a general purpose language which can also traverse the LMT ; however, its a little more cumbersome to do so in Java.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Fri Jun 28, 2013 2:19 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

lancelotlinc wrote:
Java ... can also traverse the LMT ; however, its a little more cumbersome ...

Is it the reading/writing the source code that's more cumbersome, or is the actual execution less efficient for Java than for ESQL? If it's the latter, then how significant is the difference in performance?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jun 30, 2013 4:31 pm    Post subject: Reply with quote

Grand High Poobah

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

rekarm01 wrote:
lancelotlinc wrote:
Java ... can also traverse the LMT ; however, its a little more cumbersome ...

Is it the reading/writing the source code that's more cumbersome, or is the actual execution less efficient for Java than for ESQL? If it's the latter, then how significant is the difference in performance?

Unless you need to squeeze the last erg of performance out of the code, the difference between Java and ESQL is of little to no relevance.
What is more important is the way of writing your code.
Known pitfalls in Java are the way to write an XPATH query and making sure you have a finally msg.clear().
Known pitfalls in ESQL are using to few references and indexes in loops.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
vishnurajnr
PostPosted: Mon Jul 01, 2013 1:14 am    Post subject: Reply with quote

Centurion

Joined: 08 Aug 2011
Posts: 134
Location: Trivandrum

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac20805_.htm
_________________
-------
A man is great by deeds, not by birth...!
Back to top
View user's profile Send private message Visit poster's website
lancelotlinc
PostPosted: Mon Jul 01, 2013 3:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

rekarm01 wrote:
lancelotlinc wrote:
Java ... can also traverse the LMT ; however, its a little more cumbersome ...

Is it the reading/writing the source code that's more cumbersome, or is the actual execution less efficient for Java than for ESQL? If it's the latter, then how significant is the difference in performance?


The performance suffers slightly in V7 (the last time I measured it) due to the XPath query operations. The difference is so slight, its not a big deal.

When I refer to efficiency in this context, I'm speaking about the ease of reference through the code by the developers.

For example, InputRoot.SOAP.Body.mynamespace:SomeFieldReference is a very easy construct to code, with variations repetitively modeled very quickly. No muss, no fuss.

ESQL is a purpose-built language for just that: quickly and easily referring to the LMT. Java is general purpose, and works very well.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Mon Jul 01, 2013 3:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

vishnurajnr wrote:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac20805_.htm


Whats the point of this post? I don't get your meaning?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Can change format of payload in 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.