RE: File Exists

2014-01-31 Thread Ravindra.Godbole
As Claus has pointed out in the earlier thread, depending on the configuration, listing of files is passed on to the filter for processing. Any new file will be picked up in the next iteration. -Ravi From: JKemp [kemp.ja...@gmail.com] Sent: Saturday, Febr

SOAP

2014-01-31 Thread rpcat
I'm using Camel 2.12 and have a standalone Camel instance. One of the routes is an http endpoint that expects a post body containing a SOAP envelope that then needs to unmarshall the soap, marshall it into Json and hand it off to another endpoint that expects Json: ServiceInterfaceStrategy strate

Re: JMS message selector problem with IBM MQ when doing request/reply (MEP InOut)

2014-01-31 Thread Fernando Giorgetti
Claus, thanks for the quick reply. I did it some tests and it seems to work, but can you help me understand what is really happening behind the scenes? Looking at the camel code, it will add a header to the JMS message using a unique ID (generated by camel) as a value and the name I gave as the h

Re: Problem with tracing streams (and stream caching)

2014-01-31 Thread Claus Ibsen
What Camel version do you use? Try to upgrade to latest. And try SNAPSHOT code also. On Fri, Jan 31, 2014 at 1:34 PM, Joni Nousiainen wrote: > Hi all! > > I am trying to extend Camel's built-in Tracer's functionality by adding my > own TraceEventHandler implementation. The implementation places t

Re: LoadBalancing does not increaing performace

2014-01-31 Thread Shing Hing Man
Thanks for all the comments and suggestions ! I will dig deeper. Shing On Friday, January 31, 2014 7:21 PM, Claus Ibsen wrote: Hi You can increase throughput by tweaking jetty, such as its thread pool, backlog etc. And during Camel routing to use async non blocking routing if possible

Re: File Exists

2014-01-31 Thread JKemp
Ah, whoops, my fault. I was looking at the File documentation and not at File2. I think I have a working solution, but I'm wondering if I'm going about this in the best way. I set up my route with the filter: http://camel.apache.org/schema/spring";>

Re: JMS message selector problem with IBM MQ when doing request/reply (MEP InOut)

2014-01-31 Thread Claus Ibsen
Try look at the replyToDestinationSelectorName option. On Fri, Jan 31, 2014 at 6:53 PM, Fernando Giorgetti wrote: > Hello, > > I am having a problem with the selector used by jms component to fetch the > reply messages when using MEP InOut (while running a load test). > > We have manually shutdow

Re: LoadBalancing does not increaing performace

2014-01-31 Thread Claus Ibsen
Hi You can increase throughput by tweaking jetty, such as its thread pool, backlog etc. And during Camel routing to use async non blocking routing if possible, eg avoid having threads blocked etc.. The load balancer makes only sense if you balancer across a number of external endpoints, which dis

JMS message selector problem with IBM MQ when doing request/reply (MEP InOut)

2014-01-31 Thread Fernando Giorgetti
Hello, I am having a problem with the selector used by jms component to fetch the reply messages when using MEP InOut (while running a load test). We have manually shutdown the route that consumes from that jms endpoint to stress test our incoming WS. The problem is that the generated selector is

Re: LoadBalancing does not increaing performace

2014-01-31 Thread James Carman
You're also using "direct" endpoints in your load balancer. That's not going to help you, since it'll just stay on the same thread. Check out my example here and look at the output: https://github.com/jwcarman/camel-sandbox/blob/master/src/test/java/com/carmanconsulting/sandbox/camel/LoadBalancer

Re: Master/Slave failover using database lock

2014-01-31 Thread Bilgin Ibryam
It seems you already know all the possible options. The only one you haven't mentioned is the master component available in Fuse fabric. Here is an article I listed some of the options: http://www.ofbizian.com/2014/01/masterslave-failover-for-camel-routes.html Cheers, On 31 January 2014 11:5

Re: Master/Slave failover using database lock

2014-01-31 Thread Christian Müller
I'm afraid you have to adapt this by your own. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Fri, Ja

Re: LoadBalancing does not increaing performace

