Is it possible to communicate between different EJBs and between EJB and servlets through JMS? If so, how? Are there links to related references? Your help will be appreciated.

karan oberai

Communication between EJBs and servlets is very much possible. In fact, one of the advantages of JMS is that it can be used to link very different applications running on different environments or separate JVMs. What you need to have is a message producer and consumer each at both levels, i.e., at your EJB side as well as on your servlets. So, for your servlet to communicate with EJB it would have to send a request via a message producer (to a named destination like a queue or topic), which would be read by the EJB's message consumer on the other end, and vice versa.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact