Hi,
Im using jboss-soa-p.4.2.0.I need to notify the failure and success of my processing in
JBoss ESb.Hence i used org.jboss.soa.esb.actions.Notifier class.
When there is success the notifier works but it does not work in case of exception is
thrown by my custom action class.
My Jboss-esb.xml is :
| <?xml version="1.0"?>
| <jbossesb parameterReloadSecs="5"
|
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trun...
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml...
| <providers>
| <jms-provider connection-factory="ConnectionFactory"
name="JBossMQ">
| <jms-bus busid="quickstartCalGwChannel">
| <jms-message-filter
| dest-name="queue/quickstart_calculator_Request_gw"
dest-type="QUEUE"/>
| </jms-bus>
| <jms-bus busid="quickstartCalEsbChannel">
| <jms-message-filter
| dest-name="queue/quickstart_calculator_Request_esb"
dest-type="QUEUE"/>
| </jms-bus>
| <jms-bus busid="quickstartHelloReq">
| <jms-message-filter dest-name="queue/quickstart_hello_Request"
dest-type="QUEUE"/>
| </jms-bus>
| <jms-bus busid="quickstartHelloESB">
| <jms-message-filter dest-name="queue/quickstart_hello_Request_esb"
dest-type="QUEUE"/>
| </jms-bus>
| </jms-provider>
| </providers>
| <services>
| <service category="CalculatorServiceESB"
description="Calculator" name="CalculatorService">
| <listeners>
| <jms-listener busidref="quickstartCalGwChannel"
is-gateway="true"
| maxThreads="1" name="JMS-Gateway"/>
| <jms-listener busidref="quickstartCalEsbChannel"
maxThreads="1" name="Calculator"/>
| </listeners>
| <actions mep="OneWay">
| <action
|
class="org.jboss.soa.esb.samples.quickstart.calculator.MyCalculatorService"
| name="action1" process="displayMessage"/>
| <action class="org.jboss.soa.esb.actions.SystemPrintln"
name="action2">
| <property name="printfull" value="true"/>
| </action>
| <!-- The next action is for Continuous Integration testing -->
| <action class="org.jboss.soa.esb.actions.TestMessageStore"
name="testStore"/>
| <action class="org.jboss.soa.esb.actions.SystemPrintln"
name="action3">
| <property name="printfull" value="true"/>
| </action>
| <action class="org.jboss.soa.esb.actions.Notifier"
name="notificationAction">
| <property name="okMethod" value="notifyOK"/>
| <property name="exceptionMethod" value="notifyError"/>
| <property name="notification-details">
| <NotificationList type="OK">
| <target class="NotifyConsole"/>
| <target class="NotifyQueues">
| <messageProp name="quickstart"
value="Calculator_Response"/>
| <queue
jndiName="queue/quickstart_calculator_Response_esb_Alert"/>
| </target>
| </NotificationList>
| <NotificationList type="err">
| <target class="NotifyConsole"/>
| <target class="NotifyQueues">
| <messageProp name="quickstart"
value="Calculator_Response"/>
| <queue
jndiName="queue/quickstart_calculator_Response_esb_Alert"/>
| </target>
| <target class="NotifyFiles" >
| <file name="@results.dir(a)/badresult.log" />
| </target>
| </NotificationList>
| </property>
|
| </action> </actions>
| </service>
| </services>
| </jbossesb>
|
org.jboss.soa.esb.samples.quickstart.calculator.MyCalculatorService is my custom action
class which performs some processing.
I want to notify the exception that is outcome of some unusual processing done in this
class.
What should i do?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167881#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...