Can JavaMail be used from a Message Driven Bean?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shiv_Kumar
Posted On:   Thursday, February 13, 2003 05:48 PM

EJB specs require that the bean implementation must be single-threaded. Isn't JavaMail multi-threaded? If so, can it be used from a Message Driver Bean? I have a JMS Queue that has the messages to be sent

Re: Can JavaMail be used from a Message Driven Bean?

Posted By:   Jens_Dibbern  
Posted On:   Tuesday, March 4, 2003 11:03 AM

You should configure a JavaMail resource for your EJB container and access it by JNDI. It works just like JavaMail in an application without setting up the connection first. You just get it from the JNDI tree.
This should work for your MDB just like it workes for my stateless session bean.



HTH

Jens
About | Sitemap | Contact