Hi all! Are annotations such as @Resource possible to use?
If I use
session = ctx.lookup("java:/comp/env/mail/Session”);
it works fine.
If I use
@Resource(name="java:/comp/env/mail/Session”)
Session session;
or
@Resource(mappedName="java:/comp/env/mail/Session”)
Session session;
or
@Resource(lookup="java:/comp/env/mail/Session”)
Session session;
it does not work, although the session is not null (assumes the smtp host as
localhost)
/rp
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
