blob: f6d421a48d1e16a9013340978c1e307d4f2afa1d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- START SNIPPET: spring -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- START SNIPPET: jca -->
<bean id="jencks" class="org.jencks.JCAContainer">
<!-- lets use the default configuration of work manager and transaction manager-->
<property name="bootstrapContext">
<bean class="org.jencks.factory.BootstrapContextFactoryBean">
<property name="threadPoolSize" value="25"/>
</bean>
</property>
<!-- the JCA Resource Adapter -->
<property name="resourceAdapter">
<bean id="activeMQResourceAdapter" class="org.activemq.ra.ActiveMQResourceAdapter">
<property name="serverUrl" value="tcp://localhost:61616"/>
</bean>
</property>
</bean>
<!-- END SNIPPET: jca -->
<!--
|| an inbound message connector using a stateless, thread safe MessageListener
-->
<!-- START SNIPPET: inbound -->
<bean id="inboundConnectorA" class="org.jencks.JCAConnector">
<property name="jcaContainer" ref="jencks" />
<!-- subscription details -->
<property name="activationSpec">
<bean class="org.activemq.ra.ActiveMQActivationSpec">
<property name="destination" value="Queue"/>
<property name="destinationType" value="javax.jms.Queue"/>
</bean>
</property>
<property name="ref" value="echoBean"/>
</bean>
<bean id="echoBean" class="org.prueba.jencks.EchoBean" singleton="true"/>
<!-- END SNIPPET: inbound -->
<!--
|| an inbound message connector using a stateful, pooled MessageListener
-->
<!-- a pooled, non-thread safe MessageListener using ProxyFactoryBean -->
<!--
<bean id="pooledEchoBean" class="org.jencks.TargetSourceMessageListener">
<property name="targetSource">
<bean id="pooledEchoBeanTargetSource" class="org.springframework.aop.target.CommonsPoolTargetSource">
<property name="targetBeanName">
<value>pooledEchoBeanTarget</value>
</property>
<property name="maxSize">
<value>25</value>
</property>
</bean>
</property>
</bean>
<bean id="pooledEchoBeanTarget" class="org.jencks.TestBean" singleton="false">
</bean>
-->
</beans>