[JBoss-user] [JBoss jBPM] - Re: Emailing From ActionHandler
Hi Toby, If you dont have a solution yet and don't want to mess around with jndi, you can do this. In your servlet that creates or retrieves the process instance, get the handle of you mail service and place it in the context variable. Since variables are global to a process instance, you can already access that anywhere in your action handlers. Afterwards, remove the variable so it wont be saved in the database. (note: I tried transient variables but it doesn't seem to work, try normal variables instead) Regards, Elmo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916785#3916785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916785 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: Emailing From ActionHandler
Thanks for your suggestion Britt, that is definitely a good option. How about if the email singleton is bound to our Spring WebApplicationContext, not to the tomcat ApplicationContext as previously stated, and I would prefer to retrieve it from here instead of from JNDI? Thanks again, toby View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916343#3916343 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916343 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: Emailing From ActionHandler
What about binding your e-mail class to JNDI and then doing a JNDI lookup in your action handler? -Britt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916203#3916203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916203 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user