2014-01-31 Thread Christian Müller
I think the processor time of your processor is "cheap". I don't expect a performance boost by using a load balancer here. I suggest to have a look at how to configure Jetty optimal for your use case. Best, Christian - Software Integration Specialist Apache Member V.P. Apache Ca

Re: Deploying REST service on running camel:jetty instance

2014-01-31 Thread nit_mis
First of all I would like to reiterate your problem for my understanding. - You would like expose 2 restful web services from same camel route with the same base URI in a web container (Jetty in this case)? - You require hot deployments for your web services? If my understanding is correct, then t

Re: Problems with dynamic throttling

2014-01-31 Thread pisulam
Hey there, I did some more testing and debugging. I think there are two problems. One is with the implementation of Throttler.nextSlot(). In there a new slot is generated whenever a slot is full or not in the current timeframe. Whenever the throttling rate changes from a low to a high number th

NoTypeConversionAvailableException FOMList to Document

2014-01-31 Thread Craig Tataryn
I'm converting an rss consumer route to atom, however I'm running into a problem (see below). For rss there was an actual marshaller I could invoke before using split, however with atom I don't see an equivalent. If I replace the marshalling section with: .marshal().string("utf-8") I get anoth

LoadBalancing does not increaing performace

2014-01-31 Thread Shing Hing Man
Hi, I am using Camel 2.11 and I have the following route. from("jetty:http://"; + hostURL + "/adtruth?matchOnUriPrefix=true") .process(myProcessor); where myProcessor just does a http redirect. I am trying to increase the throughput of the above route (to able to handle more messages per

Re: Consuming multiple JMS messages in one single transaction

2014-01-31 Thread Scott England-Sullivan
If you don't need an aggregator then you are good to go with SJMS for batch consumers. It is only in the case of an aggregator that there can be an issue where the transaction can close before the aggregator completes. Let me know if you need anything else. Thanks, Scott ES On Fri, Jan 24, 201

Problem with tracing streams (and stream caching)

2014-01-31 Thread Joni Nousiainen
Hi all! I am trying to extend Camel's built-in Tracer's functionality by adding my own TraceEventHandler implementation. The implementation places the ProcessorDefinition and Exchange inside a wrapper object and then sends it to another Camel route (trace route) by using ProducerTemplate.send

Re: Deploying REST service on running camel:jetty instance

2014-01-31 Thread bijoy
Yes, I have gone through the restlet doc. The configurations suggested for deploying restlet on webapp is applicable for external containers. But I want to achieve the same using embedded jetty container that ships with camel:jetty component. There are no sufficient documentations available to conf

Re: Deploying REST service on running camel:jetty instance

2014-01-31 Thread Taariq Levack
Hi Have you seen the restlet docs[1] for Using the Restlet servlet within a webapp? [1]http://camel.apache.org/restlet.html > On 31 Jan 2014, at 10:19, bijoy wrote: > > Any thoughts how to achieve this? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Deploying

Master/Slave failover using database lock

2014-01-31 Thread gquintana
Hello, I'm deploying my Camel routes in a WebLogic cluster. Is there something to force a route to run on a single node. I saw the Zookeeper RoutePolicy but it looks complicated. Is there a routepolicy using a database lock to select the single node? I know that ActiveMQ, Karaf, Quartz can do it.

JpaConsumer - failed polling endpoint

2014-01-31 Thread Sebarry
Hi, I'm getting the following error trying to poll a JPA entity Person. There's no error in the code. Everything compiles ok with a mvn clean install and the Person entity does exist in the net.lr.tutorial.karaf.camel.jpa2jms.model package. I have installed all the necessary features I believe and

Re: Deploying REST service on running camel:jetty instance

2014-01-31 Thread bijoy
Any thoughts how to achieve this? -- View this message in context: http://camel.465427.n5.nabble.com/Deploying-REST-service-on-running-camel-jetty-instance-tp5746625p5746644.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Obtain current route from custom component

2014-01-31 Thread Claus Ibsen
Hi You can get the information from the exchange being routed. It has API to get that. Something along the lines of: exchange.getUnitOfWork().getRouteContext().getRoute().getId(); There is also a getFromRouteId() on exchange but its the first route (eg original route where the exchange was cr