Re: Using org.apache.camel.Exchange

2013-12-04 Thread Claire
Hi, Thank you, this issues has resolved. Yes I left to add some dependencies. Regards, Claire -- View this message in context: http://camel.465427.n5.nabble.com/Using-org-apache-camel-Exchange-tp5743878p5744339.html Sent from the Camel Development mailing list archive at Nabble.com.

Re: Using org.apache.camel.Exchange

2013-11-29 Thread Claire
it happens when I use exchange in my java. There's no such issue when I use other method in java to get body and header of file. I have already verified that jar file. It is aready there :( -- View this message in context: http://camel.465427.n5.nabble.com/Using-org-apache-camel-Exchange-tp574

Re: Using org.apache.camel.Exchange

2013-11-29 Thread Charles Moulliard
You still have a classpath issue. Verify that camel-core jar file is well included On Fri, Nov 29, 2013 at 3:46 AM, Claire wrote: > I wonder if this because of the way I called Exchange? Here's the full > exception. > > *Application context refresh failed > > (OsgiBundleXmlApplicationContext(bun

Re: Using org.apache.camel.Exchange

2013-11-28 Thread Claire
I wonder if this because of the way I called Exchange? Here's the full exception. *Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.swift.iplasa.flows.NTUCLite2Adapter-FromSWIFT-Exchange, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.Bea

Re: Using org.apache.camel.Exchange

2013-11-28 Thread Claire
Charles, I called bean the way you suggested me but I can't add attribute name class inside . Following is my xml. http://camel.apache.org/schema/spring";> but once I run it, I got following error inside log: *Application context refresh failed (OsgiBundleXmlApplicationContext(bun

Re: Using org.apache.camel.Exchange

2013-11-28 Thread Charles Moulliard
Can you change your route to specify the method that you would like to call and in debug mode add break at that line if (headerName == null) to see what you receive from Camel Exchange (In.body, in.headers ...) ? --> NameOfTheHeader should correspond to the name of the header that you are loo

Re: Using org.apache.camel.Exchange

2013-11-28 Thread Claire
Charles, Thank you for reply. There's a file I would like to read body and specify some tag as header for that file. I would also want to get content of that file as body. Following is my xml file and java in which I used exchange: testJava.java

Re: Using org.apache.camel.Exchange

2013-11-26 Thread Charles Moulliard
Claire, Could you please share with us what you would like to do (project --> routes --> process to be applied) otherwise that will not be possible ? As your email contains two questions not related how would you like that we help you ? Remarks : Exchange class of Camel is part of camel-core jar

Using org.apache.camel.Exchange

2013-11-26 Thread Claire
Hi, I used org.apache.camel.Exchange to modify my body but I got following error: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/camel/Exchange is there something I still need to define or add jar before I used Exchange? Thanks, Claire -- View t