This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JForum and the fly likes JavaMail provider via jndi lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "JavaMail provider via jndi lookup" Watch "JavaMail provider via jndi lookup" New topic
Author

JavaMail provider via jndi lookup

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Can I configure jforum to get the JavaMail provider via jndi lookup?
[originally posted on jforum.net by rockit]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
......I mean similar to the database.datasource.name for datasource lookup. That is configured in the SystemGlobals.properties but I can't find anything for the mail provider. Will I have to modify Spammer class to do the lookup instead of getting parameters from the config file? Anyone done this ?
[originally posted on jforum.net by rockit]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Yes, this will have to be a modification and no I don't think anyone has done this.

A possible way to do this and not have to maintain a separate jForum source stream would be to create a Context Listener that will update the jforum-custom.conf mail settings with the information from JNDI when the jForum context was started. This would be totally independent of the version of jforum installed.




[originally posted on jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaMail provider via jndi lookup