WildFly Mail Resource Adapter

Parent POM for JBoss projects. Provides default project build configuration.

License

License

Categories

Categories

WildFly Container Application Servers
GroupId

GroupId

org.wildfly
ArtifactId

ArtifactId

mail-ra
Last Version

Last Version

1.0.0.Final
Release Date

Release Date

Type

Type

zip
Description

Description

WildFly Mail Resource Adapter
Parent POM for JBoss projects. Provides default project build configuration.
Project Organization

Project Organization

JBoss by Red Hat
Source Code Management

Source Code Management

https://github.com/wildfly/mail-ra.git

Download mail-ra

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • api
  • impl

WildFly Mail RA

Mail inflow resource addapter for WildFly 10

Building

Ensure you have JDK 7 (or newer) installed

java -version

If you need Maven 3.2.5 (or newer) installed you can use it directly

mvn install

Usage example

....
@MessageDriven(
    activationConfig = {
        @ActivationConfigProperty(propertyName = "mailServer", propertyValue = "mail-server-host"),
        @ActivationConfigProperty(propertyName = "userName", propertyValue = "username"),
        @ActivationConfigProperty(propertyName = "password", propertyValue = "password"),
        @ActivationConfigProperty(propertyName = "storeProtocol", propertyValue = "imaps"),
        @ActivationConfigProperty(propertyName = "mailFolder", propertyValue = ""),
        @ActivationConfigProperty(propertyName = "pollingInterval", propertyValue = "5000")
    })
public class MyInboundMailMDB implements org.wildfly.mail.ra.MailListener {

    
    @Override
    public void onMessage(Message msg) {
        //process msg
    }
    
}
org.wildfly

Versions

Version
1.0.0.Final
1.0.0.Alpha3
1.0.0.Alpha2
1.0.0.Alpha1