File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Configure failover for Jboss Seam mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configure failover for Jboss Seam mail" Watch "Configure failover for Jboss Seam mail" New topic
Author

Configure failover for Jboss Seam mail

Saurabh Kulkarni
Greenhorn

Joined: Mar 11, 2013
Posts: 5
Hello,
I need to implement failover functionality for sending mails using jboss seam. I tried to configure two JNDINames in mail-service.xml. But I'm not getting how i can set 2nd JNDI name in code.
Also, I'm not getting how can i set smtp host in code.
MY Code:



My mail-service.xml:


Can you please help me on either how can i configure & use two JNDIs OR set SMTP host server on the fly for sending mail ?
Thanks a lot in advance.

Regards,
Saurabh
Saurabh Kulkarni
Greenhorn

Joined: Mar 11, 2013
Posts: 5
Can anyone please help me?
Saurabh Kulkarni
Greenhorn

Joined: Mar 11, 2013
Posts: 5
I'm still not able to find any solution.... Can any one help me on this please?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configure failover for Jboss Seam mail
 
Similar Threads
Please Help!! Failed to send email from J2EE app, Jboss 4.2.3 server
configuring JBoss to use Gmail
mail-service.xml - multiple smtp accounts
Trying to send e-mail using JavaMail, JBoss 5, and JNDI
MDB @PostConstruct error