com.ail.core.command
Class CommandServerBean

java.lang.Object
  extended by com.ail.core.Component
      extended by com.ail.core.EJBComponent
          extended by com.ail.core.command.CommandServerBean
All Implemented Interfaces:
ConfigurationOwner, CoreUser, java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener

public class CommandServerBean
extends EJBComponent
implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener

Message Driven Bean which listens on a queue for commands to execute.

Version:
$Revision$
Author:
$Author$
See Also:
Serialized Form

Constructor Summary
CommandServerBean()
           
 
Method Summary
 void ejbCreate()
           
 void ejbRemove()
           
 Core getCore()
          Fetch the entry point's instance of the core.
 javax.ejb.EJBContext getSessionContext()
          Returns the context passed to the EJB's setSessionContext method.
 Version getVersion()
          Return the version details of this component.
 VersionEffectiveDate getVersionEffectiveDate()
          A default component implemention returning the time now.
 void onMessage(javax.jms.Message msg)
           
 void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
           
 
Methods inherited from class com.ail.core.EJBComponent
getSecurityPrincipal
 
Methods inherited from class com.ail.core.Component
getConfiguration, getConfigurationNamespace, resetConfiguration, setConfiguration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandServerBean

public CommandServerBean()
Method Detail

setMessageDrivenContext

public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
Specified by:
setMessageDrivenContext in interface javax.ejb.MessageDrivenBean

ejbCreate

public void ejbCreate()

ejbRemove

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

onMessage

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

getSessionContext

public javax.ejb.EJBContext getSessionContext()
Description copied from class: EJBComponent
Returns the context passed to the EJB's setSessionContext method.

Specified by:
getSessionContext in class EJBComponent
Returns:
session context.

getCore

public Core getCore()
Description copied from class: Component
Fetch the entry point's instance of the core.

Specified by:
getCore in class Component
Returns:
The core being used by the entry points.

getVersion

public Version getVersion()
Description copied from class: Component
Return the version details of this component.

Specified by:
getVersion in class Component
Returns:
version details

getVersionEffectiveDate

public VersionEffectiveDate getVersionEffectiveDate()
Description copied from class: Component
A default component implemention returning the time now. Components with a critical dependency on selecting the version effective date should override this method.

Specified by:
getVersionEffectiveDate in interface CoreUser
Overrides:
getVersionEffectiveDate in class Component
Returns:
VersionEffectiveDate now.