When using two-way Web service communications using SOAP over JMS, it can be beneficial to configure a permanent replyTo queue on a JAX-RPC Web services client to prevent the client from having to create a temporary reply queue each time a Web service request is made.
Note: To set the permanent replyTo queue using any of these options, only client-side configuration is necessary. There is no configuration necessary on the Web service provider side.
jms:/queue?destination=jms/MyRequestQueue&connectionFactory= jms/MyCF&replyToDestination=jms/MyReplyQueue&targetService=MyService
The client uses the JAX-RPC Stub or Call object to invoke the Web service.
((javax.xml.rpc.Stub)stub)._setProperty(com.ibm.wsspi.webservices.Consta nts.JMS_REPLY_QUEUE_JNDI_NAME, "jms/Permanent_Q");
The value of the property is a String.
java -Dcom.ibm.websphere.webservices.JMSReplyQueueJndiName=jms/Permanent_Q
Set a JVM system property using the administrative console for the application server which runs the Web service client application.
To set custom properties, connect to the administrative console and navigate to the Java virtual machine custom properties panel.
Servers > Application Servers > server_name > Java and Process Management -> Process Definition -> Java Virtual Machine -> Custom Properties -> New