FileDocCategorySizeDatePackage
EmailMDB.javaAPI DocJBoss 4.2.12121Fri Jul 13 20:54:52 BST 2007org.jboss.tutorial.interceptor.bean

EmailMDB

public class EmailMDB extends Object implements javax.jms.MessageListener

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectmdbInterceptor(javax.interceptor.InvocationContext ctx)

      System.out.println("*** EmailMDB.mdbInterceptor intercepting");
      return ctx.proceed();
   
public voidonMessage(javax.jms.Message recvMsg)

      System.out.println(
            "\n----------------\n" +
            "EMailMDB - Got message, sending email\n" +
            "----------------");

      //Generate and save email