Can JavaMail be used from a Message Driven Bean? The EJB specifictation requires that the bean implementation must be single-threaded. Isn't JavaMail multi-threaded? If so, can it be used from a Message Driver Bean?

Jens Dibbern

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

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






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