Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call a message driven bean from a servlet?

Status
Not open for further replies.

thelordoftherings

Programmer
May 16, 2004
616
IL
Hello,

Lets say I have an MDB that receives Topic messages.
Can someone please show me how to create new MDB from a servlet, receive the messages and remove the MDB?
 
Your servlet would write a message to your JMS Topic. JMS would then instantiate your MDB & run it for you on one of the servers in your cluster (assuming you've set JMS up for clustering).

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
I see, the issue is this:
On load I create 10 MDBs on server startup at it's pool.
What I want is to "take one", using JNDI, read the messages it receives and send it as an output to a JSP page. Assuming I have the MDB, can someone please show me a simple servlet code to do that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top