Here is the preeliminary format.
<mail-session>
| <mail-server>
| <address-filter>
| <include>.+(a)jbpm.org</include>
| <exclude>.+(a)jboss.com</exclude>
| </address-filter>
| <session-properties>
| <property name='mail.host' value='localhost' />
| <property name='mail.user' value='aguizar' />
| <property name='mail.from' value='noreply(a)jbpm.org' />
| </session-properties>
| </mail-server>
| </mail-session>
Some notes:
It is not particularly easy to make the address filter implementation pluggable, and the
usefulness of a filter other than a pattern matcher is doubtful. So I have turned the
AddressFilter interface into a concrete class, and absorbed the functionality of
WildCardAddressFilter.
Element session-properties is parsed via PropertiesBinding, so properties can be read from
an external file, resource or URL as well. The properties are used to create a
javax.mail.Session
Multiple mail-server elements can be specified.
MailSessionWireTest was added to test correct parsing
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224187#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...