[jboss-user] [JBoss Seam] - Mail

KoniKoni do-not-reply at jboss.com
Thu Apr 19 06:53:28 EDT 2007


I checked out today seam 1.2.1 and genereded with seam-gen a application,

if i use mail-api, if call render.. i get follow excpetion:

12:44:08,377 ERROR [Regist] ---------------- Error : org.jboss.seam.core.dispatcher is not installed in components.xml
  | 

Code:

@Name("asynchronousMailProcessor")
  | @AutoCreate
  | public class AsynchronousMailProcessor
  | {
  |    @Asynchronous
  |    public void scheduleSend(@Duration long delay,Usr usr) {
  |       try {
  |          Contexts.getEventContext().set("usr", usr);
  |          Renderer.instance().render("/emailtemplates/registmsg.xhtml");
  |       } catch (Exception e) {
  |          e.printStackTrace();
  |       }
  |    }
  | }



 try{
  |             em.persist(usr);
  |             asynchronousMailProcessor.scheduleSend(3000, usr);
  |             return "/registok.xhtml";
  |             
  |         }catch(Exception e){
  |             log.error("---------------- Error : " + e.getMessage());
  |             log.error(e.getStackTrace());
  |             facesMessages.add("Registrierung fehlgeschlagen, versuchen es später nochmal.");
  |             return null;
  |         }

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

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




More information about the jboss-user mailing list