Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail provider via jndi lookup

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
......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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic