You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by boday <be...@initekconsulting.com> on 2011/07/18 19:30:31 UTC

Re: Camel to testQueue.

see the camel  http://camel.apache.org/jms.html jms page  for details or this
example 
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteTest.java
unit test 


zerdo wrote:
> 
> Can someone hint me how to Calem with the following code to save something
> to a queue testQueue?
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
> 	<property name="environment">
> 		<props>
> 			<prop key="java.naming.factory.initial">
> 				org.jnp.interfaces.NamingContextFactory
>         </prop>
> 			<prop key="java.naming.provider.url">
> 				jnp://localhost:1099
>         </prop>
> 			<prop key="java.naming.factory.url.pkgs">
> 				org.jboss.naming:org.jnp.interfaces
>         </prop>
> 		</props>
> 	</property>
> </bean>
> 
> 
> <bean name="jmsConnectionFactory"
> class="org.springframework.jndi.JndiObjectFactoryBean">
> 	<property name="jndiTemplate" ref="jndiTemplate"/>
> 	<property name="jndiName" value="ConnectionFactory" />
> </bean>
> 
> <bean id="jmsTransactionManager"
> class="org.springframework.jms.connection.JmsTransactionManager">
> 	<property name="connectionFactory" ref="jmsConnectionFactory" />
> </bean>
> 
> 
> <bean name="testDestination"
> class="org.springframework.jndi.JndiObjectFactoryBean">
> 	<property name="jndiTemplate" ref="jndiTemplate"/>
> 	<property name="jndiName" value="queue/testQueue" />
> </bean>
> 
> 
> <bean name="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
> 	<property name="connectionFactory" ref="jmsConnectionFactory" />
> 	<property name="defaultDestination" ref="testDestination" />
> 	<property name="receiveTimeout" value="1" />
> 	<property name="messageConverter" ref="auditingMsgConverter" />
> </bean>
> 


-----
Ben O'Day
IT Consultant -http://consulting-notes.com

--
View this message in context: http://camel.465427.n5.nabble.com/Camel-to-testQueue-tp4598513p4600449.html
Sent from the Camel - Users mailing list archive at Nabble.com.