![]() |
![]() |
![]() |
![]() |
![]() |
||||||
![]() |
Home | Download | Lists | Issues | ![]() |
||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
||||||
Declaring a JavaMail ResourceThe basics are that any properties listed in the <Resource> element are given directly to the javamail provider via javax.mail.Session.getDefaultInstance(Properties props). Here might be some example properties. openejb.xml <Resource id="SuperbizMail" type="javax.mail.Session"> mail.smtp.host=mail.superbiz.org mail.smtp.port=25 mail.transport.protocol=smtp mail.smtp.auth=true mail.smtp.user=someuser password=mypassword </Resource> You can create as many <Resource> entries like this as you wish, they just have to have a unique 'id'.
OverridingIf you wanted to do a System property or InitialContext property override of the above example mail session, you could do so like this: java ... -DSuperbizMail.mail.smtp.host=localhost |
![]() |
|||||||||
|
![]() |