Re: Camel vs BPEL

2012-09-13 Thread Łukasz Budnik
Hi guys, I'm using WS-BPEL for 5 years and Apache Camel for 3 years. I use them BOTH. It depends on the use case. If I have to write complex system integrations then WS-BPEL-based service orchestration is ideal. If I have to implement service flows then WS-BPEL is simply my number one. On the

how to decide the exchagne pattern of the route

2012-09-13 Thread Sura Monday
Hi All, I have an exchange pattern like the one shown below: from(jason:action).inOut(jms:validate);    from(jms:validate).bean(ValidatorBean.class); At my jason end point, if I print out [endpoint].getExchangePattern(), it returns inOnly. Why doesn't getExchangePattern()

Re: Multicast, redelivery and error handlers

2012-09-13 Thread Claus Ibsen
There is no exception occurring. And therefore the error handler does not redeliver anything. If the timeout is hit on the multicast, then yes the multicast will aggregate what it currently has, and continue routing. On Wed, Sep 12, 2012 at 10:37 PM, jimbogaz jimbo...@gmail.com wrote: Hi all.

oracle BPEL vs camel

2012-09-13 Thread mfcplus
Hi, can anyone give some really good convincing stuff that why should we use camel over BPEL? I'm trying to convince somebody here to use camel instead of oracle SOA 11g that has BPEL engine as so called 'orchestrator'. any references, materials are good, and especially like to have some input

Re: Camel vs BPEL

2012-09-13 Thread Claus Ibsen
Anyone got that link to the blog post by a swedish company (I think it was Jayway) that posted a couple of years ago, about the 15+ steps it took them to figure out how to do a XSLT in Oracle, and that it took 3 lines of simple code in Camel. Ah I found it here it is:

Re: how to decide the exchagne pattern of the route

2012-09-13 Thread Claus Ibsen
On Thu, Sep 13, 2012 at 8:36 AM, Sura Monday sura.mon...@yahoo.com wrote: Hi All, I have an exchange pattern like the one shown below: from(jason:action).inOut(jms:validate); from(jms:validate).bean(ValidatorBean.class); At my jason end point, if I print out

Re: Multicast, redelivery and error handlers

2012-09-13 Thread jimbogaz
Thanks for the fast response Claus. I figured that must have been the case, which is why I then tried implementing the timeout method on a TimeoutAwareAggregator. I thought if I called setException there (just with a plain new Exception) then that might trigger the error handler. I should

Re: how to decide the exchagne pattern of the route

2012-09-13 Thread Sura Monday
Hi Claus, Thanks. So if I want my jason component to receive responses from jms, do I always have to set the jms consumer MEP to inout as well? why do we have to explicitly set consumer MEP, if the route already says i is inout? Isnt there any method to get the MEP that is set on the route?

Re: Performing Sticky load balancing in Camel.

2012-09-13 Thread balkishore
I got it working, Thanks for your support and help guys! The code is as follow: .loadBalance().sticky(env.xpath(substring(string(/soapenv:Envelope/soapenv:Header/wsa:ReplyTo/wsa:ReferenceParameters/axis2:Serv‌ iceGroupId/text()), 10), String.class))

Aggregation with read-ahead?

2012-09-13 Thread Klaus . Schroeder
Hello Camel experts we are using Camel to read a delimited file and import the data in our system. The file has a quite simple structure: ABF31|01|10503547153|1|9921|90|3|3|20120713|20120713|20120718|0|0| ABF37|01|10503547153|1|9921|65|1|1|0||PSB031|20120718||1

RE: Preventing empty results from MyBatis producer being forwarded

2012-09-13 Thread Graham Little
Hi Mikko, You could use a custom processor to check the body of the message, if there is no content then exit the route otherwise carry on. You can see examples of processors here: http://camel.apache.org/processor.html from(activemq:myQueue).process(new Processor() { public void

Re: Issues with URI containing %40 or %26

2012-09-13 Thread Marco Crivellaro
I took the decision to go back to camel 2.8 (2.8.6) as all our endpoints had user in the authority part. I am looking forward for a fix on camel 2.10 (or 2.11 even) since camel is too cool to stay behind... :) -- View this message in context:

Re: Apache Camel working directory

