Re: camel-cxfrs with custom http headers...

2010-08-20 Thread Willem Jiang
It's in the Fuse camel trunk now and will be a part of Fuse MR 2.5.0. Willem boday wrote: It works great...thanks Willem. Any idea when this can be rolled into a Fuse release? My client (Alcatel-Lucent) will be eager to get this fix. thanks again... __ Ben O'Day Senior

Re: CSV Reporting with Java and XML

2010-08-20 Thread Willem Jiang
If you want to start a camel route without using org.apache.camel.spring.Main or Spring application context, you need to create a camel context yourself, then put the route into the camel context. and start the camel context. There is a good example[1] in the last page of Camel in Action chapt

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
Thanks for the reply. The thing is, I do want to use org.apache.camel.spring.Main to start the route, but how do you allow this class to be the run configuration when running from a JAR? I'm not understanding how I can run it perfectly well in eclipse, yet I cannot choose to use that as the run

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
Actually, I have used your advice and followed the example in the link you provided. But I'm assuming that is creating a new CamelContext from within the Java class? That would mean having to add al the enpoints, beans etc to the class. Is there a way to pull in my existing CamelContext? -- Vie

Re: Problem creating seda endpoint with queue size

2010-08-20 Thread Willem Jiang
It's not easy to make Camel work with all OSGi platform rightly. I just went through the Camel OSGi related code, it uses another method to load converter class, and it should be fine. I don't know how you inject the camel context, if this camel context is not replace its DefaultPackageScanCla

Re: CSV Reporting with Java and XML

2010-08-20 Thread Willem Jiang
somemightsay wrote: Thanks for the reply. The thing is, I do want to use org.apache.camel.spring.Main to start the route, but how do you allow this class to be the run configuration when running from a JAR? You can extends the Main class or just use it in your Main class to start the camel co

Re: CSV Reporting with Java and XML

2010-08-20 Thread Willem Jiang
Do You mean to pull the Spring configuration file ? If the CamelContext is created, you can use it directly. Willem somemightsay wrote: Actually, I have used your advice and followed the example in the link you provided. But I'm assuming that is creating a new CamelContext from within the Java

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
The CamelContext.xml is created. It is used when you run Main.class, but obviously not when I run the Java.class i have created to define the routes. So when you run Main.class, CamelContext.xml and Camelroutes.java are both used, and it works correctly. But I can't seem to get Main.class to be

Re: No conduit initiator was found for the namespace http://schemas.xmlsoap.org/soap/http

2010-08-20 Thread Willem Jiang
After went through the example, I got the same conclusion as Christian did. The issue was caused by CXF Bus can't load the http conduit rightly, you may let cxf bus to load it explicately by using spring configure that we showed to you, or you create the bus yourself. Within Camel 2.2 we intr

Re: CSV Reporting with Java and XML

2010-08-20 Thread Willem Jiang
somemightsay wrote: The CamelContext.xml is created. It is used when you run Main.class, but obviously not when I run the Java.class i have created to define the routes. So when you run Main.class, CamelContext.xml and Camelroutes.java are both used, and it works correctly. But I can't seem to

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
How then do you define the database information in the Java class? The examples only show how to do it in the XML camel context. I would however still much prefer to have the program how it is but find a way for the Main.class to be used in the JAR. It seems that it would be a very simple soluti

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
In reply to what kind of error did I get: I got "Could not find the main class: org.apache.camel.spring.Main. program will now exit. The manifest holds: Main-Class: org.apache.camel.spring.Main. i also tried: Main-Class: Main. -- View this message in context: http://camel.465427.n5.nabble.c

Re: CSV Reporting with Java and XML

2010-08-20 Thread Willem Jiang
How about using google to find it out? Here is link for the it. http://download.oracle.com/javase/tutorial/deployment/jar/manifestindex.html Willem somemightsay wrote: How then do you define the database information in the Java class? The examples only show how to do it in the XML camel cont

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
I have tried that before with the manifest, it still says it cannot find org.apache.camel.spring.Main. But thanks anyway. -- View this message in context: http://camel.465427.n5.nabble.com/CSV-Reporting-with-Java-and-XML-tp2641453p2641987.html Sent from the Camel - Users mailing list archive at

