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

AccountsMDB

public class AccountsMDB extends Object implements javax.jms.MessageListener
author
Kabir Khan
version
$Revision: 60233 $

Fields Summary
Constructors Summary
Methods Summary
public voidonMessage(javax.jms.Message recvMsg)

      try
      {
         System.out.println(
               "\n----------------\n" + 
               "AccountsMDB - Got message " + ((TextMessage)recvMsg).getText() + "\n" +
               "----------------");
         //Do necessary bookkeeping
      }
      catch (JMSException e)
      {
         throw new RuntimeException(e);
      }