0 Replies Latest reply: Jun 24, 2012 3:26 PM by Cristian Prevedello RSS

close method on LogicalHandler not called

Cristian Prevedello Newbie

We just transferred our application from glassfish to jboss as 7 (best thing ever!!)

 

Everything works smoothly except the close method on LogicalHandler is not called. handleMessage and handleFault are called, but not close method.

 

public class WebServiceMessageHandler implements LogicalHandler<LogicalMessageContext>

{

    public WebServiceMessageHandler()

    {

        

    }

   

    @Override

    public void close(MessageContext context)

    {

     QName qname=(QName)context.get( MessageContext.WSDL_OPERATION);

 

     DataLayerTransactionManager.RollBackTransactions();

               

  System.out.println("Closing "+qname.getLocalPart()+" - "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(Calendar.getInstance().getTime()));

    }

 

 

 

@WebService(name = WSDAOFaseA", serviceName="WSDAOFaseAService" )

@SOAPBinding

(

style = SOAPBinding.Style.DOCUMENT,

use = SOAPBinding.Use.LITERAL,

parameterStyle = SOAPBinding.ParameterStyle.WRAPPED

@HandlerChain(file="handler-chain.xml")

public class WSDAOFaseA extends com.xx.ServiceLogic.impl.WSDAOFaseA