Request –Reply using JMS

2010-08-20 Thread Mohammed Yousuff
I am trying to send sterilized object to JMS and should get the response back using request-response EIP pattern. I am try to find some example which does the same…. I saw the example code for request-response in Apache camel site, but not able to understand what it really happening. Below are

Re: Request –Reply using JMS

2010-08-20 Thread john robens
You should be able to just call requestBody camelTemplate.requestBody() On 20 August 2010 21:01, Mohammed Yousuff wrote: > > I am trying to send sterilized object to JMS and should get the response back > using request-response EIP pattern. I am try to find some example which does > the same….

Re: No conduit initiator was found for the namespace http://schemas.xmlsoap.org/soap/http

2010-08-20 Thread Roland Villemoes
That Worked! Thanks a lot for you answers... I did the hack thing first - using a ClassLoader. But I can see that next step must be to use spring to create the service proxy. This seems to be "the way". one more: Thanks you so much for all you - Christian and Willem -- View this message in c

AW: Request -Reply using JMS

2010-08-20 Thread Schneider Christian
Basically the following should work: On the client side: yourResponse = camelTemplate.sendBody("jms:queue:yourqueue", ExchangePattern.InOut, yourObject); On the server side: from("jms:queue:yourqueue").to("bean:yourbean?method=yourmethod") The class behind your bean should have the named metho

Re: Request –Reply using JMS

2010-08-20 Thread Mohammed Yousuff
jrobens, Thanks for your reply. As i am very new Camel,if you can share me some * Pseudocode* related to requestBody that could be great. thank you Regards, Yousuff My Tech Blog: http://passion4java.blogspot.com On Fri, Aug 20, 2010 at 4:34 PM, jrobens [via Camel] < ml-node+2642012-19931

Re: Request -Reply using JMS

2010-08-20 Thread Mohammed Yousuff
Thanks a lot Christian. a quick question, i am using Came 2.3 Version .. does this version has camelTemplate class? the reason because i can't import this class inside my eclipse Regards, Yousuff My Tech Blog: http://passion4java.blogspot.com On Fri, Aug 20, 2010 at 4:51 PM, Schneider

AW: Request -Reply using JMS

2010-08-20 Thread Schneider Christian
Hi Mohammed, the class has been renamed to ProducerTemplate. You can find a complete example in the distribution. It is named camel-example-spring-jms. The example also shows how to initialize the camel context and how to retrieve the ProducerTemplate instance from the context. Greetings Chri

Re: Request -Reply using JMS

2010-08-20 Thread Mohammed Yousuff
i have gone throw the example. You are right.. Examples are similar of what I am expecting. I have executed the client version and not sure how to deploy the server version of this example. I am using JBOSS 4.2 as my appserver, can you please throw me some lights on this. Regards, Yousuff M

AW: Request -Reply using JMS

2010-08-20 Thread Schneider Christian
You can simply execute the following with maven like described in the readme: mvn exec:java -PCamelServer Inside the pom file you can see how it works. There is a generic start class org.apache.camel.spring.Main in the distribution that simply starts up a spring context with a given config. Al

ConsumerTemplate not finishing?

2010-08-20 Thread Andreas Asmuss
Hi I have a route where I call this bean. The consumer gets the file and everything is OK except the file is not deleted. There is also a .camelLock file which is left behind at every run. So isn't the consumer finishing up, or what could be wrong? public class CustomEnricher { public v

Re: Request –Reply using JMS

2010-08-20 Thread Claus Ibsen
On Fri, Aug 20, 2010 at 1:24 PM, Mohammed Yousuff wrote: > > jrobens, > > > Thanks for your reply. As i am very new Camel,if you can  share me some * > Pseudocode*  related to requestBody that could be great. thank you > You can see this tutorial http://camel.apache.org/tutorial-jmsremoting.html

Re: ConsumerTemplate not finishing?

2010-08-20 Thread Claus Ibsen
On Fri, Aug 20, 2010 at 4:15 PM, Andreas Asmuss wrote: > > Hi > > I have a route where I call this bean. The consumer gets the file and > everything is OK except the file is not deleted. There is also a .camelLock > file which is left behind at every run. So isn't the consumer finishing up, > or w