I currently have a jms request/reply working as a synchronous call. my flow looks like this:
EchoClientService is jax-rs service, EchoClientService has a reference to the EchoReference which uses jms request/replyto to send to queue/Echo.in and get a response from queue/Echo.out.
EchoService and EchoServiceBean listens on queue/Echo.in and responds with a lower case string.
My problem is that I need to insert a proxy in between the EchoService and the EchoClientService such that the flow is:
I've been less than successful with this. What happens is the application hangs when EchoProxyService tries to send to Echo.proxy.in. Any thoughts or insights would be most appreciated.
You may want to use reference binding to send to Echo.out instead of JMS replyTo, as sending to Echo.proxy.in doesn't actually happen until the transaction of receiving from Echo.in is committed in this case, which means it never happens if you use replyTo. JMS binding won't commit until it sends a reply.