it.eng.spago.dispatching.jmschannel
Class JmsAdapterMDB

java.lang.Object
  extended byit.eng.spago.dispatching.jmschannel.JmsAdapterMDB
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener, java.io.Serializable

public class JmsAdapterMDB
extends java.lang.Object
implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener

See Also:
Serialized Form

Constructor Summary
JmsAdapterMDB()
           
 
Method Summary
 void ejbCreate()
          An ejbCreate method as required by the EJB specification.
 void ejbRemove()
           
 void onMessage(javax.jms.Message message)
           
 void setMessageDrivenContext(javax.ejb.MessageDrivenContext newContext)
          Set the associated context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsAdapterMDB

public JmsAdapterMDB()
Method Detail

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException
Specified by:
ejbRemove in interface javax.ejb.MessageDrivenBean
Throws:
javax.ejb.EJBException

setMessageDrivenContext

public void setMessageDrivenContext(javax.ejb.MessageDrivenContext newContext)
                             throws javax.ejb.EJBException
Set the associated context. The container calls this method after the instance creation.
The enterprise bean instance should store the reference to the context object in an instance variable.
This method is called with no transaction context.

Specified by:
setMessageDrivenContext in interface javax.ejb.MessageDrivenBean
Parameters:
newContext - A MessageDrivenContext interface for the instance.
Throws:
javax.ejb.EJBException - Thrown by the method to indicate a failure caused by a system-level error.

onMessage

public void onMessage(javax.jms.Message message)
Specified by:
onMessage in interface javax.jms.MessageListener

ejbCreate

public void ejbCreate()
An ejbCreate method as required by the EJB specification. The container calls the instance?s ejbCreate method immediately after instantiation.