camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vvchoy <>
Subject configure failover for weblogic jms queue using jndi template
Date Fri, 10 Sep 2010 01:38:48 GMT


my system is running camel on servicemix I have configured
camel to connect to my application through weblogic jms queue. Everything is
fine except that if my application is down (ie. web broker is down), I
cannot deploy nor start my service unit.
I notice that there is a way to configure camel to retry the connection
instead of throwing an exception --- through the "failover" transport.
Unfortunately, I cannot find an example showing how to do so with weblogic
configuration using jndi template. Does anyone know how to do so ? Would
appreciate your help very much.

Following is my bean configuration within camel_context.xml file:

    <bean id="weblogic" class="org.apache.camel.component.jms.JmsComponent">
       <property name="connectionFactory" ref="weblogicConnectionFactory"/>
       <property name="destinationResolver"
    <bean id="weblogicConnectionFactory"
		<property name="jndiName" value="weblogic.jms.ConnectionFactory"/>
		<property name="jndiTemplate" ref="webLogicJndiTemplate"/>
    <bean id="webLogicJndiTemplate"
        <property name="environment"> 
                <prop key="java.naming.provider.url">t3://host:port</prop>  
    <bean id="webLogicDestinationResolver"
        <property name="jndiTemplate" ref="webLogicJndiTemplate" /> 

Thanks a lot

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message