[jboss-user] [JBoss Seam] - Is it possible to send mail from asynchronous method

piotr.walczyszyn do-not-reply at jboss.com
Sun Feb 18 05:30:09 EST 2007

In my scenario I would like to send mails using seam-mail from asynchronous methods. The problem is that context of asynchronous method doesn't contain my objects that I would like to use within the body of my message and also for recipients address. I tried to inject manually using any of the following Contexts methods. 
Contexts.getEventContext().set("newUser", user);
  | Contexts.getConversationContext().set("newUser", user);
  | Contexts.getSessionContext().set("newUser", user);
  | Contexts.getPageContext().set("newUser", user);
  | Contexts.getBusinessProcessContext().set("newUser", user);
  | Contexts.getMethodContext().set("newUser", user);

Anyone has any idea how to solve this issue?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018478#4018478

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018478

More information about the jboss-user mailing list