Re: Customize http ports change /cxf to / for different services hosted on Fuse container

2014-02-12 Thread Cristiano Costantini
Hi Aki, how do you do that? Thank you, Cristiano 2014-02-11 15:48 GMT+01:00 Aki Yoshida elak...@gmail.com: If no other services are running under different context at the same port, can you just set the cxf's servlet context to / to make the cxf services accessible at that root path

Re: Camel swallows Error

2014-02-12 Thread Willem Jiang
I think you need share us with your test case, it could be more easy for us to dig the issue. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese)

How to get response of one camel route inside other camel route

2014-02-12 Thread reena upadhyay
Hi , I want the response of one camel route inside the other camel route. Like for example I have two camel routes route1 and route2 with entry point camelEntryServicePoint1 and camelEntryServicePoint2 resp. Now I want the reponse of route2 to be used inside route1 or to access route2 inside

Re: How to get response of one camel route inside other camel route

2014-02-12 Thread Reji Mathews
Use a vm: point. In memory queueing reena upadhyay reena2...@outlook.com wrote: Hi , I want the response of one camel route inside the other camel route. Like for example I have two camel routes route1 and route2 with entry point camelEntryServicePoint1 and camelEntryServicePoint2 resp. Now I

Add RoutePolicy to multiple routes

2014-02-12 Thread edhansen42
I would like to add a custom RoutePolicy to each of the routes in the CamelContext in one spot, instead of having to do so explicitly in each route. The problem I'm having is finding a hook in a spot after all the routes have been added to the context, but before they have been started. Is there

Re: Groovy compiled scripts cache execution context

2014-02-12 Thread Claus Ibsen
Hi Should be fixed in upcoming 2.12.3 release. On Tue, Feb 11, 2014 at 10:19 PM, florin florin.f.ma...@gmail.com wrote: Trying to use a Groovy script inside a Camel (version 12.2.1) validator I encountered the problem that the validator returns always the result form first evaluation (from

Re: Add RoutePolicy to multiple routes

2014-02-12 Thread edhansen42
Wanted to clarify a bit. I created a class that implemented CamelContextAware and contained a @PostConstruct init() method. This was called after all the routes had been added to the context, and I was able to access the routes and add my custom RoutePolicy to them, but the policy on each route

Re: Add RoutePolicy to multiple routes

2014-02-12 Thread Claus Ibsen
You can try with a custom lifecycle strategy and its callbacks such as onRoutesAdd http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/LifecycleStrategy.html On Wed, Feb 12, 2014 at 10:23 AM, edhansen42 e...@vsp.com wrote: Wanted to clarify a bit. I created a class

Re: Upgrade Jsch to 0.1.50

2014-02-12 Thread Bengt Rodehav
That's great - thanks Christian! /Bengt 2014-02-11 23:25 GMT+01:00 Christian Müller christian.muel...@gmail.com: Done. Upgraded in master, camel-2.12.x and 2.11.x. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC

how apache-cxf overwrites jaxws-ri

2014-02-12 Thread nono
Dear all, I am using a web service which using jaxws-ri instead of apache-cxf, but i deployed it into fuse-esb which has camel-cxf installed by default then i found out. apache-cxf is used during runtime in instead of jaxws-ri, although i did not use camel-cxf in my bundle how to avoid it?

OOM issue due to MemoryIdempotentRepository

2014-02-12 Thread Chirag Dewan
Hi All, I am using Camel 2.12.1 with JDK 1.7.0_45. I have a FTP consumer route in my application. Now I intent to delete the file after consuming it. So I have delete=true in my route. After consuming around 6000 files(out of 1,as my test case) JVM goes Out of memory. In my heap dump

Re: Add RoutePolicy to multiple routes

2014-02-12 Thread edhansen42
Thanks Claus. Interesting, I'm able to set the policy on all the routes via the lifecycle - but now onExchangeBegin is no longer being invoked on my policy. -- View this message in context: http://camel.465427.n5.nabble.com/Add-RoutePolicy-to-multiple-routes-tp5747167p5747177.html Sent from

Re: Add RoutePolicy to multiple routes

2014-02-12 Thread Claus Ibsen
On Wed, Feb 12, 2014 at 11:59 AM, edhansen42 e...@vsp.com wrote: Thanks Claus. Interesting, I'm able to set the policy on all the routes via the lifecycle - but now onExchangeBegin is no longer being invoked on my policy. Yeah I haven't looked maybe the callback is too late. Though dont have

Re: Converter not getting called

2014-02-12 Thread yagyesh
I was able to solve the issue .There were some problem in my TypeConverter 1)it was not public 2)In typeConverter configuration there were some blank space 3)The InputStream data was not converted to proper form so typeConversionException -- View this message in context:

