Hi, got a quick question regarding javamail resource in TomEE. I have a hard time getting it to work. I have a web app. I've configured the resource as described in http://tomee.apache.org/configuring-javamail.html <http://tomee.apache.org/configuring-javamail.html>
if i use a @resource(name="TestMailProvider") private session mailSession in a statless ejb, the resource is always null. I'm just getting: INFO: Configuring Service(id=TestMailProvider, type=Resource, provider-id=Default Mail Session) INFO: Creating Resource(id=TestMailProvider) INFO: Auto-deploying ejb MailSenderBean: EjbDeployment(deployment-id=MailSenderBean) WARNING: Injection: No such property 'org.waastad.mail.MailSenderBean/mailSession' in class org.waastad.mail.MailSenderBean am I supposed to configure this in web.xml and/or lookup the resource? In embedded tests it seems to work fine... TomEE plus 1.6.0 br hw -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-and-javamail-tp4668436.html Sent from the OpenEJB User mailing list archive at Nabble.com.
