Re: Apache Camel 2.0 M1-java.lang.ClassCastException: org.apache.camel.component.jms.JmsConfiguration$CamelJmsTeemplate102

2009-03-24 Thread Claus Ibsen
Hi I have had a quick look and it looks like a bug in Camel. I have created a ticket for it https://issues.apache.org/activemq/browse/CAMEL-1480 Not many uses the old 1.0.2 JMS API hence not discovered before. If WebSphereMQ 5.3 support the new 1.1 JMS API then the MQ client .jars you have on yo

Re: Apache Camel 2.0 M1-java.lang.ClassCastException: org.apache.camel.component.jms.JmsConfiguration$CamelJmsTeemplate102

2009-03-24 Thread Claus Ibsen
Hi I have committed a fix. So when a new 2.0-SNAPSHOT is build and deployed on the maven repo, could you try it out? On Tue, Mar 24, 2009 at 8:12 AM, Claus Ibsen wrote: > Hi > > I have had a quick look and it looks like a bug in Camel. I have > created a ticket for it > https://issues.apache.or

Why does the transform() processor not propagate attachments?

2009-03-24 Thread Fintan Bolton
I noticed that in the latest source code, the implementation of the transform() processor does not propagate any attachments. Is there a reason for that? Could it be a bug? -- View this message in context: http://www.nabble.com/Why-does-the-transform%28%29-processor-not-propagate-attachments--tp

Re: Non-Spring Transaction Manager

2009-03-24 Thread James Strachan
2009/3/23 Colin Ruthven : > I don't specifically have one in mind. > > In exploring Camel I found that one can perform the basic messaging > functions in Java using Camel API's only but got messy with transactions. > > My preference would be for Camel to expose a JTA. If that transparently > invoke

Re: Why does the transform() processor not propagate attachments?

2009-03-24 Thread Claus Ibsen
On Tue, Mar 24, 2009 at 10:40 AM, Fintan Bolton wrote: > > I noticed that in the latest source code, the implementation of the > transform() processor does not propagate any attachments. Is there a reason > for that? Could it be a bug? Yeah well spotted its a bug. However Attachments is now often

Routing keeping originalMessageId

2009-03-24 Thread N.D.
Hi, I encoutered some problem deploying a bridge between 2 jms brokers via spring: On one hand i have a public access jms broker (currently activemq 5.2.0) accepting connections from many clients, each one working with a "name standardized" set of queues. On the other hand, i have a private jms

Re: Routing keeping originalMessageId

2009-03-24 Thread Claus Ibsen
Hi Just a quick reply 1) You can send a dummy NACK response when the client was not supposed to get a response 2) Camel 2.0 have better support for InOptionalOut, so if possible try with 2.0. There is a 2.0m1 in the central maven repo. 3) Who is overriding the correlation id? Is it the "private

Re: Routing keeping originalMessageId

