I probably have misunderstood the @Resource annotation. I try to inject my mail session in a EJB3.
When I write ... Session is not injected | @Resource(mappedname="java:/Mail" Session session; If I write ... it works fine | @Resource SessionContext ctx; | public .... (){ | ctx.lookup("java:/Mail") | } | I believed that this two syntax was equivalent. What did I miss ? Is it possible to inject the mail session ? I only find a solution in writting jboss.xml and ejb-jar.xml. But in that case, using injection is much more complex than the lookup. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080905#4080905 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080905 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user