[JBoss ESB Development] - ESB Web Service Client MessageDeliverException problem
by sbutt
Hi Folks,
I'm invoking a WS through:
| org.jboss.soa.esb.client.ServiceInvoker.ServiceInvoker(String serviceCategory, String serviceName) t
| hrows MessageDeliverException
|
|
My method implementation:
|
| protected SOAPMessage invokeService(SOAPMessage message, String category, String service)
| {
| Log logger = LogFactory.getLog(this.getClass());
| SOAPMessage response = null;
| try
| {
| String strInMsg = getString(message);
| Message msg = org.jboss.soa.esb.message.format.MessageFactory.getInstance().getMessage();
| msg.getBody().add(strInMsg);
| msg.getProperties().setProperty("ws-transaction-id", Long.toString(System.nanoTime()));
| Message ret = new ServiceInvoker(category, service).deliverSync(msg, INTEGRAWS_TIMEOUT);
| response = getSOAPMessage((String)ret.getBody().get());
|
| logger.debug("RESPONSE: "+response.getSOAPBody().toString());
|
| }
| catch (Exception e)
| {
|
| response = getSOAPMessage(e);
| logger.error(e);
|
| }
|
|
|
| return response;
|
| }
|
|
but getting this exception:
| [IBNRegistryWSProvider]org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to delive
| r message [header: [ To: JMSEpr [ PortReference < <wsa:Address jms://HH-Linux1.usbeck.de:1099/queue/esb_queue_integra_ibn_broker/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFacto
| ry/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : HH-Linux1.usbeck.de:1099/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : false/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ReplyTo: JMSEpr [ PortReference < <wsa:Address jms://HH-Linux1.usbeck.de:1099/queue/esb_queue_integra_ibn_broker_reply/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : HH-Linux1.usbeck.de:1099/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFacto
| ry/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:message-selector : jbossESBresponseUUID='dd2faa97-8509-449b-bc8f-f4
| 4f643ace16'/>, <wsa:ReferenceProperties jbossesb:persistent : false/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ]] to Service [IBN:Broker]. Check for errors.
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258385#4258385
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258385
15 years, 2 months
[JBoss ESB Development] - how to have more than 1 templates in one service action?
by sbutt
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
15 years, 2 months