2009-03-24 Thread N.D.
Thanks for your quick reply. > > 1) > You can send a dummy NACK response when the client was not supposed to > get a response > > I prefer do not use this solution to maintain proper separation between usable answers and error ones. Actually, clients have a result queue (that they supplied

Re: Non-Spring Transaction Manager

2009-03-24 Thread Colin Ruthven
Thanks. That got me further. Assuming I use JOTM and use it for transaction control within Java, I attempted the following applicationContext.xml : class="org.springframework.transaction.jta.JotmFactoryBean"/> class="org.springframework.transaction.jta.JtaTransactionManager">

Re: Non-Spring Transaction Manager

2009-03-24 Thread James Strachan
Whats the code using the producer look like? 2009/3/24 Colin Ruthven : > Thanks. That got me further. > > Assuming I use JOTM and use it for transaction control within Java, I > attempted the following applicationContext.xml : > >   >   >   > >   class="org.springframework.transaction.jta.JotmFact

Re: Non-Spring Transaction Manager

2009-03-24 Thread Colin Ruthven
Thought you'd ask. :) It reflects some exploration of a couple of Camel API's, rather than being stripped to a minimum. Thanks again for helping. Colin public class DataCamelTest extends TestCase{ CamelContext context; ProducerTemplate prod; Endpoint end; public DataCamelTest(S

Re: Non-Spring Transaction Manager

2009-03-24 Thread James Strachan
I think the issue is that you configure the configuration of the JMS component with the transaction manager after you've created the JMS endpoint. Try moving the configuration of the JMS component to the setup method; before you create any endpoints? 2009/3/24 Colin Ruthven : > Thought you'd ask.

Re: Non-Spring Transaction Manager

2009-03-24 Thread James Strachan
2009/3/24 James Strachan : > I think the issue is that you configure the configuration of the JMS > component with the transaction manager after you've created the JMS > endpoint. Try moving the configuration of the JMS component to the > setup method; before you create any endpoints? Just for som

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-24 Thread Markus Reil
Hi, thanks for your help. But I am still experiencing the same problem. The sleep does not get interrupted (2.0-M1). Do you have any idea why this happens? Let me know if you need more information. Thanks, Markus -- View this message in context: http://www.nabble.com/Delayer%3A-%22Transport-di

Camel 2 - Spring DSL - setHeader / Constant (error)

2009-03-24 Thread cmoulliard
Hi, I have use in my camel route (described using spring DSL), the following syntax to define the header of my message : file as described on the wiki site (http://camel.apache.org/constant.html) But, when I sta

Re: Camel 2 - Spring DSL - setHeader / Constant (error)

2009-03-24 Thread cmoulliard
Forget my post. My bundle on SMX4 was not updated correctly. Everything is OK. cmoulliard wrote: > > Hi, > > I have use in my camel route (described using spring DSL), the following > syntax to define the header of my message : > > > file

Re: Apache Camel 2.0 M1-java.lang.ClassCastException: org.apache.camel.component.jms.JmsConfiguration$CamelJmsTeemplate102

2009-03-24 Thread funkychap
I installed the CSD14 patch for MQ5.3 and added the new MQ jars to the project and i no longer get the exception. Thanks, Claus Ibsen-2 wrote: > > Hi > > I have committed a fix. So when a new 2.0-SNAPSHOT is build and > deployed on the maven repo, could you try it out? > > > On Tue, Mar 24

Deploying same camelContext.xml in and out of OSGi

2009-03-24 Thread Aaron Crickenberger
I have the following XML I'd like to deploy both in an OSGi container, and a non-OSGi container. To deploy in the OSGi container, I have to use the "osgi" schema so that the "quartz" component is resolved to the camel-quartz bundle. To deploy in a non-OSGi container, I had to add spring-osgi-core

Re: Apache Camel 2.0 M1-java.lang.ClassCastException: org.apache.camel.component.jms.JmsConfiguration$CamelJmsTeemplate102

2009-03-24 Thread Claus Ibsen
On Tue, Mar 24, 2009 at 4:50 PM, funkychap wrote: > > I installed the CSD14 patch for MQ5.3 and added the new MQ jars to the > project and i no longer get the exception. That is great news. And you are using the 1.1 api? eg useVersion102=false > > > > Thanks, > > Claus Ibsen-2 wrote: >> >> Hi >>

Re: Deploying same camelContext.xml in and out of OSGi

2009-03-24 Thread Willem Jiang
Hi Aaron The CamelContextFactoryBean of OSGi version extends the CamelContextFactoryBean of Spring version. It only add the handle of bundle context injection. For non-OSGi container it will not inject the bundle context into the OSGi CamelContextFactoryBean, so the OSGi CamelContextFactoryBean w

Re: Delayer: "Transport disposed" at JVM-Shutdown

2009-03-24 Thread Claus Ibsen
On Tue, Mar 24, 2009 at 3:42 PM, Markus Reil wrote: > > Hi, > > thanks for your help. > But I am still experiencing the same problem. The sleep does not get > interrupted (2.0-M1). > Do you have any idea why this happens? Let me know if you need more > information. Can you show the complete route?