You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Gershaw, Geoffrey A. (KFFC 223)" <ge...@credit-suisse.com> on 2013/10/24 19:11:38 UTC
JMS Component -Tibco specific option
Hi Camel Riders,
Has anyone ever had to set Tibco or other implementation specific options for JMS on the publisher? I don't see any examples of how to do that on the web page. Specifically, I would like to do publisher.setDeliveryMode(com.tibco.tibjms.Tibjms.RELIABLE_DELIVERY)
We use camel 2.11 and spring DSL. I guess I need to use a custom publisher instead of relying on default publisher in
<to uri="jms:topic:{{pricecollision.topic}}?deliveryPersistent=false" />
Thanks for your help
Geoff
===============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================
RE: JMS Component -Tibco specific option
Posted by "Gershaw, Geoffrey A. (KFFC 223)" <ge...@credit-suisse.com>.
Hi Paula,
Thanks for the attempt. com.tibco.tibjms.TibjmsConnectionFactory does not have a property for delivery mode. Unless I'm missing, which is possible. :)
Thanks
Geoffrey A Gershaw
Credit eTrading Development
+1 919 994 6412 (*102 6412)
-----Original Message-----
From: Paul Gale [mailto:paul.n.gale@gmail.com]
Sent: Thursday, October 24, 2013 1:33 PM
To: users@camel.apache.org
Subject: Re: JMS Component -Tibco specific option
Hi Geoff,
You could try something like this which is working for us:
<beans>
<!-- omitting the usual ActiveMQ connection factory config -->
<bean id="tibco" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="com.tibco.tibjms.TibjmsConnectionFactory">
<property name="serverUrl" value="${tibco.server.url}"/>
<property name="userName" value="${tibco.username}"/>
<property name="userPassword" value="${tibco.password}"/>
<!-- insert Tibco specific properties here -->
</bean>
</property>
</bean>
<camelContext>
<route>
<from uri="activemq:topic:foo"/>
<to uri="tibco:topic:bar"/>
</route>
</camelContext>
</beans>
Put the following entry (or similar) in your pom.xml file:
<dependency>
<groupId>com.tibco.ems</groupId>
<artifactId>tibjms</artifactId>
<version>5.0.0</version>
<scope>runtime</scope>
</dependency>
and the following jar on our classpath: tibjms-5.0.0.jar
HTH
Thanks,
Paul
On Thu, Oct 24, 2013 at 1:11 PM, Gershaw, Geoffrey A. (KFFC 223)
<ge...@credit-suisse.com> wrote:
> Hi Camel Riders,
>
> Has anyone ever had to set Tibco or other implementation specific options for JMS on the publisher? I don't see any examples of how to do that on the web page. Specifically, I would like to do publisher.setDeliveryMode(com.tibco.tibjms.Tibjms.RELIABLE_DELIVERY)
>
> We use camel 2.11 and spring DSL. I guess I need to use a custom publisher instead of relying on default publisher in
>
> <to uri="jms:topic:{{pricecollision.topic}}?deliveryPersistent=false" />
>
> Thanks for your help
>
> Geoff
>
>
> ===============================================================================
> Please access the attached hyperlink for an important electronic communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ===============================================================================
>
===============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================
Re: JMS Component -Tibco specific option
Posted by Paul Gale <pa...@gmail.com>.
Hi Geoff,
You could try something like this which is working for us:
<beans>
<!-- omitting the usual ActiveMQ connection factory config -->
<bean id="tibco" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="com.tibco.tibjms.TibjmsConnectionFactory">
<property name="serverUrl" value="${tibco.server.url}"/>
<property name="userName" value="${tibco.username}"/>
<property name="userPassword" value="${tibco.password}"/>
<!-- insert Tibco specific properties here -->
</bean>
</property>
</bean>
<camelContext>
<route>
<from uri="activemq:topic:foo"/>
<to uri="tibco:topic:bar"/>
</route>
</camelContext>
</beans>
Put the following entry (or similar) in your pom.xml file:
<dependency>
<groupId>com.tibco.ems</groupId>
<artifactId>tibjms</artifactId>
<version>5.0.0</version>
<scope>runtime</scope>
</dependency>
and the following jar on our classpath: tibjms-5.0.0.jar
HTH
Thanks,
Paul
On Thu, Oct 24, 2013 at 1:11 PM, Gershaw, Geoffrey A. (KFFC 223)
<ge...@credit-suisse.com> wrote:
> Hi Camel Riders,
>
> Has anyone ever had to set Tibco or other implementation specific options for JMS on the publisher? I don't see any examples of how to do that on the web page. Specifically, I would like to do publisher.setDeliveryMode(com.tibco.tibjms.Tibjms.RELIABLE_DELIVERY)
>
> We use camel 2.11 and spring DSL. I guess I need to use a custom publisher instead of relying on default publisher in
>
> <to uri="jms:topic:{{pricecollision.topic}}?deliveryPersistent=false" />
>
> Thanks for your help
>
> Geoff
>
>
> ===============================================================================
> Please access the attached hyperlink for an important electronic communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ===============================================================================
>
RE: JMS Component -Tibco specific option
Posted by "Gershaw, Geoffrey A. (KFFC 223)" <ge...@credit-suisse.com>.
I love you people
-----Original Message-----
From: Christian Posta [mailto:christian.posta@gmail.com]
Sent: Thursday, October 24, 2013 2:16 PM
To: users@camel.apache.org
Subject: Re: JMS Component -Tibco specific option
Take a look at this JIRA: https://issues.apache.org/jira/browse/CAMEL-4257
We've fixed this for deliveryMode in upcoming 2.12.2 / 2.13
On Thu, Oct 24, 2013 at 10:11 AM, Gershaw, Geoffrey A. (KFFC 223) <
geoffrey.gershaw@credit-suisse.com> wrote:
> Hi Camel Riders,
>
> Has anyone ever had to set Tibco or other implementation specific options
> for JMS on the publisher? I don't see any examples of how to do that on the
> web page. Specifically, I would like to do
> publisher.setDeliveryMode(com.tibco.tibjms.Tibjms.RELIABLE_DELIVERY)
>
> We use camel 2.11 and spring DSL. I guess I need to use a custom publisher
> instead of relying on default publisher in
>
> <to uri="jms:topic:{{pricecollision.topic}}?deliveryPersistent=false" />
>
> Thanks for your help
>
> Geoff
>
>
>
> ===============================================================================
> Please access the attached hyperlink for an important electronic
> communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>
> ===============================================================================
>
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta
===============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================
Re: JMS Component -Tibco specific option
Posted by Christian Posta <ch...@gmail.com>.
Take a look at this JIRA: https://issues.apache.org/jira/browse/CAMEL-4257
We've fixed this for deliveryMode in upcoming 2.12.2 / 2.13
On Thu, Oct 24, 2013 at 10:11 AM, Gershaw, Geoffrey A. (KFFC 223) <
geoffrey.gershaw@credit-suisse.com> wrote:
> Hi Camel Riders,
>
> Has anyone ever had to set Tibco or other implementation specific options
> for JMS on the publisher? I don't see any examples of how to do that on the
> web page. Specifically, I would like to do
> publisher.setDeliveryMode(com.tibco.tibjms.Tibjms.RELIABLE_DELIVERY)
>
> We use camel 2.11 and spring DSL. I guess I need to use a custom publisher
> instead of relying on default publisher in
>
> <to uri="jms:topic:{{pricecollision.topic}}?deliveryPersistent=false" />
>
> Thanks for your help
>
> Geoff
>
>
>
> ===============================================================================
> Please access the attached hyperlink for an important electronic
> communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>
> ===============================================================================
>
>
--
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta