email - How to use @MailSessionDefinition in Wildfly -


i trying use @mailsessiondefinition configure mailsender in wildfly 8.2. using annotation not enough setup, had use specific xml, present in wildfly. tips?

here code:

@mailsessiondefinition(name = "java:jboss/mail/gmail", host = "smtp.gmail.com", user="user", password="password", transportprotocol = "smtps", from="test@gmail.com", properties = {     "mail.debug=true",     "mail.smtp.port=587",     "mail.smtp.auth=true",     "mail.smtp.starttls.enable=true" }) public class mailconfiguration {  } 


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -