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 » EmailOutput Node : Attachment and exception in email body

Post new topic  Reply to topic
 EmailOutput Node : Attachment and exception in email body « View previous topic :: View next topic » 
Author Message
snazz
PostPosted: Fri Mar 18, 2011 4:39 am    Post subject: EmailOutput Node : Attachment and exception in email body Reply with quote

Newbie

Joined: 18 Mar 2011
Posts: 2

Tryin 2 send input msg as attachment.
Also exception list in the email body, is it psibl ?!
Ne pointers ??

TIA
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Mar 18, 2011 4:45 am    Post subject: Reply with quote

Jedi Knight

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

Yes, it is possible.

In your try/catch logic, capture the Exception List message tree and populate additional payload data based on the contents of the tree.

Here is the tree diagram. From this, you should be able to figure out what parts you want in your email message.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac00520_.htm
_________________
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 Mar 18, 2011 5:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

That's an odd link.

It neither refers to the MIME domain nor to ExceptionList.

And points to an InfoCenter that doesn't have documentation on EmailOutput node.

snazz- Try
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ac66350_.htm

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ac30000_.htm

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ac16830_.htm

And remember that ExceptionList is not directly serializable, you have to copy fields into a different parser that is.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Mar 18, 2011 5:21 am    Post subject: Reply with quote

Jedi Knight

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

Ooops, you right Jeff. I meant to send the Exception List tree link. Thanks for catching that one. Sometimes the link in the bar at the top does not match the content in the window on the InfoCenter website.
_________________
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 Mar 18, 2011 5:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
Ooops, you right Jeff. I meant to send the Exception List tree link. Thanks for catching that one. Sometimes the link in the bar at the top does not match the content in the window on the InfoCenter website.


That's true. I have had to learn to double-check this at all times... usually with right-click "Show only this frame" in Firefox. There's also the "Show in Table of contents" button in the top-right button bar of the InfoCenter, right next to the print button.

Although how you grabbed the v6.0 infocenter in the first place, I'm not sure.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Mar 18, 2011 6:47 am    Post subject: Reply with quote

Jedi Council

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

I've put the original message and the exceptionlist into an email as attachments.

The issue comes when you want to preserve their original format etc. My solution was (on V6.0) to use the zip node support pack. This is no good on 6.1 or 7.0. So, since then I've used a JCN to zip up the items which can be added as attachments to the email.
I've created an HTML email with the main reason code (involves walking the exceptionList...) and other pertinent information in the Subject line.

It can be done but it is not an OOTB solution.
_________________
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
mqjeff
PostPosted: Fri Mar 18, 2011 6:57 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Depending on the box in question, using Monitoring Events could provide a relatively OOTB solution.

Particularly if something like Omegamon were involved.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Mar 18, 2011 9:30 am    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:
Depending on the box in question, using Monitoring Events could provide a relatively OOTB solution.

Particularly if something like Omegamon were involved.


The big downside of this is the fact that not all input/output nodes include the payload in the monitoring Message.
_________________
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
snazz
PostPosted: Wed Mar 23, 2011 6:44 am    Post subject: Reply with quote

Newbie

Joined: 18 Mar 2011
Posts: 2

knw hw to get exception msg in email body : wil cnvrt d exception msg in 2 blob format in compute node before EmailOutput.

But ple guide me hw m gna parse exception list f faild xml and cnvrt it into msg

TIA
Snazz
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Mar 23, 2011 9:32 am    Post subject: Reply with quote

Jedi Council

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

snazz wrote:
knw hw to get exception msg in email body : wil cnvrt d exception msg in 2 blob format in compute node before EmailOutput.

But ple guide me hw m gna parse exception list f faild xml and cnvrt it into msg

TIA
Snazz

Eh?
We don't talk this strange language here. This is not twitter. This is not an SMS/Text messaging system.
_________________
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
mqjeff
PostPosted: Wed Mar 23, 2011 9:37 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

As I said, ExceptionList is not serializable directly. You must copy it to a different tree that is.
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 » EmailOutput Node : Attachment and exception in email body
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.