2012-09-13 Thread White_Sox
My bad. The working directory is always the directory where you invoke the java command. Thank you for time. Claus Ibsen-2 wrote On Thu, Sep 13, 2012 at 10:32 AM, White_Sox lt;rui.abreu@gt; wrote: Apache Camel starting directory seems to be the project's root path.Example: route from

Re: Issues with URI containing %40 or %26

2012-09-13 Thread Claus Ibsen
I have logged a ticket about the user info issue when using @ in the user name or password https://issues.apache.org/jira/browse/CAMEL-5603 That said though, using %40 instead of @ works fine. -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com

RE: Preventing empty results from MyBatis producer being forwarded

2012-09-13 Thread mikko.wuokko
Hi. Thanks. I was on the right track with .choice()/.filter(), but just didn't know how to figure out the right condition. Just for anyone with similar problem. The IN message was an java.util.ArrayList eg. the resultset from MyBatis. I used the .simple() language for the condition. The route

Re: Windows 2003 server mount

2012-09-13 Thread mathbarth
Camel 2.10.1 traces the following warning message when starting the route: Cannot auto create starting directory h:/myRemoteFolder Mount is alright and I can create folder manually. Camel is loaded within a Spring web application in the Apache tomcat container. I guess that I mistake the

Re: JSON - Jackson return list rather than POJO

2012-09-13 Thread Claus Ibsen
Hi Better late than newer. I have logged a ticket so we wont forget about this https://issues.apache.org/jira/browse/CAMEL-5604 On Thu, Aug 23, 2012 at 9:01 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Mon, Aug 20, 2012 at 10:42 AM, Jason Chaffee jason.chaf...@betfair.com wrote: I asked

Re: Windows 2003 server mount

2012-09-13 Thread Willem jiang
It looks more like the issue of user permission. btw, you can use the camel:run plugin to start the camel application without using tomcat. -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com

Re: Windows 2003 server mount

2012-09-13 Thread Pontus Ullgren
Hello, I would guess that the problem is just that. Since tomcat is running as the System account it does not have the same mapped driver. Have you tried to access the share not using the mount letter (h:) but using a UNC path instead (\\server\share\file_path) ? Also make sure that the tomcat

Re: Windows 2003 server mount

2012-09-13 Thread Claus Ibsen
You can set autoCreate=false, then the file consumer will still startup, but can't pickup files, until the mapped drive works for it. On Thu, Sep 13, 2012 at 2:06 PM, Pontus Ullgren ullg...@gmail.com wrote: Hello, I would guess that the problem is just that. Since tomcat is running as the

How does a Camel component update change existing routes

2012-09-13 Thread shindito
Hello, I'm using the JMS Component to create a JMS application which have to types of toutes: 1) from vm IM endpoints to JMS topics. 2) from JMS topics to user processors. The JMS Component uses JNDI for topic/connection factory resolution. And I want to change the physical data of this

Cannot figure out routing to a remote web service

2012-09-13 Thread mjkrumlauf
I am having difficulty figuring out how to using any combination of Camel and the CXF or CXF Bean components to route to a remote web service. I would like to do something like this: from(someplace) .to(cxf:remote-web-service) // or .to(cxf:bean:remote-web-service) .to(another) ... I

Tutorial 1 fails running with exception

2012-09-13 Thread domenico
Hello all The Camel MUser Manual I have been trying to run the Report Incident example and I get exceptions straight away. Compilation works fine. Just when trying to start the maven jetty plugin, it misses the ContextLoaderListener. The server comes up and waits, but does not respond when

Re: Why doesnt the validation component use Stream Source internally to parse the XML?

2012-09-13 Thread Claus Ibsen
Hi Yes I think this component can be optimized as well. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-5606 On Wed, Sep 5, 2012 at 4:51 AM, vishal1981 vishal.changr...@ericsson.com wrote: Hi, Excuse me for my lack of good understanding of the difference between SAXSource

Re: Multicast, redelivery and error handlers

