Re: camel error with simple program with camel-core-2.11.1.jar

2013-07-22 Thread Willem jiang
Which version JDK are you using? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (

Re: Camel cache consumer (event based)

2013-07-22 Thread Willem jiang
Hi, Did you have chance to check out the example5 of this wiki page[1]? [1]http://camel.apache.org/cache.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blog

Re: Camel HTTP component vs. Apache HTTP client

2013-07-22 Thread Raul Kripalani
Camel does a fair degree of lazy loading. Try to measure performance on a second or third invocation of the route, rather than the first time. Also, pease post the source your HelperBean and ObjectCreationProcess class. Thanks, Raúl. On 21 Jul 2013, at 18:51, humayun0156 wrote: > i've used htt

Re: Camel HTTP component vs. Apache HTTP client

2013-07-22 Thread humayun0156
HelperBean.java ObjectCreatoinProcessor.java -- View this message in context: http://camel.465427.n5.nabble.com/Camel-HTTP-component-vs-Apache-HTTP-client-tp5735943p5736005.html Sent from the Camel - Users mailing list a

Re: Mocking consumer endpoints

2013-07-22 Thread Claus Ibsen
Hi Yeah that could be a good idea to make it easier to replace the from uri on route(s). Likewise it would also be nice if we could have a mocked registry so you can add beans to this registry in unit tests, and this registry takes precedence over the default registry. But that is another improv

Regarding TO uri

2013-07-22 Thread indrayani
Hi All, Is it possible to read To uri in the processor class? I can get a From uri in the processor class as follows : exchange.getFromEndpoint().getEndpointUri() Is there any way to read To uri ? -- View this message in context: http://camel.465427.n5.nabble.com/Regarding-TO-uri-tp5736012

Re: Regarding TO uri

2013-07-22 Thread Claus Ibsen
The last to endpoint uri is stored as a property on the exchange with key org.apache.camel.Exchange#TO_ENDPOINT On Mon, Jul 22, 2013 at 11:31 AM, indrayani wrote: > Hi All, > Is it possible to read To uri in the processor class? > I can get a From uri in the processor class as follows : > > exch

Re: Round Robin in Camel Routes

2013-07-22 Thread deepak_a
Yes, ** expecting your consumers to actively fetch messages. * -> That's where I was trying to get to! Thanks for the explanation - its much clear now. -- View this message in context: http://camel.465427.n5.nabble.com/Round-Robin-in-Camel-Routes-tp5735857p5736014.html Sent fro

NPE with splitter, aggregator and JMS - properties and transferExchange option

2013-07-22 Thread Martin Stiborský
Hello guys, I have a route, where List from Exchange body is splitted and each item is sent to JMS, the main route waits for response, performs some more transformation and then continue with next item from the list in the same way. All the response are aggregated into another list, which is proces

Re: jsf and apache camel

2013-07-22 Thread lassesvestergaard
Thank you very much James. I ended up using JSF. I found out how to integrate Camel into a JSF application. I'm not sure it's the best way, but it seems to work (please enlighten me if you know a better solution). What I did is making a new managed bean (in JSF 2.0), that is application scoped, a

Re: Regarding TO uri

2013-07-22 Thread indrayani
hi, i tried as follows but i am gettting null value : exchange.getProperty("TO_ENDPOINT") am i missing anything? -- View this message in context: http://camel.465427.n5.nabble.com/Regarding-TO-uri-tp5736012p5736017.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Regarding TO uri

2013-07-22 Thread Claus Ibsen
Its Exchange.TO_ENDPOINT which is the key. eg its a constant on the Exchange. On Mon, Jul 22, 2013 at 12:03 PM, indrayani wrote: > hi, > i tried as follows but i am gettting null value : > > exchange.getProperty("TO_ENDPOINT") > > am i missing anything? > > > > -- > View this message in context:

Re: NPE with splitter, aggregator and JMS - properties and transferExchange option

2013-07-22 Thread Martin Stiborský
Fortunately I can solve the problem with kind of workaround - not passing exchange to JMS and use just Exchange headers. That works for me. Anyway i'd like to know what is wrong with the transferExchange=true solution. On Mon, Jul 22, 2013 at 12:01 PM, Martin Stiborský < martin.stibor...@gmail.co

Re: How to recover corrupted HawtDB files

2013-07-22 Thread Stefan Burkard
@Claus: I read there (http://leveldb.googlecode.com/svn/trunk/doc/index.html) that it is safe when only my camel/java process or even the writing process dies, but it is not safe when the whole operating system dies (power outage). Perhaps I get it wrong? @Raul: I don't expect that the Camel commi

Re: How to recover corrupted HawtDB files

2013-07-22 Thread Stefan Burkard
Just for others who receive the same kind of stacktraces. I was able to reproduce the problem by starting the component with the aggregators multiple times. Obviously I started accidentally multiple instances and therefore multiple camel/java processes "shared" the same aggregator-hawtdbs. So, I n

Re: Camel Consumer in JAX-RS Web Service

2013-07-22 Thread traviskds
Thanks for responding Sergey. I assume you mean adding the "to" part of the route. I did this camelContext.addRoutes(new RouteBuilder() { public void configure() throws Exception { from(MAIL_ENDPOINT

Re: Camel Consumer in JAX-RS Web Service

2013-07-22 Thread Sergey Beryozkin
I've been thinking more along these lines: class ReadMail { public Response read(...) { MailBean bean = new MailBean(); new Thread().run(new MyRouteWrapper(bean)); // block on the current thread bean.waitTillDone(); } private MyRouteWrapper implements

Re: Camel Consumer in JAX-RS Web Service

2013-07-22 Thread Claus Ibsen
You can look at using onCompletion or event notifier. Or even the NotifyBuilder. You can find details on the Camel site using the search box on the front page. On Sun, Jul 21, 2013 at 6:16 PM, traviskds wrote: > I find Camel easy for difficult use cases but hard to simple use cases. Or > maybe I

camel integration in servicemix

2013-07-22 Thread Geert Bozz
Hello all, I 'm looking for information on how camel is integrated into servicemix and I have two questions. I want to start by shortly explaining my understanding, this might benefit others and it helps putting my questions into its context. If I understand correctly, 1) Camel has an http compon

Re: camel integration in servicemix

2013-07-22 Thread Andreas Gies
Hi Geert, Perhaps there are other ways of doing it, but i found reusing the Camel HTTP servlet right out of the box a bit un-OSGI-ish, so that would be true for ServiceMix as well. I have published a blog entry explaining in more detail what the issue was and I addressed it: http://www.wayofqual

Re: Probleme with startorder

2013-07-22 Thread Bilgin Ibryam
Hi Bovas, startupOrder will only guarantee that route 1 will start before route 2. It wont guarantee that route one will find a file and that file will reach the bean before route 2 message reaches the same bean. If you have such a dependency in your routes, I'd suggest you change your routing lo

StreamCaching with slip not working

2013-07-22 Thread ramrubio
SampleProxySvc.zip Camel version = 2.11.0 commons.httpclient version = 3.0.1 Attempting to implement a proxy service to route requests dynamically using DynamicRouter pattern suggested by http://camel.apache.org/dynamic-router

Re: After camelContext shutdown, is any way to exit the Java main() method?

2013-07-22 Thread bonnahu
Hi Willem, After adding System.exit(1) after exchange.getContext().stop(); , it works for me. Thanks again! -- View this message in context: http://camel.465427.n5.nabble.com/After-camelContext-shutdown-is-any-way-to-exit-the-Java-main-method-tp5735993p5736042.html Sent from the Camel - Users m

Probleme with startorder

2013-07-22 Thread Bovas
Hi everybody I use camel 2.11.0 and java/groovy DSL I explain my problem. I have a first route which runs a method bean, and my second route should start after the end of the first route. from("file://*Directory*?fileName=*myfile.txt*") .startupOrder(1) .to("bean://mymethods?meth

Custom names for processors within routes

2013-07-22 Thread andreas
Hello, I apologize if the following is a stupid question. I have a Custom Routebuilder building a route within a Camel Context. The route itself works fine. The code is relatively straight forward: @Override public void configure() throws Exception { errorHandler(deadLetterChannel(

Re: Custom names for processors within routes

2013-07-22 Thread Claus Ibsen
Hi Yep set the id of the processors. Then that id is used as part of the JMX name http://camel.apache.org/camel-jmx.html .process( ... ).id("nameOfMyProcessor") On Mon, Jul 22, 2013 at 5:19 PM, wrote: > > Hello, > > I apologize if the following is a stupid question. > > I have a Custom Routebu

Camel Thread does not terminate

2013-07-22 Thread SyedBhai
Hi Everyone, I have the following code snippet. CamelContext cc=new DefaultCamelContext(); cc.addRoutes(new RouteBuilder() { public void configure() { from("direct:start1"). to("cxf://http:

Re: StreamCaching with slip not working

2013-07-22 Thread ramrubio
Stepping through code noticed that InputStreamRequestEntity is used during post request. A call to InputStreamRequestEntity.getContentLength leads to a call to bufferContent because contentLength is set to CONTENT_LENGTH_AUTO. The type of inputStream that is set in InputStreamRequestEntity is of

Quartz and enrich seem not to work together...

2013-07-22 Thread roger_rabbit
Hi, I read a few things about the subject, but since most of them were 3 years old, I guess there are new features that may have changed the issue... so here's my 2013 problem. First of all, I am quite new to camel (20 days experience). In a previous project, I managed to use a quartz-triggered

Camel Example Restlet JDBC Master

2013-07-22 Thread tKronos
I am trying to get the example called Camel Example Restlet JDBC Master working. But everytime I try running it, I get the following error: Could not instantiate listener org.springframework.web.context.ContextLoaderListener Plus a bunch of other errors following that with the class not being fou

Re: Leveraging CXF Asynchronous processing when MEP is InOut

2013-07-22 Thread gilboy
Hi I also had the same query. Would be very interested to hear any response on this query Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Leveraging-CXF-Asynchronous-processing-when-MEP-is-InOut-tp5735904p5736049.html Sent from the Camel - Users mailing list archi

Re: Camel Thread does not terminate

2013-07-22 Thread bonnahu
Maybe you can try by adding System.exit() after cc.stop(); -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Thread-does-not-terminate-tp5736045p5736051.html Sent from the Camel - Users mailing list archive at Nabble.com.

Is it possible to import Endpoints from a xml file like routeContextRef?

2013-07-22 Thread bonnahu
Hey guys, We can import routes from other XML files by using routeContextRef. Does anyone know whether we could do the same for EndPoints? thanks -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-import-Endpoints-from-a-xml-file-like-routeContextRef-tp57360

Re: Camel Example Restlet JDBC Master

2013-07-22 Thread Willem jiang
Hi, How did you find the the example? I don't think we ship this example within Apache Camel kit. If it is using maven, it could be easy to check the dependency issue by using mvn dependency:tree. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com

Re: NPE with splitter, aggregator and JMS - properties and transferExchange option

2013-07-22 Thread Willem jiang
I suggest you clean up the exchange properties before trying to marshall the properties. From the stack trace, it looks like there are some trouble to marshall the CXF XMLMessage which could be store into the exchange properties. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Ha

FTP endpoint failure

2013-07-22 Thread Richa
Hi, I have a small camel route where my input endpoint is FTP. I want to handle the scenario when FTP is down or the FTP credentials are wrong. But I checked that FTP does not throw exception on the consumer side, instead it just keeps on retrying after every 5 seconds. Can you please tell me how

Re: Camel Thread does not terminate

2013-07-22 Thread SyedBhai
No. That doesn't help. Because it will shutdown the jvm. My project is a web app. It keeps serving incoming requests. For serving each request it uses camel framework. I am creating a thread for each request. The problem I may be facing is that this thread does not terminate because of using c

Re: Leveraging CXF Asynchronous processing when MEP is InOut

2013-07-22 Thread Claus Ibsen
cxf is asynchronous. If a thread is blocking somewhere it can be because you use direct component and what calls that may be blocking. On Fri, Jul 19, 2013 at 1:39 PM, Edwin wrote: > Hi Folks, > > I have a route which looks like this: > > from("direct:start").setExchangePattern("InOut").to("cxf: