|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jencks.JCAContainer org.figure8.join.core.messaging.ConfigurableJencksContainer
public class ConfigurableJencksContainer
This is an extension of Jencks JCAContainer
that can be further
configured depending on ApplicationConfig
and using extra properties
provided by a ActiveMQConfigurator
instance.
ApplicationConfig
,
ActiveMQConfigurator
Constructor Summary | |
---|---|
ConfigurableJencksContainer()
|
Method Summary | |
---|---|
void |
activateJMSConsumerBean(JMSConsumerBeanInfo info)
Activate a JMS consumer within container using a JCA connector. |
void |
afterPropertiesSet()
Override of method from Jencks JCAContainer. |
protected org.activemq.ra.ActiveMQActivationSpec |
createActivationSpec(JMSConsumerBeanInfo info)
Create corresponding JCA ActivationSpec for a JMS consumer. |
protected javax.resource.spi.endpoint.MessageEndpointFactory |
createMessageEndpointFactory(JMSConsumerBeanInfo info)
Create a JCA MessageEndpointFactory for a JMS consumer. |
protected void |
createResourceAdapter()
Create a ResourceAdapter and assign it to this Jencks JCA container. |
void |
deactivateJMSConsumerBean(JMSConsumerBeanInfo info)
Deactivate a JMS consumer within container using the corresponding JCA connector. |
void |
setActiveMQConfigurator(ActiveMQConfigurator configurator)
|
void |
setTransactionManager(javax.transaction.TransactionManager transactionManager)
|
Methods inherited from class org.jencks.JCAContainer |
---|
addConnector, destroy, getBeanFactory, getBootstrapContext, getResourceAdapter, isLazyLoad, setBeanFactory, setBootstrapContext, setLazyLoad, setResourceAdapter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurableJencksContainer()
Method Detail |
---|
public void setActiveMQConfigurator(ActiveMQConfigurator configurator)
configurator
- Helper for configuring connection factorypublic void setTransactionManager(javax.transaction.TransactionManager transactionManager)
transactionManager
- TransactionManager for creating inbound connectorspublic void activateJMSConsumerBean(JMSConsumerBeanInfo info) throws javax.resource.ResourceException
info
- The bean wrapping informations on a JMS consumer
javax.resource.ResourceException
- if consumer cannot be activated into JCA resource adapterpublic void deactivateJMSConsumerBean(JMSConsumerBeanInfo info)
info
- The bean wrapping informations on a JMS consumerprotected void createResourceAdapter()
protected org.activemq.ra.ActiveMQActivationSpec createActivationSpec(JMSConsumerBeanInfo info) throws javax.resource.ResourceException
info
- The bean wrapping informations on a JMS consumer
javax.resource.ResourceException
- if spec cannot be activated with JCA resource adapterprotected javax.resource.spi.endpoint.MessageEndpointFactory createMessageEndpointFactory(JMSConsumerBeanInfo info)
JMSConsumerEndpointFactory
.
info
- The bean wrapping informations on a JMS consumer
public void afterPropertiesSet() throws java.lang.Exception
ActiveMQConfigurator
object.
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.jencks.JCAContainer
java.lang.Exception
- IllegalArgumentException if Jencks container is not well configured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |