wood burning stoves 2.0*
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
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]
 
Don't get me started about those stupid light bulbs.
 
subject: JavaMail provider via jndi lookup
 
Similar Threads
Service locator as the service?
Confusion Around JNDI Lookups for JMS ConnectionFactory and Destination Objects
ejb
ejb-link
JNDI Connection using struts