Question

I have an inbox application, jsf web application, using javamail at the business layer and JAMES3 as a mailserver. Actually i didn't find any benefit from deploying my application in glassfish at the level of messaging. Does anybody know what are the benefits of the session created in application server ?

Is there any reference or pdf or something like tutorial to illustrate everything related to javamail in enterprise environmet not standard one ?

Was it helpful?

Solution

The application server manages the JavaMail Session object for you as an administered object, allowing you to reconfigure it without changing your application code. Of course, this depends on you accessing the Session as a Java EE resource, e.g., using @Resource to inject it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top