I inject to javax.mail.session
via e-mail in @Resource
Without any success, I believe that I understand that proper configuration (I want an annotation based solution and do not want XML descriptor)
I have Java I read in the new space of EE6 and understood that I am sending messages through java bean and annotation based solutions. Used for the new Java EE6 connector API, but there is no specimen that includes the end of the solution ...: (
Can someone help me understand / what an example ?
I'm trying to inject javax.mail.session in ejb 3.1 Without any success through the resource, I believe that I need proper configuration (I need an annotation based solution and ML descriptor does not want)
In fact, for @Resource
JavaMail, there is nothing new in EJ 3.1, it was already P.S. OSB and Java is included in EE5 Tutorial, which includes the application server configuration portion (yes, this part is Application Server specific).
For GlassFish v3 (you did not mention it but I suppose you are using GFV3), see:
- < Li> (contains code)
Thanks! But there is no mention about the Java EE6 Connector API solution with Annotation Configuration (SMTP Host + Username + Password + Protocol and etc) ...? Do you know about that topic? Thanks!
Honestly, I do not understand what you are actually trying to do through annotation, using JCA to send an email through an MDB Talking about This is misleading, at least for me you can include some links to point to some things you have seen. Include some reference information.
It is being said that if your question is to actually write custom JCA Mail Resource Adapter, then the following article will help:
Comments
Post a Comment