Setting Header Value in java

2014-02-12 Thread yagyesh
Hi All, I have code in groovy to create a ProducerTemplate and pass the header value . Below is the code snippet: template.requestBodyAndHeader(direct:aa,null,ab,start,JSONArray); ab is header string' start is the header value So while creating the route public void

The method createProducerTemplate() is undefined for the type CamelContext?

2014-02-12 Thread Pearl
Hi, Please have a look into my code given below: import javax.jms.ConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.camel.CamelContext; import org.apache.camel.ProducerTemplate; import org.apache.camel.builder.RouteBuilder; import

Re: OOM issue due to MemoryIdempotentRepository

2014-02-12 Thread Claus Ibsen
Hi Some days ago someone else posted about a OOME issue when using Storm. It smells like a Storm + Camel issue somewhere. On Wed, Feb 12, 2014 at 11:50 AM, Chirag Dewan chirag.dewa...@yahoo.in wrote: Hi All, I am using Camel 2.12.1 with JDK 1.7.0_45. I have a FTP consumer route in my

RE: Create Camel routes as plugins - loose coupled from legacy routes

2014-02-12 Thread Elvio Caruana (ecaruana)
+camel-users (I think this question is more appropriate for the users mailing list.) But to answer your question, the recipient list EIP will allow you to 'dynamically' set (or change) the endpoint using an expression (e.g. value in header, or from a constant configuration value). Similarly,

Re: OOM issue due to MemoryIdempotentRepository

2014-02-12 Thread Chirag Dewan
Hi Claus, Thanks for the quick reply. It might well be. But there is one thing I would like to get some insight into. If idempotent=false(default) is used,will the LRU Cache still store the file referrence? Because that is what I can see in my memory dump. org.apache.camel.util.LRUCache  

Confused with Camel in Spring/OSGI

2014-02-12 Thread franck102
I am trying to use Camel 2.12. in a Virgo server, using spring/OSGI since Virgo's blueprint is based on Gemini. The context.xml file below sucessfully starts a camel context... however breaking in the code shows that I am instantiating a SpringCamelContext rather than a

How to invoke web service operation that is being exposed by cxfEndpoint.

