|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.messaging.DefaultJMSConsumerBeanManager
public class DefaultJMSConsumerBeanManager
This is the default implementation of JMSConsumerBeanManager
. It
uses a ConfigurableJencksContainer
as a JCA container for activating /
deactivating JMS consumers (Message Driven POJO style !)
Constructor Summary | |
---|---|
DefaultJMSConsumerBeanManager()
Creates a new DefaultJMSConsumerBeanManager. |
Method Summary | |
---|---|
JMSConsumerBeanInfo |
getConsumerBeanInfo(java.lang.String name)
Retrieve the info object having the spoecified name. |
java.util.List |
getConsumerBeanInfos()
Retrieve the info object corresponding to available JMSConsumerBeans . |
void |
removeConsumerBeanInfo(JMSConsumerBeanInfo info)
Remove a JMSConsumerBean infos from datastore. |
void |
saveConsumerBeanInfo(JMSConsumerBeanInfo info)
Save a JMSConsumerBean infos within datastore. |
void |
setConsumerDao(JMSConsumerBeanInfoDao consumerDao)
|
void |
setContainer(ConfigurableJencksContainer container)
|
protected void |
startConsumer(JMSConsumerBeanInfo info)
|
void |
startConsumers()
Starts all the already saved and registered consumers. |
protected void |
stopConsumer(JMSConsumerBeanInfo info)
|
void |
stopConsumers()
Stop all the already saved and registered consumers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultJMSConsumerBeanManager()
Method Detail |
---|
public void setConsumerDao(JMSConsumerBeanInfoDao consumerDao)
consumerDao
- The consumer info dao implementation to usepublic void setContainer(ConfigurableJencksContainer container)
container
- The configurable JCA container instance to usepublic void saveConsumerBeanInfo(JMSConsumerBeanInfo info) throws DuplicateEntityException, InfrastructureException
saveConsumerBeanInfo
in interface JMSConsumerBeanManager
info
- The info on a JMSConsumerBean to save
DuplicateEntityException
- if another consumer with same name already exists.
InfrastructureException
- if wrapped JCA container cannot activate consumer.public void removeConsumerBeanInfo(JMSConsumerBeanInfo info)
removeConsumerBeanInfo
in interface JMSConsumerBeanManager
info
- The info on a JMSConsumerBean to removepublic JMSConsumerBeanInfo getConsumerBeanInfo(java.lang.String name)
getConsumerBeanInfo
in interface JMSConsumerBeanManager
name
- Name of the consumer bean info object to retrieve
JMSConsumerBeanInfo
having this name, or null if nonepublic java.util.List getConsumerBeanInfos()
JMSConsumerBeans
.
getConsumerBeanInfos
in interface JMSConsumerBeanManager
org.figure8.join.core.messaging.JMSConsumerBeanInfo
public void startConsumers() throws InfrastructureException
startConsumers
in interface JMSConsumerBeanManager
InfrastructureException
- if wrapped JCA container cannot activate consumer.public void stopConsumers()
stopConsumers
in interface JMSConsumerBeanManager
protected void startConsumer(JMSConsumerBeanInfo info) throws InfrastructureException
info
- The bean wrapping information on JMS consumer to start
InfrastructureException
- if wrapped JCA container cannot activate consumer.protected void stopConsumer(JMSConsumerBeanInfo info)
info
- The bean wrapping information on JMS consumer to stop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |