camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: configure failover for weblogic jms queue using jndi template
Date Fri, 10 Sep 2010 02:03:33 GMT
As Camel leverages the Spring to do the JMS related work, can you try to 
search for the failover configure from Spring doc or Weblogic doc ?

Willem

On 9/10/10 9:38 AM, vvchoy wrote:
>
> Hi
>
> my system is running camel 1.6.2.2 on servicemix 3.4.0.5. 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"
> ref="webLogicDestinationResolver"/>
>      </bean>
>
>      <bean id="weblogicConnectionFactory"
> class="org.springframework.jndi.JndiObjectFactoryBean">
> 		<property name="jndiName" value="weblogic.jms.ConnectionFactory"/>
> 		<property name="jndiTemplate" ref="webLogicJndiTemplate"/>
>      </bean>
>
>      <bean id="webLogicJndiTemplate"
> class="org.springframework.jndi.JndiTemplate">
>          <property name="environment">
>              <props>
>                  <prop
> key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
>                  <prop key="java.naming.provider.url">t3://host:port</prop>
>              </props>
>          </property>
>      </bean>
>
>      <bean id="webLogicDestinationResolver"
> class="org.springframework.jms.support.destination.JndiDestinationResolver">
>          <property name="jndiTemplate" ref="webLogicJndiTemplate" />
>      </bean>
>
> Thanks a lot
>


Mime
View raw message