[jboss-dev-forums] [JBoss ESB Development] - how to have more than 1 templates in one service action?
sbutt
do-not-reply at jboss.com
Fri Oct 2 07:35:26 EDT 2009
Hi All,
I have defined an ESB service with a single action containing more than 1 xslt templates.
| <service category="IBN" name="Broker" description="The implementation of dispatcher for event notification">
| <listeners>
| <jms-listener name="JMS-Gateway" busidref="IBNBroker"/>
| </listeners>
| <actions mep="OneWay">
| <action name="registerSubscriber" class="com.traveltainment.integra.middleware.ibn.IBNBroker">
| <property name="service-template-pool-name" value="BrokerServiceRegister"/>
| <property name="xsl-resources" value="/META-INF/xsl/RegisterSubscriber.xsl"/>
| <property name="templateRegister" value="/META-INF/xsl/RegisterSubscriber.xsl"/>
| <property name="xsl-resources" value="/META-INF/xsl/SubscribingRQ2RS.xsl"/>
| <property name="template" value="/META-INF/xsl/SubscribingRQ2RS.xsl"/>
| <property name="xsl-resources" value="/META-INF/xsl/RS2SOAP.xsl"/>
| <property name="templateResponse" value="/META-INF/xsl/RS2SOAP.xsl"/>
| <property name="select-query" value="SELECT url, protocol, host, jms_destination
| FROM IntegraDB.ibn_event_registry"/>
| </action>
| </actions>
| </service>
|
The reason why I have more than 1 templates in my action is because I want to stay inside my IBNBroker and apply different transformation.
If I define a separate action for each template then the control would be shifted.
Now the problem I am facing in my above templates' definition is that at runtime I get the exception that one of the templates is null. I don't know why is it occurring? How can i have more than 1 templates in the same template pool inside a single action?
thanks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258382#4258382
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258382
More information about the jboss-dev-forums
mailing list