I am building a session bean which expose a synchronous mode method to its client. In other words, the client is willing to wait until there is result.
And in the jboss server, we have to use asynchronous mode for the processing (for other requirements or other method calls) . So we have implement the internal communication via JMS.
I tried to use the following to receive the JMS repsonse in the session bean :
TopicSession topicSession = TopicConnection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
TopicSubscriber topicSubscriber = topicSession.createSubscriber(topic, selector, false);
Then, the session bean blocks the system.
I have spent a few days for the issue, still got no clue. Please help me. thanks.