2012-09-13 Thread jimbogaz
That's great, I've got the book now, I'll go read and write te code. Thanks again. J On Sep 13, 2012 1:32 PM, Claus Ibsen-2 [via Camel] ml-node+s465427n5719269...@n5.nabble.com wrote: On Thu, Sep 13, 2012 at 9:04 AM, jimbogaz [hidden email]http://user/SendEmail.jtp?type=nodenode=5719269i=0

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Claus Ibsen
Hi Looks like a classpath issue. Make sure you have the same version of Spring of all the spring JARs. And also you need a spring-web JAR (I think thats its name). Well anyway the Spring JAR that has the class reported missing in the stacktrace. On Thu, Sep 13, 2012 at 2:28 PM, domenico

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
Hi Yes that example is broken as CXF doesn't depend on spring-web anymore. There was a similar issue by the examplecamel-example-cxf of the distribution which is already fixed: https://issues.apache.org/jira/browse/CAMEL-5473 We should actually double-check all the distribution examples which

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
I verified the example using the trunk code. If you would add the following dependency then the example works again: dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId /dependency And make sure to do: mvn compile Before you launch Jetty: mvn

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Claus Ibsen
On Thu, Sep 13, 2012 at 3:19 PM, Babak Vahdat babak.vah...@swissonline.ch wrote: I verified the example using the trunk code. If you would add the following dependency then the example works again: dependency groupIdorg.springframework/groupId artifactIdspring-web/artifactId

Re: Validator component + onException

2012-09-13 Thread Claus Ibsen
Hi Just for the record. I have logged a ticket to get this fixed in the future https://issues.apache.org/jira/browse/CAMEL-5608 On Tue, Aug 21, 2012 at 2:13 PM, livensn nickliv...@gmail.com wrote: As you said, I updated to the most recent version (2.10.0) through maven, but this didn't do the

Re: Aggregation with read-ahead?

2012-09-13 Thread Claus Ibsen
Hi Sounds like a job for the splitter EIP instead. http://camel.apache.org/splitter Then you can use a java method as the splitter expression. Then you can implement logic to put together beloning lines. On Thu, Sep 13, 2012 at 9:39 AM, klaus.schroe...@ethalon.de wrote: Hello Camel experts

Camel converters chaining.

2012-09-13 Thread solimo
Hello, Imagine situation when we have two converters ready to load. The case is that any of them can alone do desired conversion but chaining them is going to make it a day. For example: Converter X can convert type A to B. Converter Y can convert type B to C. Currently if we, for example, send

Re: Camel converters chaining.

2012-09-13 Thread Claus Ibsen
On Thu, Sep 13, 2012 at 4:25 PM, solimo rob...@budzko.eu wrote: Hello, Imagine situation when we have two converters ready to load. The case is that any of them can alone do desired conversion but chaining them is going to make it a day. For example: Converter X can convert type A to B.

Re: How does a Camel component update change existing routes

2012-09-13 Thread shindito
Thanks for the prompt reply! Just to clarify: shutting down all the routes will not require a camelcontext restart? So, I have to options: 1) Stop all routes - shutdown old component - add new component - start new component - start all routes 2) Stop context - shutdown old component - add new

Re: How does a Camel component update change existing routes

2012-09-13 Thread Claus Ibsen
Hi Yeah give them a try. Notice #2 - shutting down a CamelContext, and starting the same CamelContext instance again, is not guaranteed to properly startup again. As you may have used some custom components / resources / whatever, which safely cannot be-restarted again. But still give it a try

Re: Distributed transaction in camel route

2012-09-13 Thread James Carman
Claus, Is there any guidance on how to set up XA correctly? We're having a really rough time getting Websphere MQ and SQL Server connections to work together in an XA fashion. Thanks, james On Thu, Sep 13, 2012 at 10:17 AM, Claus Ibsen claus.ib...@gmail.com wrote: For that you would need XA

Re: Camel converters chaining.

2012-09-13 Thread solimo
Claus Ibsen-2 wrote Chained converters can be tricky as they can become non optimal, if the intermediate conversion takes time/memory etc. It would instead often be better to have A - C directly as converter. True! Claus Ibsen-2 wrote Also if there is multiple choices for the chain,

Re: How does a Camel component update change existing routes

2012-09-13 Thread shindito
So, I have two types of routes: 1) from vm:... to jms:topic.. 2) from jms:topic... to user processor I've tried restarting the routes while changing the component - after that the second type of routes still consume from the old jms provider ... and these consuming from vm don't work at all But

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
The *latest* patch release of the 2.9.x branch is 2.9.3 which you should make use of (instead of 2.9.2). I verified that and it works, see: http://camel.apache.org/download.html Babak -- View this message in context:

