Author |
Message
|
xcuseme123 |
Posted: Sun Jun 30, 2013 9:21 am Post subject: Message Broker - java compute node to read email |
|
|
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 |
|
 |
xcuseme123 |
Posted: Sun Jun 30, 2013 9:24 am Post subject: update to previous my post |
|
|
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 |
|
 |
mqjeff |
Posted: Sun Jun 30, 2013 5:01 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Why wouldn't you just use an EmailInput node? |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun Jun 30, 2013 9:54 pm Post subject: |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Mon Jul 01, 2013 4:02 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Mon Jul 01, 2013 4:11 am Post subject: |
|
|
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 |
|
 |
lancelotlinc |
Posted: Mon Jul 01, 2013 4:40 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
xcuseme123 |
Posted: Mon Jul 01, 2013 2:43 pm Post subject: |
|
|
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 |
|
 |
smdavies99 |
Posted: Mon Jul 01, 2013 10:46 pm Post subject: |
|
|
 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 |
|
 |
xcuseme123 |
Posted: Tue Jul 02, 2013 9:49 am Post subject: |
|
|
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 |
|
 |
|