Search code examples
jakarta-eemavenjbossseamjakarta-mail

Example of Java EE MDB email receiver


Is there an example available of a Maven-based (or Ant) implementation for a Java EE MDB email receiver?

I mean something like described on https://community.jboss.org/wiki/InboundJavaMail

But, when trying to implement this myself I easily come into a dependency hell.


Solution

  • The Java EE 6 SDK includes a "mail connector" sample program. The source code is here. It includes a Resource Adapter that uses JavaMail, and an MDB to receive messages.