Re: Using the HTTP4 component to make a HTTPS call behinf proxy sever

2012-09-13 Thread Adrian Harris
Hi, Thanks for the response, the workaround was a success. I now have an additional problem further down the line with the handshake which I believe is not camel related. I get the error Unparseable certificate extensions: 1 [1]: ObjectId: 2.5.29.31 Criticality=false Unparseable

Re: Tutorial 1 fails running with exception

2012-09-13 Thread Babak Vahdat
Actually if you would download and try the 2.9.3 release that example should work out of the box for you without any modification! The problem only exists on the 2.10.1 release and the trunk (the future 2.11.0 release). See my comment inside the ticket which is already resolved:

Re: Distributed transaction in camel route

2012-09-13 Thread Christian Müller
May be these examples are useful for you: https://github.com/muellerc/camel-in-transaction Best, Christian On Thu, Sep 13, 2012 at 4:33 PM, James Carman ja...@carmanconsulting.comwrote: Claus, Is there any guidance on how to set up XA correctly? We're having a really rough time getting

Re: Camel vs BPEL

2012-09-13 Thread Christian Müller
Camel works with any type of content: - XML - CSV - fixed length - Java Objects - Strings - binary - ... Not sure if this is possible with BPEL or BPMN. Best, Christian On Wed, Sep 12, 2012 at 11:25 PM, realice real...@gmail.com wrote: Hi, can anyone give some really good convincing stuff

Re: Camel vs BPEL

2012-09-13 Thread Christian Müller
At present, Camel supports more than 100 components: http://camel.apache.org/components.html Nor sure how many Oracle supports... Best, Christian On Wed, Sep 12, 2012 at 11:25 PM, realice real...@gmail.com wrote: Hi, can anyone give some really good convincing stuff that why should we use

Re: Camel vs BPEL

2012-09-13 Thread realice
quick update-- my attempt to use the camel has been shutdown :( I argued with all my might and basically presented all the stuff you guys mentioned, but then again I'm just a mere developer, not like somebody higher up in the management chain who doesn't know anything but likes to make decisions

Re: Distributed transaction in camel route

2012-09-13 Thread James Carman
So, when using Geronimo, why do you set transacted=false on your JMS component, but yet give it a TransactionManager reference? On Thu, Sep 13, 2012 at 6:11 PM, Christian Müller christian.muel...@gmail.com wrote: May be these examples are useful for you:

Re: Using the HTTP4 component to make a HTTPS call behinf proxy sever

2012-09-13 Thread Willem Jiang
No, I dont think the upgrading can resolve the issue, as there is no much chang in the camel-http4 component. Can you try to invoke the sevice by using http client4 directly? Willem 2012/9/13, Adrian Harris adrian.w.har...@gmail.com: Hi, Thanks for the response, the workaround was a success.

Re: Need a example for Camel Bindy

2012-09-13 Thread santoshjoshi
Hi, I have created a small Camel Bindy Example for camel Users. The example reads an input file in below format: * id|name|semester|java|c|dbms|mathematics|datastructure* and create a new file in below format: *id|name|semester|grade|total score|result * Its available at

Re: convertBodyTo(org.w3c.dom.Document.class) fails

2012-09-13 Thread sarfaraj
I have similar kind of problem. I also want to remove ?xml version=1.0 encoding=UTF-8 standalone=yes? from my message body. Previously we used JAXB and JAXB has fragment to remove the above tag marshal jaxb prettyPrint=true contextPath=XXX.model fragment=true / /marshal Now we are

Re: how to retrieve the consumer and/or producer created in an endpoint

2012-09-13 Thread Charles Moulliard
Why would you like to access to the producer and / or consumer created by the endpoint ? On Fri, Sep 14, 2012 at 6:18 AM, Sura Monday sura.mon...@yahoo.com wrote: Hi All, Suppose I have defined my camel context: CamelContext camel = new DefaultCamelContext(); after defining routes, I can

Re: convertBodyTo(org.w3c.dom.Document.class) fails

2012-09-13 Thread Charles Moulliard
Hi Sarfaraj, I recommend that you use JAXB marshaller / unmarshaller (DataFormat) like you have done before if you would like to have a better control over what Jaxb generate. ConvertBodyTo likes its name suggest will convert to a specific Object the Body retrieved from the Camel exchange but