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 » Propagate String from Java Compute node

Post new topic  Reply to topic
 Propagate String from Java Compute node « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Thu Dec 17, 2009 7:53 pm    Post subject: Propagate String from Java Compute node Reply with quote

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
View user's profile Send private message Send e-mail
kimbert
PostPosted: Fri Dec 18, 2009 3:44 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Create the string and put it into the LocalEnvironment tree?
Back to top
View user's profile Send private message
kash3338
PostPosted: Sat Dec 19, 2009 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Sat Dec 19, 2009 6:42 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There's nothing difficult about this at all.
Back to top
View user's profile Send private message
kimbert
PostPosted: Sun Dec 20, 2009 2:28 pm    Post subject: Reply with quote

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
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 » Propagate String from 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.