Hi,

I have a normal web application (no EJB stuff yet) that uses a mail session
resource as described in
http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#JavaMail_Sessions.
This works perfectly if the webapp is deployed in a vanilla Tomcat 7. If I
use the very same webapp and deploy it in TomEE (1.6.0.2) then the object
registered in JNDI is not a javax.mail.Session any more, but an IvmContext.
This causes a class cast exception and the webapp doesn't work any more. I
have two question regarding this issue: 1) why does OpenEJB mess with the
context? 2) How do I access the mail session now in non-EJB classes?

Thanks,

Thorsten



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/OpenEJB-messes-with-InitialContext-tp4671869.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to