Author |
Message
|
sai kumar adduri |
Posted: Wed Jul 03, 2013 9:36 am Post subject: event monitoring |
|
|
Acolyte
Joined: 04 Apr 2013 Posts: 73
|
I want to create a failure event in the Msgflow and capture the Failure event with the Exception details and I need capture the exact
failure reason from the RecoverableException .
so I need to modify the "EventPayload" while creating the Failure events.
How do I write an Xpath expression for this |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jul 03, 2013 9:49 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
sai kumar adduri |
Posted: Mon Jul 08, 2013 6:20 am Post subject: |
|
|
Acolyte
Joined: 04 Apr 2013 Posts: 73
|
how do i traverse through the exception list, because it will be dynamically increasing . is it possible with X-Path |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jul 08, 2013 6:25 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
sai kumar adduri wrote: |
how do i traverse through the exception list, because it will be dynamically increasing . is it possible with X-Path |
Yes, its possible. ESQL is a better choice. If you attend the training or read the InfoCentre, you will find out how to traverse a dynamic Logical Message Tree. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 08, 2013 8:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
lancelotlinc wrote: |
sai kumar adduri wrote: |
how do i traverse through the exception list, because it will be dynamically increasing . is it possible with X-Path |
Yes, its possible. ESQL is a better choice. If you attend the training or read the InfoCentre, you will find out how to traverse a dynamic Logical Message Tree. |
Only ESQL is not a choice while defining an event. The OP will have to use X-Path.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
sai kumar adduri |
Posted: Tue Jul 09, 2013 12:22 am Post subject: |
|
|
Acolyte
Joined: 04 Apr 2013 Posts: 73
|
yes exactly , how do we do this with x path(loop through the exception list) |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jul 09, 2013 3:09 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
fjb_saper wrote: |
lancelotlinc wrote: |
sai kumar adduri wrote: |
how do i traverse through the exception list, because it will be dynamically increasing . is it possible with X-Path |
Yes, its possible. ESQL is a better choice. If you attend the training or read the InfoCentre, you will find out how to traverse a dynamic Logical Message Tree. |
Only ESQL is not a choice while defining an event. The OP will have to use X-Path.  |
I'm not sure I follow you saper. You mean THROW keyword does not work in ESQL? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
sai kumar adduri |
Posted: Tue Jul 09, 2013 3:25 am Post subject: |
|
|
Acolyte
Joined: 04 Apr 2013 Posts: 73
|
I need to write an x path expression in event monitoring ,in event pay load , to capture error text from the exception tree , Is It possible to do this with x path , not by esql . |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jul 09, 2013 3:36 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
@lancelotinc : The OP is configuring Monitoring Events on the node properties. He/she is specifying some additional data which is to be extracted from the message assembly and included with the monitoring event.
The monitoring properties page allows the paths to the additional data to be specified as a list of XPaths ( ESQL path reference syntax is also allowed ). So the ESQL THROW statement is not an option. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jul 09, 2013 4:06 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
sai kumar adduri |
Posted: Tue Jul 09, 2013 4:23 am Post subject: |
|
|
Acolyte
Joined: 04 Apr 2013 Posts: 73
|
great ,exactly this is what i need to do
but how to do this , Is there any solution for this |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jul 09, 2013 5:37 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
how do i traverse through the exception list, because it will be dynamically increasing . is it possible with X-Path |
XPath is a declarative language. You do not write loops - you write an XPath query the describes the data that you want to extract.
If you want all of the data in the ExceptionList, then why not simple include all of the ExceptionList tree in the event? |
|
Back to top |
|
 |
|