Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Asynchronous JMSWebService

Rishi Singh
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Problem BackGround:
I am trying to run the asynchronous JMS WebService given in the example
I have created the two destinations i.e a queue and a topic in the 9iDB as demonstrated in the exmaple.
The JMSWebService has two methods send() and recieve.
There is a MDB which acts as a JMSListener and listens at the Queue and then does the processing
of the messages found in the Queue in its onMessage(Element e) method.The MDB after doing the processing is
supposed to write the output of the processing in another destination...i,e a Topic .from this topic the
JMSWebService receive() reads the results posted by the MDB to the Topic.
Problem Context:
I have created a stub class out of the wsdl file and when i try to send a xml request wrapped in a w3c.Document
Element by invoking the send() method it writes to the Queue.After this the EJB Container needs to delegate the
posting of a new message in the Queue to the MDB which is not happening because the onMessage() of the MDB is
not invoked.The JMSWebService meanwhile invokes the read() method on the second destination i.e the Topic, where
the MDB is supposed to post the result of its onMessage().Since is finds nothing it waits in an infinite loop.
Q1. Why is the onMessage() method not invoked by the container.
Q2. what are the pre-requisites for i missing something.
Q3. How does a developer check the messages posted on a destination.
Its a bit urgent...iam in middle of putting a asynchronous framework for our on-going project.Any pointers
would be highly appreciated.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic