camel + service mix + spring aspect

2009-07-02 Thread akshay_ajmani
Hi, I have implemented the following example http://cwiki.apache.org/SM/order-file-processing.html and it is working fine. I need to add few modifications to my camel context.xml. My question is , is it possible to add spring aspects to camel-context.xml i.e http://www.springframework.org

Error using Transacted with Camel 2.0

2009-07-02 Thread Charles Moulliard
Camel generates the following error with my route : Route It seems that policy must be defined but in the example here it is not mentioned : http://camel.apache.org/transactional-client.html Error :

Re: Error using Transacted with Camel 2.0

2009-07-02 Thread Charles Moulliard
Does not work too if I had in the route ka...@root:osgi> Exception in thread "SpringOsgiExtenderThread-32" org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: policy must be specified on: Policy[ref: PROPAGATION_REQUIRED] at org.apache.camel.util.Obje

Re: Error using Transacted with Camel 2.0

2009-07-02 Thread Charles Moulliard
When I compare the example : JMSTransactionalClientRollbackTest.xml http://camel.apache.org/schema/spring";>

Re: Error using Transacted with Camel 2.0

2009-07-02 Thread Charles Moulliard
I have been able to solve my problem by adding the following bean definition : and in the route Unfortunately, the rollback does not occur in the

Re: Error using Transacted with Camel 2.0

2009-07-02 Thread Claus Ibsen
Hi Yeah you need to add all the spring transaction stuff. On Thu, Jul 2, 2009 at 3:47 PM, Charles Moulliard wrote: > Camel generates the following error with my route : > > Route > >         >             >             >             >             >             >             >         > > It seem

Re: Error using Transacted with Camel 2.0

2009-07-02 Thread Claus Ibsen
Transacted also have a ref attribute Is queueQuickFixInEndpoint a JMS queue? You need to use a TX manager that can do both JMS and DB. On Thu, Jul 2, 2009 at 4:31 PM, Charles Moulliard wrote: > I have been able to solve my problem by adding the following bean definition > : > >     class="org

Re: Error using Transacted with Camel 2.0

2009-07-02 Thread Charles Moulliard
queueQuickFixInEndpoint is a JMS queue. I will add the ref to the transacted and retest Question : I suppose that rollback will not occur if by example JMS and DB (=Hibernate) does not use the same TransactionManager and don't use this spring class together : org.springframework.transaction.Platf

Re: Error using Transacted with Camel 2.0

2009-07-02 Thread Claus Ibsen
On Thu, Jul 2, 2009 at 4:53 PM, Charles Moulliard wrote: > queueQuickFixInEndpoint is a JMS queue. > > I will add the ref to the transacted and retest > > Question : I suppose that rollback will not occur if by example JMS and DB > (=Hibernate) does not use the same TransactionManager and don't use

Re: Error using Transacted with Camel 2.0

2009-07-02 Thread Charles Moulliard
OK. I will try to create my own Hibernate JTATransaction manager as the existing try to perform a JNDI lookup to find the transaction manager on OSGI platform (inheritage from J2EE world) http://mail-archives.apache.org/mod_mbox/servicemix-dev/200904.mbox/%3cb23ecedc0904020615y55df4d0fhb303a2ea22d

tutorial-osgi-camel-part1

2009-07-02 Thread Kevin.Zhang
Hello, I'm following the osgi camel tutorail part 1 (http://camel.apache.org/tutorial-osgi-camel-part1.html#tutorial-osgi-camel-part1-Resources), and got stuck at step 8. The problem is as below, s...@root:/> osgi install \-s mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation

Re: tutorial-osgi-camel-part1

2009-07-02 Thread Kevin.Zhang
Update: I changed the command to osgi/install -s mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.2.0 It seems working. Is it right syntax? Thanks. -Kevin Kevin.Zhang wrote: > > Hello, > > I'm following the osgi camel tutorail part 1 > (http://camel.apache.

Re: tutorial-osgi-camel-part1

2009-07-02 Thread Willem Jiang
Hi, In new version of serviceMix 4.x, it changed the command syntax from osgi install to osgi/install . And you find out it yourself ;) Willem Kevin.Zhang wrote: Update: I changed the command to osgi/install -s mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1

Re: tutorial-osgi-camel-part1

2009-07-02 Thread Kevin.Zhang
Thanks, Willem. I got another problem. In the tutorial, it says that I can expect log msg below but I don't see it. >> call >> MyTransform set body: Mon Dec 01 11:02:28 CET 2008 I tried log/d, it gives me 17:38:31,790 | INFO | localShell | CommandLineExecutorImpl | om.shell.C

Re: tutorial-osgi-camel-part1

2009-07-02 Thread Willem Jiang
Hi, [ 52] [Active ] [ ] [ 60] demo.service-bundle [demo.service] (0.1) [ 53] [Active ] [ ] [ 60] demo.camel-bundle [demo.camel] (0.1) These two bundles have the spring configuration files, and we need to make sure the Spring DM start these application context. You ma