|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Propagate String from Java Compute node |
« View previous topic :: View next topic » |
Author |
Message
|
kash3338 |
Posted: Thu Dec 17, 2009 7:53 pm Post subject: Propagate String from Java Compute node |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Hi,
I am using java compute node in MB 6.0. The requiremnet was to fetch the mail from the exchange server inbox and use the content of the mail later in the flow. I am able to acheive this. My doubt is,
As of now, i am fetching the mail using JavaMail API in my Java compute node and propagating the content as BitStream to my next node (which is a compute node). The code is as follows,
// mailStr has the mail content as string
byte []msgByteStreamOut = mailStr.getBytes();
// Sending the mail content as byte array to next node
outMessage.getRootElement().createElementAsLastChildFromBitstream(msgByteStreamOut,MbBLOB.PARSER_NAME,"","","",0,0,0);
Is there any way by which i can send this as a String from my java compute node and read as CHARACTER in my next compute node? Or is there any other way by which i can propagate this mail content?
- Kashyap |
|
Back to top |
|
 |
kimbert |
Posted: Fri Dec 18, 2009 3:44 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Create the string and put it into the LocalEnvironment tree? |
|
Back to top |
|
 |
kash3338 |
Posted: Sat Dec 19, 2009 7:26 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
That is one good approach, but since the mail content may be something like below,
Dear <Name>,
<Some Mail body>
<Signature>
Can this kind of String data stored in an Environment variable? This kind of String is not easy to handle in Java Compute Node. Is there any better approach?? Now i have the mail content in an String variable in my Java compute node, how do i use it in my next compute node? |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Dec 19, 2009 6:42 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There's nothing difficult about this at all. |
|
Back to top |
|
 |
kimbert |
Posted: Sun Dec 20, 2009 2:28 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
This kind of String is not easy to handle in Java Compute Node. |
What exactly is 'not easy' about it? |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|