How to create a central route controller

2014-06-30 Thread dermoritz
in my java based camel app i want create a central class that controls all routes (starting, stopping) but i don't want any route be aware of this class. routes should keep untouched on any changes of route control, like refactoring. My app uses guice (DI) and at the moment i began with a simple cl

Re: Data format conversion

2014-06-30 Thread jyoti
Hi, I think I should start from scratch to test a basic scenario. Thanks:-) -- View this message in context: http://camel.465427.n5.nabble.com/Data-format-conversion-tp5753032p5753113.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ExchangeSentEvent spent time is more than ExchangeCompletedEvent

2014-06-30 Thread Arthanarisamy Annamalai
Hi Matt, Thanks for the reply, actually i do not get any exceptions as the external service returns a success response. Below is code used to invoke a EJB service Future futurexchange = (Future) p_ProducerTemplate .asyncSend(FrameworksStartup.get

How to deploy same Camel routes in multiple server nodes for load balancing and fail over?

2014-06-30 Thread sathiyaseelan
Hi We're having some came routes defined in a single CamelContext which contains Web services,activemq.. in the Route. Initially we've deployed the Routes as WAR in single Jboss node. To scale out(usually we're doing for web services) , I've deployed the same CamelContext in multiple Jboss nodes

Issue with Camel

2014-06-30 Thread Ritwick
Hi, I am new to Camel and am facing an issue with a route I need to setup. It will be great if someone can either guide me to the correct forum or better still rectify the issue I am facing. Here is what I need to do - expose a restlet endpoint to accept data; use this data as input to an externa

Re: Paid Support

2014-06-30 Thread Pete Carapetyan
Heads up - reports from one local shop here in Austin that they have been very pleased with Red Hat support for Fuse. On Mon, Jun 30, 2014 at 6:45 PM, Matt Sicker wrote: > I know Red Hat offers support through the Fuse project which is based on > Camel. > > > On 30 June 2014 13:49, Claus Ibsen

Re: OnCompletion and rollbacked transaction.

2014-06-30 Thread andrericos
Well... I tried to find where the camel stops to compute the route and I found this code in RedeliveryErrorHandler.java: // compute if we are exhausted, and whether redelivery is boolean exhausted = isExhausted(exchange, data); boolean redeliverAllowed = isRedeliveryAllowed(data); // if we are

Re: Paid Support

2014-06-30 Thread Matt Sicker
I know Red Hat offers support through the Fuse project which is based on Camel. On 30 June 2014 13:49, Claus Ibsen wrote: > Hi > > Yes see the commercial offerings of Apache Camel > http://camel.apache.org/commercial-camel-offerings.html > > On Mon, Jun 30, 2014 at 8:41 PM, madhu_online1 > wro

Re: Help understanding a custom component

2014-06-30 Thread Matt Sicker
For sending to the proprietary broker, you'll want to implement a Producer class. At minimum, you need a Component and Endpoint implementation. If you're using a singleton connection that's shared amongst all clients in a single JVM, then you can use a static class variable or just pass around the

Re: Return Value from Python Script Not In Message Body

2014-06-30 Thread Matt Sicker
Wouldn't executing the script in Jython be faster than firing up CPython or similar? I know that's definitely the case with JRuby vs. the official one. On 30 June 2014 08:21, scottdawson wrote: > As an alternative to the language component, you can use the exec component > (or the ssh component

Re: ExchangeSentEvent spent time is more than ExchangeCompletedEvent

2014-06-30 Thread Matt Sicker
When you get a stack trace and message history from an exception, it tells you how long the message spent in each endpoint. I'd take a look at that code for some ideas. On 30 June 2014 06:30, Arthanarisamy Annamalai wrote: > Hi, > > I am trying to Log time taken on Camel, in which i see that th

Re: loadbalancing dynamic failover

2014-06-30 Thread Minh Tran
I guess in my custom load balancer I can lookup the database to see whether a certain route is currently enabled/disabled. That could work. The only downside would be is that I need to know the full list of routes when Camel starts. That is probably a good enough compromise. Thanks a lot! On 01

Re: loadbalancing dynamic failover

2014-06-30 Thread Minh Tran
This is an interesting solution but unsure how to build it into my routes. Each of my failover route would have to create the same znode and then only one will trigger? I think this is how the zookeeper route policy works but it seems like it's really only useful when you have multiple instances

OnCompletion and rollbacked transaction.

2014-06-30 Thread andrericos
Hi, I'm facing a problem using OnCompletion and a Transacted route. Let me show an example: this.from("servlet:///test").routeId("CamelTestRoute") .onCompletion() .bean(this.logCompletionRoute) .end() .onException(Exception.class)

Re: Issues invoking external URL with Http Basic Auth

2014-06-30 Thread madhu_online1
Finally got this to work by changing the way the REST web service was invoked including the exposed URL itself:- .setHeader(Exchange.HTTP_URI,simple("http://rq3l2hps1:9081/V5/ECM/Rest/content/filenet/ClaimsTargetOS/TempClaimCenterDocument/${in.header.docUID}/Count";))

Re: Camel AdviceWith issues

2014-06-30 Thread Claus Ibsen
On Wed, Jun 25, 2014 at 12:14 PM, Gnanaguru S wrote: > Hello > > Its my long pending doubt on using AOP stuffs in Camel while writing test > cases. > > 1. weavebyid - works only with processors like Choice, doTry, Multicast. It > doesn't work with endpoints. Especially with 'To' endpoints. ( For '

Re: Paid Support

2014-06-30 Thread Claus Ibsen
Hi Yes see the commercial offerings of Apache Camel http://camel.apache.org/commercial-camel-offerings.html On Mon, Jun 30, 2014 at 8:41 PM, madhu_online1 wrote: > hi, > Is there a way to get paid support on this list? I need to resolve my issues > quickly and have hit a wall so wondering if the

Paid Support

2014-06-30 Thread madhu_online1
hi, Is there a way to get paid support on this list? I need to resolve my issues quickly and have hit a wall so wondering if there is such a service. -- View this message in context: http://camel.465427.n5.nabble.com/Paid-Support-tp5753074.html Sent from the Camel - Users mailing list archi

Re: Problem with adviceWith on 2.13.x

2014-06-30 Thread Claus Ibsen
Hi Thanks for reporting. I have logged a ticket and reproduced the issue on master https://issues.apache.org/jira/browse/CAMEL-7560 On Tue, Jun 17, 2014 at 1:07 PM, Preben.Asmussen wrote: > Hi > > There seems to be something broken when using AdviceWithRouteBuilder when > you have a transactiona

Re: Issues invoking external URL with Http Basic Auth

2014-06-30 Thread madhu_online1
I tried using the following code snippet and still not able to get the docUID value to be replaced at runtime. Either the value doesn't get replaced or I face auth issues when I try other approaches. .setHeader(Exchange.HTTP_URI,simple("http://rq3l2hps1:9081/V5/ECM/Rest/content/filenet/ClaimsTarg

Re: loadbalancing dynamic failover

2014-06-30 Thread Claus Ibsen
Hi This is not supported. The list of endpoints is static. You can write your own custom load balancer though. On Mon, Jun 30, 2014 at 8:24 AM, Minh Tran wrote: > Hi > > I'd like to have a failover route where the list of failover routes are > dynamic. My intention is to store this list in a d

Re: Data format conversion

2014-06-30 Thread Claus Ibsen
Hi There must be something other weird going on. I can install a simple blueprint xml file with xmljson dataformat using Camel 2.12.2 Try without CXF and make your camel application as simple as possible. http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XM

Re: Mangled headers on CXFRS request

2014-06-30 Thread edhansen42
Thanks guys - I'd rather stick with the proxy model, so I'll wait for the patch. -- View this message in context: http://camel.465427.n5.nabble.com/Mangled-headers-on-CXFRS-request-tp5753012p5753069.html Sent from the Camel - Users mailing list archive at Nabble.com.

Help understanding a custom component

2014-06-30 Thread Jon Mithe
Hi, I thinking about using camel but struggling a bit / getting a bit lost, wondering if anyone can help me get some direction on my problem I have a client that connects to multiple servers via 1 connection to a proprietary message broker. Essentially the app connects to broker and TCP communi

Re: Issues invoking external URL with Http Basic Auth

2014-06-30 Thread madhu_online1
I am wondering how that will take care of my authentication issue. So here is my new code snippet:- String docUID = "${in.body.documentID}"; from(documentServiceEndpoint) .routeId(documentRequestType) .un

Re: loadbalancing dynamic failover

2014-06-30 Thread Scott Stults
Another way you could do this is with Zookeeper leader election. Zk itself keeps track of the potential backup servers and each candidate must maintain an active connection to zk in order to remain a candidate. New candidate backups can register at any time. Hope that helps give you some options!

Re: Issues invoking external URL with Http Basic Auth

2014-06-30 Thread Willem Jiang
You can put the docUID value as the message header with the key “docUID" and reference it by using this simple expression ${in.header.docUID} -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemj

Re: Asynchronous delay in camel route

2014-06-30 Thread Claus Ibsen
Hi Yeah its likely the consumer on the SY end, or whatever the original Camel consumer is does not support async routing. http://camel.apache.org/asynchronous-processing.html http://camel.apache.org/asynchronous-routing-engine.html On Mon, Jun 30, 2014 at 4:55 PM, vinodhvp wrote: > > Hi, > > I a

Issues invoking external URL with Http Basic Auth

2014-06-30 Thread madhu_online1
Hi, I am having lot of issues invoking an external REST web service url from my Camel route. This is my code snippet:- public class DocumentCountRouteBuilder extends RouteBuilder { public void configure() { ... from(documentServiceEndpoint)

Asynchronous delay in camel route

2014-06-30 Thread vinodhvp
Hi, I am working on a switchyard project. We have a requirement to add message to a delayed Queue. I used the following code snippet in camel route to post the message to the Queue. from("switchyard://MyOwnCamelRoute") .delay(1).asyncDelayed() .log("Received message for 'MyOwnC

Re: Return Value from Python Script Not In Message Body

2014-06-30 Thread scottdawson
As an alternative to the language component, you can use the exec component (or the ssh component if the script is on a remote machine): Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753052.ht

Re: Data format conversion

2014-06-30 Thread Claus Ibsen
Hi Can you try with Camel 2.13.1 ? On Mon, Jun 30, 2014 at 1:14 PM, jyoti wrote: > Claus, > > I see no error when I comment the marshal code i.e . > But with this I see the same error with following logs :- >> [Log[The ex... because of Data format 'xmljson' could not be created. >> Ensure that t

Re: Client ID for MQTT endpoint.

2014-06-30 Thread Claus Ibsen
Hi I suggest to check the source code for camel-mqtt to see if you can find something there. If not it may be a nice addition to allow configuring this. As we love contributions you are welcome to work on a patch http://camel.apache.org/contributing.html On Mon, Jun 30, 2014 at 1:37 PM, Jeremy Go

Client ID for MQTT endpoint.

2014-06-30 Thread Jeremy Gooch
Hi, Is there a non-documented option for the MQTT endpoint, through which I can set the client ID? My Mosquitto MQTT broker currently assigns Camel an arbitrary ID along the lines of "7f00d901c0b253b144e5". However, this isn't much use if I want to use an ACL within Mosquitto in order to secure

ExchangeSentEvent spent time is more than ExchangeCompletedEvent

2014-06-30 Thread Arthanarisamy Annamalai
Hi, I am trying to Log time taken on Camel, in which i see that the time taken by 'ExchangeSentEvent' is more than 'ExchangeCompletedEvent' Below are the logs, ExchangeCompletedEvent - Took 2385 millis for the exchange on the route ExchangeSentEvent - Took 2401 millis to send to external system

Re: Data format conversion

2014-06-30 Thread jyoti
Claus, I see no error when I comment the marshal code i.e . But with this I see the same error with following logs :- > [Log[The ex... because of Data format 'xmljson' could not be created. > Ensure that the data format is valid and the associated Camel component is > present on the classpath

Re: Problem with sFTP PUT

2014-06-30 Thread deepak_a
Hi, Can some one advise on the above issue I am facing. Upgrading Camel is not an option - since we are facing this issue in Production. FYI: I set up a local sFTP server locally to test the above requirement - and it seems to work fine - I am wondering if its to do with directory permission?

Re: Data format conversion

2014-06-30 Thread Claus Ibsen
Hi Have you tried restarting karaf, and do you see any errors or something in the log? On Mon, Jun 30, 2014 at 11:20 AM, jyoti wrote: > Hi, > > I installed came-xmljson feature in camel, but I still see the same error. > Do I need to configure something else too? > > > > -- > View this message i

Re: Mangled headers on CXFRS request

2014-06-30 Thread Sergey Beryozkin
Hi Willem, thanks for identifying the issue, I've created https://issues.apache.org/jira/browse/CAMEL-7557 I can do a patch or if you have some time then please do a quick fix Cheers, Sergey On 30/06/14 07:27, Willem Jiang wrote: I just checked the code of CxfRsProducer, it doesn’t copy the m

Re: Data format conversion

2014-06-30 Thread jyoti
Hi, I installed came-xmljson feature in camel, but I still see the same error. Do I need to configure something else too? -- View this message in context: http://camel.465427.n5.nabble.com/Data-format-conversion-tp5753032p5753041.html Sent from the Camel - Users mailing list archive at Nabble.

Re: Error on using camel cxf "No binding factory… http://schemas.xmlsoap.org/soap/ registered (but works in eclipse)

2014-06-30 Thread dermoritz
i created an minimal example that reproduces the problem: cxfTests.zip or https://bitbucket.org/moritz_loeser/cxftests/src To reproduce change the route to a folder that exists on your machine and contains at least one file (one exch

Re: Data format conversion

2014-06-30 Thread Claus Ibsen
Hi You need to install camel-xmljson in karaf using features:install camel-xmljson On Mon, Jun 30, 2014 at 9:31 AM, jyoti wrote: > Hi, > > I am new to camel so don't have much idea about data conversion. I am using > OSGI for this, therefore have included the dependency for camel-xmljson in >

Re: Data format conversion

2014-06-30 Thread jyoti
Hi Claus, Thanks for the spontaneous reply. I am using Camel 2.12.2 and blueprint.xml file. As an osgi container I am using karaf. -- View this message in context: http://camel.465427.n5.nabble.com/Data-format-conversion-tp5753032p5753037.html Sent from the Camel - Users mailing list archive a

Re: Data format conversion

2014-06-30 Thread Claus Ibsen
Hi What version of Camel do you use? And do you use blueprint or spring in the xml file? And what osgi container do you use? karaf/smx etc? On Mon, Jun 30, 2014 at 9:31 AM, jyoti wrote: > Hi, > > I am new to camel so don't have much idea about data conversion. I am using > OSGI for this, therefo

Data format conversion

2014-06-30 Thread jyoti
Hi, I am new to camel so don't have much idea about data conversion. I am using OSGI for this, therefore have included the dependency for camel-xmljson in pom.xml and have added in blueprint.xml. But I get the following error on bundle initialization "Data fo