You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ines Dannehl <In...@lpsolutions.com> on 2008/10/23 11:51:51 UTC

[Axis2]: Messages lost with JMS

 

Hi community,

 

I use Axis2 (version 1.1.1) webservices with JMS in the following
environment:

 

*	ActiveMQ as standalone JMS server
*	JBoss with the deployed Axis2 webservice as webserver

 

I send SOAP messages to an ActiveMQ. The webservice processes the
message and a response is generated. The response is sent to an ActiveMQ
response queue.

This works fine until the JBoss falls down for some reasons. In this
case the message is lost because it was acknowledged after receiving
(before it was processed and before the response was sent). 

When Axis2 initializes the JMS Listener a session in AUTOACKNOWLEDGE
mode is created which is not transacted (hard coded). Therefore the
message is acknowledged when it arrives at the message receiver. When
the JBoss is killed in at this point the message can not be processed
but it is already removed from the queue.

I want to have the scenario that the message is acknowledged not until a
response is sent to the response queue. Is there a possibility to
configure the Axis2 in this way or is there a possibility to patch it?

 

Regards

Ines