We have a SOAP over JMS based web service running on Websphere 8.5.5. The web service receives an MQ request message, processes the request and send back the response. All is well.
Now we have a requirement to set the JMSExpirationTime on the MQ Response message, so that if the calling application does not reads the response in a "specified time" from the queue, then the message should expire, and should not remain on the queue forever.
The Web-service is JAX-RPC based SOAP over JMS. Our SOAP Listsner MDB is an extension of JMSListenerMDB(com.ibm.ws.webservices.engine.transport.jms.JMSListenerMDB) which sets the Expiration time by itself IF "the same is set on MQ Request Message else it is set to 0(which is forever)".
How do we set JMSExpirationTime on MQ Response Message, since the message is prepared by IBM API.