2014-02-12 Thread reena upadhyay
I want to invoke web service operation that is being exposed by cxfEndpoint. Service end point interface is: @WebService public interface Plan { public ListXmpFavoriteTypes getAllFavoriteTypes() ; public ListXmpFavorites getUserFavoritesInfo(int ownerId, int

Re: OOM issue due to MemoryIdempotentRepository

2014-02-12 Thread Chirag Dewan
Hi, And I am using readLock=changed. So that can be a reason too? Chirag Dewan From: Chirag Dewan chirag.dewa...@yahoo.in To: users@camel.apache.org users@camel.apache.org Sent: Wednesday, 12 February 2014 6:07 PM Subject: Re: OOM issue due to

Multiple camel routes watch the same mounted directory

2014-02-12 Thread Jonas Geiregat
Hello, I’m in the situation where we have an application that has multiple deployed instances. Since all linux nodes are identical, they all share a common route. This route watches a mounted folder on their locally installed server which for all instances have the same origin. The issue

Re: How to get response of one camel route inside other camel route

2014-02-12 Thread scottdawson
Or you may be able to use the direct http://camel.apache.org/direct.html component if both routes are in the same camelContext. Regards, Scott -- View this message in context:

Re: The method createProducerTemplate() is undefined for the type CamelContext?

2014-02-12 Thread Claus Ibsen
Hi What version of Camel do you use? Sounds a bit weird. Can you check your classpath that you use the same version of Camel JARs. The api of camelcontext is in the javadocs here http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html On Wed, Feb 12, 2014

Re: Confused with Camel in Spring/OSGI

2014-02-12 Thread Claus Ibsen
Hi Camel works the best in Apache Karaf as its OSGi container. That is what we use for development and testing. There may be some caveats and issues running in Eclipse Virgo. If it does not matter for you which osgi container, then I suggest to use Apache Karaf On Wed, Feb 12, 2014 at 1:47

RE: Confused with Camel in Spring/OSGI

2014-02-12 Thread franck102
Thanks Claus, this is unfortunately completely out of the question... I have made some progress: the OSGI detection in org.apache.camel.spring.handler.CamelNamespaceHandler#init doesn't work properly if the camel-spring bundle is being resolved as a dependency: in that situation, in

How to return null element with Camel-CXF

2014-02-12 Thread Chubutin
Hi! I'm having problems when I try to return a null element in SOAP response. When I send a null body as response to CXF Bean, this Bean doesn't create a null response and return that null element to the response. So, i want to return a null element in the response but I can't. If I test the

Re: How to return null element with Camel-CXF

2014-02-12 Thread Chubutin
My new route with the fix is .choice() .when().simple(${in.body} contains 'vessel') .unmarshal(getJaxbDataFormat()) .otherwise() .process(new Processor() {

Re: Groovy compiled scripts cache execution context

2014-02-12 Thread florin
I am not sure if the sample is still necesary but I post it just in case: /?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:cxf=http://camel.apache.org/schema/cxf;

Re: Duplicate JMS messages are getting piled up with redelivery of messages

2014-02-12 Thread kraythe .
The first thing I observe is that exception handlers really should be the first thing in the route. I dont think the spring DSL enforces this. As to your question, when you have the message in the transaction and the transaction fails, the message will end up back in the queue, having never left

RE: Confused with Camel in Spring/OSGI

2014-02-12 Thread Mangin, Franck
Well, as far as I can tell (and I may definitely be missing something) the state of OSGI support in camel-spring is in a pretty sorry state of affair... camel-spring 2.12.2 depends on spring 3.1.0.RELEASE, but it contains references to the BundleContextAware class which doesn't seem to be

Re: Adding Routes at the runtime-cannot add multiple consumer to the same endpoint

2014-02-12 Thread kraythe .
What claus said. Also, you have to use a concurrentConsumers option on a FROM uri to consume with multiple instances of the same route from an endpoint. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn:

Re: Confused with Camel in Spring/OSGI

2014-02-12 Thread Donald Whytock
On Wed, Feb 12, 2014 at 12:35 PM, Mangin, Franck franckman...@fico.comwrote: Well, as far as I can tell (and I may definitely be missing something) the state of OSGI support in camel-spring is in a pretty sorry state of affair... camel-spring 2.12.2 depends on spring 3.1.0.RELEASE, but it

Log component query

2014-02-12 Thread gilboy
Hi Assume in my route I have the following line: to uri=quot;log:org.apache.camel.example?level=lt;bDEBUG*/ Now assume in my application that I have configured the category org.apache.camel.example to have a log level of *INFO*. Is it the case that it will only be in the route where logging

Re: Resume an Endpoint in a Route

2014-02-12 Thread andrzej.majewski
Hi, If you were to delay the message for some time you could just use the delayer. http://camel.apache.org/delayer.html from {file:location} to validate delay base on dynamic header to DBLoad to processcomplete The alternative could be split the route into two separate route first one

Re: Resume an Endpoint in a Route

2014-02-12 Thread eswar
Thanks Andrzej, I think asynchronous delayer could be an option, will try that. And yes Queues would be an overhead here. -- View this message in context: http://camel.465427.n5.nabble.com/Resume-an-Endpoint-in-a-Route-tp5747151p5747213.html Sent from the Camel - Users mailing list archive at

Re: Resume an Endpoint in a Route

2014-02-12 Thread Willem Jiang
I think split the route into two route could be a better solution. In this way you can get the full control of how and when put the messages into the DB. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English)

Re: Resume an Endpoint in a Route

2014-02-12 Thread eswar
more specifically, I am not sure if we can do something like this, which is to resume the route after a delay. I am not able to use RoutingPolicy as the time is a dynamic component and my routes are defined in the Spring XML. Processor(Exchange exchange) {

Re: Add RoutePolicy to multiple routes

2014-02-12 Thread edhansen42
Instead of onRoutesAdd, I tried adding the policy in onRouteContextCreate and that worked! Thanks again for the help Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Add-RoutePolicy-to-multiple-routes-tp5747167p5747209.html Sent from the Camel - Users mailing list

RE: Confused with Camel in Spring/OSGI

2014-02-12 Thread Willem Jiang
Hi, Current camel-spring are only tested with Spring-DM, camel-blueprint could be an option for you if the Virgo server support the Blueprint out of box, but you may not use the some advance features that spring provides. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Re: how apache-cxf overwrites jaxws-ri

2014-02-12 Thread Willem Jiang
Hi, Fuse ESB is using CXF for the JAXWS implementation by default. If you want to jaws-ri from JDK, you need to hack the jre.properties to let Fuse ESB see the ri packages. I’m not sure if there is somebody did that before. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Re: Resume an Endpoint in a Route

2014-02-12 Thread Willem Jiang
It’s not a good idea, the custom processor blocks the whole camel route processor chain, which could introduce some performance issue. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English)

Re: Log component query

2014-02-12 Thread Willem Jiang
Hi, The log component just log the message with the level that you set, it just as the common log. If your log endpoint level is lower then the category configuration, the log message won’t appear.  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

NullPointerException in FileInputStreamCache

2014-02-12 Thread Rural Hunter
Hi, I'm using Camel 2.12.2 and enabled stream caching with this code: context.setStreamCaching(true); Sometimes I got NullPointerException related to stream cache: Stacktrace

Re: Camel swallows Error

2014-02-12 Thread Rural Hunter
Yes, I'm trying to isolate the test case but it's a bit hard. In most situation I see the good stack trace. 于 2014/2/12 16:17, Willem Jiang 写道: I think you need share us with your test case, it could be more easy for us to dig the issue. -- Willem Jiang Red Hat, Inc. Web:

RE: Confused with Camel in Spring/OSGI

2014-02-12 Thread Mangin, Franck
Thanks Willem, that clarifies things, I hadn't fully realized that Spring DM is clearly distinct from spring. I am a bit hesitant about bringing in Spring DM into the picture for a couple reasons: - Virgo comes with spring 3 installed (and uses it heavily), the latest version of spring DM

Re: Resume an Endpoint in a Route

2014-02-12 Thread eswar
Ok here is what I have done - route 1 - from dir to validate route 2 from validate bean ref=delay to db load to processcomplete Inside the Bean I have stopped the route, and I used Quartz API's scheduler to trigger the validate endpoint at a specific time of the day using the same

Camel error handler doesn't handle org.springframework.jms.UncategorizedJmsException

2014-02-12 Thread Gavin Zhang
Hi, I use Camle 2.9.2 and setup a normal MQ endpoint, which works perfectly under almost all situations. But the error handler cannot handle the following exception when it happens. Please see the stacktrace for details: 2014-02-13 06:04:04,917 [.ASYNC.ADAPTER]] WARN EndpointMessageListener

Re: NullPointerException in FileInputStreamCache

2014-02-12 Thread Claus Ibsen
Hi Can you post your Camel route? On Thu, Feb 13, 2014 at 5:03 AM, Rural Hunter ruralhun...@gmail.com wrote: Hi, I'm using Camel 2.12.2 and enabled stream caching with this code: context.setStreamCaching(true); Sometimes I got NullPointerException related to stream cache: Stacktrace