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 ?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top