gov.nih.nci.caarray.services.security.mageom.mdb
Class SecuredElementIdUpdaterMDB

java.lang.Object
  extended by gov.nih.nci.caarray.services.security.mageom.mdb.SecuredElementIdUpdaterMDB
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener

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

Author:
Joshua Phillips
See Also:
Serialized Form

Field Summary
static java.lang.String CONNECTION_FACTORY_NAME
           
static int DEFAULT_MAX_ATTEMPTS
          The number of times an unsuccessful message may be put back into the queue.
static long DEFAULT_WAIT_TIME
          The base time a message will wait before being re-queued.
static java.lang.String QUEUE_NAME
           
 
Constructor Summary
SecuredElementIdUpdaterMDB()
           
 
Method Summary
 void ejbCreate()
           
 void ejbRemove()
           
 void onMessage(javax.jms.Message inMessage)
           
 void setMessageDrivenContext(javax.ejb.MessageDrivenContext mdc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_ATTEMPTS

public static final int DEFAULT_MAX_ATTEMPTS
The number of times an unsuccessful message may be put back into the queue. With the default settings of DEFAULT_MAX_ATTEMPTS = 4 and DEFAULT_WAIT_TIME = 60000, a message will sit in the queue a maximum of about 7 days. So, if it takes longer than a week to upload a MAGEML document, these settings will have to be adjusted.

See Also:
Constant Field Values

DEFAULT_WAIT_TIME

public static final long DEFAULT_WAIT_TIME
The base time a message will wait before being re-queued.

See Also:
Constant Field Values

QUEUE_NAME

public static final java.lang.String QUEUE_NAME
See Also:
Constant Field Values

CONNECTION_FACTORY_NAME

public static final java.lang.String CONNECTION_FACTORY_NAME
See Also:
Constant Field Values
Constructor Detail

SecuredElementIdUpdaterMDB

public SecuredElementIdUpdaterMDB()
Method Detail

setMessageDrivenContext

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

ejbCreate

public void ejbCreate()

ejbRemove

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

onMessage

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