Hi 1) which jndi name? maybe a conflict with standard jndi naming 2) new InitialContext().lookup(name) 3) maybe test on 1.7.1 as well
Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-09-18 21:31 GMT+02:00 sithmein <[email protected]>: > 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.
