I'm looking at this:
http://jencks.org/Outbound+JMS <http://jencks.org/Outbound+JMS> Question 1: but my queue is not setup in jndi so I can't do this: <bean id="jmsQueue" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="queue"/> <property name="jndiEnvironment"> <props> <prop key="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQIniti alContextFactory</prop> <prop key="java.naming.provider.url">tcp://localhost:51616</prop> <prop key="queue.queue">example.MyQueue</prop> </props> </property> </bean> Mine looks like: <!-- ActiveMQ destinations to use --> <bean id="destination" class="org.apache.activemq.command.ActiveMQQueue"> <property name="physicalName" value="org.apache.activemq.spring.Test.spring.embedded"/> </bean> How do I modify mine so it gets setup right with the jndiEnvironment? Question 2: What goes in this and is there an example somewhere: org/jencks/samples/outbound/broker.xml Also I'm not sure whether mine is outbound or inbound, I have two JMS Templates one for sending and one for receiving: <bean id="myJmsTemplate" class="org.springframework.jms.core.JmsTemplate"> <property name="connectionFactory"> <!-- lets wrap in a pool to avoid creating a connection per send --> <bean class="org.springframework.jms.connection.SingleConnectionFactory"> <property name="targetConnectionFactory"> <ref local="jmsFactory" /> </property> </bean> </property> </bean> <bean id="consumerJmsTemplate" class="org.springframework.jms.core.JmsTemplate"> <property name="connectionFactory" ref="jmsFactory"/> </bean> I'd appreciate any help anyone can provide. My spring file already works sending/receiving messages but I want the JCA, transactions, and pooling advantages of Jenks per this article: http://activemq.apache.org/jmstemplate-gotchas.html Shawn
