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 » Message Broker - java compute node to read email

Post new topic  Reply to topic
 Message Broker - java compute node to read email « View previous topic :: View next topic » 
Author Message
xcuseme123
PostPosted: Sun Jun 30, 2013 9:21 am    Post subject: Message Broker - java compute node to read email Reply with quote

Apprentice

Joined: 30 Jun 2013
Posts: 33

Flow 1:
Timer node -->Javacompute node -->ESQL computenode-->MQOutput

Java compute node is used to connect to email box using IMAP and store blob message in enviornment, ESQL compute node is used write blob message stored in Enviornment tree to MQ.

Flow2: MQInput -->RCD node-->Compute node

This flow will retrieve the message from MQ and ResetContentDescriptor(RCD) node is used to reset the domain to get message in MIME domain.

Above design is working fine from end-end for all the type of emails . But facing issue when any Outlook email is having another email as a attachment and fails in RCD node. Error message : Content-Type value not supported - 1

I have tried by replacing RCD node by compute nide with ESQL parse code. It did not worked.

Any suggestion please ? ..
Back to top
View user's profile Send private message
xcuseme123
PostPosted: Sun Jun 30, 2013 9:24 am    Post subject: update to previous my post Reply with quote

Apprentice

Joined: 30 Jun 2013
Posts: 33

if any outlook email is having another email as attachment , such MIME message contains Content-Type: message/rfc822
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Jun 30, 2013 5:01 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why wouldn't you just use an EmailInput node?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Jun 30, 2013 9:54 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

mqjeff wrote:
Why wouldn't you just use an EmailInput node?


Perhaps 'The Requirement' won't let the OP use it?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 01, 2013 4:02 am    Post subject: Reply with quote

Jedi Knight

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

smdavies99 wrote:
mqjeff wrote:
Why wouldn't you just use an EmailInput node?


Perhaps 'The Requirement' won't let the OP use it?


No doubt established by his/her manager.

"We paid a gazillion pesos for this wonderful product, but we are prohibiting your use of the most obvious nodes."
_________________
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: Mon Jul 01, 2013 4:11 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
smdavies99 wrote:
mqjeff wrote:
Why wouldn't you just use an EmailInput node?


Perhaps 'The Requirement' won't let the OP use it?


No doubt established by his/her manager.

"We paid a gazillion pesos for this wonderful product, but we are prohibiting your use of the most obvious nodes."


Some editions of the product, that do not cost one gazillion, but only about a third of that, do not *allow* use of certain nodes.

You can't use ESQL in Broker Express edition! At all! No Compute node!

I forget if EmailInput is one of those or not.

This has nothing to do with the original question or the original poster.

It's also possible that xcuseme123 can't use EmailInput node because the mail server *only* supports IMAP and the EmailInput node doesn't like IMAP. I'm not saying that's true one way or the other.

Further babbling about this does nothing to assist xcuseme123. Nothing more can be gained from this conversation until more information is received from xcuseme123 - like what the exact ContentType that is "not supported" is, or what version of Broker is being used.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 01, 2013 4:40 am    Post subject: Reply with quote

Jedi Knight

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

I'll concede to that.

Here is a list of which nodes are in which editions:

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

I had a manager tell me once that "we don't use Trace nodes here." The last time I checked, Trace nodes are available in all editions.
_________________
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
xcuseme123
PostPosted: Mon Jul 01, 2013 2:43 pm    Post subject: Reply with quote

Apprentice

Joined: 30 Jun 2013
Posts: 33

Hi All,

Thanks for your all suggestions. Apology I have not mentioned Message Broker version am using .. Am using 6.1.0.9 version ..
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jul 01, 2013 10:46 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

xcuseme123 wrote:
Hi All,

Thanks for your all suggestions. Apology I have not mentioned Message Broker version am using .. Am using 6.1.0.9 version ..


Ok. Thanks for that. Then your JCN solution is probably the only way to go. Remember that we are in the final stages before this version is EOL'd. You should really be moving to something like V8.0.0.2. Then you could use the emailInput Node.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
xcuseme123
PostPosted: Tue Jul 02, 2013 9:49 am    Post subject: Reply with quote

Apprentice

Joined: 30 Jun 2013
Posts: 33

Yeah , that will be good suggestion.. in JCN how to handle such MIME messages ?..

Currently in JCN , am doing like below piece of code:
Message retrieveEmail= null;
..
//retrieveEmailHelper code connect to Outlook email box using IMAP
..

retrieveEmail= retrieveEmailHelper.getMessageByUid(messageIds[i]);

ByteArrayOutputStream bos = new ByteArrayOutputStream();
//writing email in bytestream
retrieveEmail.writeTo(bos);

//later stored email in bos is being written to Environment using
ConstructEmailData.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "BLOB", bos.toByteArray());

*************************

How I can write actual MIME message into Enviornment instead of blob message ??
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 » Message Broker - java compute node to read email
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.