Re: Transacted CXF-Consumer from queue

2012-03-23 Thread Stefan Burkard
My problem seems to be that, with MEP InOnly, a CXF endpoint consuming from a queue does not "see" an exception that occurs later in the route and therefore commits the consumptions to the queue. Does anybody know how I can make this exception visible to CXF? I think this should be possible, other

Re: Transacted CXF-Consumer from queue

2012-03-23 Thread Christian Schneider
Perhaps you can mark the route as inout. So the cxf from endpoint could get the response but of course does not have to reply. I think for transacted routes we should make this the default. Can you open a jira issue for that? Christian Am 23.03.2012 09:49, schrieb Stefan Burkard: My problem

Re: Transacted CXF-Consumer from queue

2012-03-23 Thread Stefan Burkard
Hi Christian How would I do that? (sorry, Camel beginner :-) Stefan On Fri, Mar 23, 2012 at 10:18, Christian Schneider wrote: > Perhaps you can mark the route as inout. So the cxf from endpoint could get > the response but of course does not have to reply. > > I think for transacted routes we

Count of messages that have parsed an Endpoint

2012-03-23 Thread Gert Villemos
I want to at intervals log the number of messages that have parsed a given endpoint. I assume that JMX is the way to go, but cant figure out if there is a 'standard' Endpoint / Route property that hold the value I need. -- View this message in context: http://camel.465427.n5.nabble.com/Count-of

Re: Transacted CXF-Consumer from queue

2012-03-23 Thread Stefan Burkard
can I mark the route like this as InOut? from("cxf:bean:mycxfbean").inOut()... ...and yes, I will create a JIRA issue for that Stefan On Fri, Mar 23, 2012 at 10:48, Stefan Burkard wrote: > Hi Christian > > How would I do that? (sorry, Camel beginner :-) > > Stefan > > > On Fri, Mar 23, 2012 a

RE: Orchestration with Camel

2012-03-23 Thread Hugo
Thanks guys for your answers and feedbacks !!! ^^ Moreover, I think it's more easy to find resources with java knowledge than BPEL knowledge. I already did a little example of my use-case with Camel, it works relatively easily. -- View this message in context: http://camel.465427.n5.nabble.co

Message Transformation issue

2012-03-23 Thread ramnar
Hi Folks I have a very simple scenario where I have to append a text to the message in a route. Iam using the following code new RouteDefinition().transform().simple("${in.body} appendedtext"); I wanted to generate the spring xml counter part of the above code.My jaxb model generates the followin

Re: Tomcat JDK 1.6 Recommend Memory Settings

2012-03-23 Thread Christian Müller
You are sure you post to the right user list? This is the user list for Apache Camel, not for Apache Tomcat. And if you use Apache Camel inside Apache Tomcat, the settings really depends on your service/application... Best, Christian On Thu, Mar 22, 2012 at 6:09 PM, chrislovecnm wrote: > Hi all

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-23 Thread Christian Müller
Could you please provide the complete route to make sure you didn't use the wrong namespace? The unit test in [1] use this expression [2] and the test succeed. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringThrottlerTe

Message Transformation issue

2012-03-23 Thread Reuben Garrett
ramnar, i believe something like this should work: http://camel.apache.org/message-translator.html http://camel.apache.org/schema/spring";> ${in.body} extra data! also, from what i've heard, the route models will have a much richer semantic representation in camel 3.0 -

Re: How to get header parameter in a to route of camel

2012-03-23 Thread Christian Müller
I didn't used the cxfrs component until now, but my expectation would be: - set the header you would like to send as message header - may provide your own "headerFilterStrategy" (checkout [1] for this) This should work, IMO. If not, feel free to raise a JIRA for it. [1] http://camel.apache.org/cx

Headers disappearing in RoutingSlip

2012-03-23 Thread Alex Anderson
Hi, can I get a quick sanity check before we spend more time investigating? We're using Camel 2.5.0 and have a setup like this: routing slip -> seda -> processor We set headers in our routing slip, and by the time the message has hit the processor, the headers have been stripped. Is this expecte

In route validation?

2012-03-23 Thread Kerry Barnes
I am trying to see how to handle the following situation in Camel, can someone please enlighten me? 1. Accepts a SOAP request from a CXF Endpoint 2. Extract information from the SOAP message 3. Send the extracted information to a Web Service endpoint ... here is where I am scratching my head ...

Re: Count of messages that have parsed an Endpoint

2012-03-23 Thread Claus Ibsen
On Fri, Mar 23, 2012 at 10:59 AM, Gert Villemos wrote: > I want to at intervals log the number of messages that have parsed a given > endpoint. > > I assume that JMX is the way to go, but cant figure out if there is a > 'standard' Endpoint / Route property that hold the value I need. > Yeah just

Re: Message Transformation issue

2012-03-23 Thread Claus Ibsen
Hi Try upgrading the Camel version as there was a bug in older release in terms of outputting as XML with expressions. On Fri, Mar 23, 2012 at 12:25 PM, ramnar wrote: > Hi Folks > I have a very simple scenario where I have to append a text to the message > in a route. > > Iam using the following

Re: Headers disappearing in RoutingSlip

2012-03-23 Thread Claus Ibsen
Hi You can use the tracer to help see where the headers dissappear http://camel.apache.org/tracer And see this FAQ as well http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html On Fri, Mar 23, 2012 at 1:33 PM, Alex Anderson wrote: > Hi, can I get a quick sanity check before we

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-23 Thread garrydias
thanx Christian this is my spring xml: http://camel.465427.n5.nabble.com/file/n5589498/throttler-test-context.xml throttler-test-context.xml About your tests, I couldn´t execute it because the some imports in your source code make reference to older camel version. An example, the org.apache.cam

Multiple File/FTP consumer excludes in Spring DSL

2012-03-23 Thread Laurentiu Trica
Hi, I need help with Spring DSL for using two excluding expressions for File / FTP consumer. I am using the *exclude* option but I don't know how to match two patterns. I saw something about antExclude here: http://camel.apache.org/file2.html#File2-FilteringusingANTpathmatcher Is that the only o

Re: Multiple File/FTP consumer excludes in Spring DSL

2012-03-23 Thread Claus Ibsen
Hi The exclude/include options uses the Java regular expression. And with that its possible to make OR matching. For example just create a java main and do a little java code to get the regular expression as you want. Or possible use some plugin in an IDE that offers a regexp tool. The antInclude

Re: diagram generator

2012-03-23 Thread Nestor Urquiza
Probably a dumb question: Can you please help me to compile without having to update all the pom files? Basically by default my Maven 2.2.1 tries to compile with JDK source 1.3 but your code needs 1.5 or above: /Users/nestor/kk/rmannibucau/camel/diagram-generator-parent/diagram-generator-maven-plu

Re: diagram generator

2012-03-23 Thread Romain Manni-Bucau
you simply have to provide the maven-compiler-plugin and specify the version of target and source. if you don't want to put it everywhere you can use a parent pom. - Romain 2012/3/23 Nestor Urquiza > Probably a dumb question: Can you please help me to compile without having > to update all t

Re: EJB and RSS Component in JBoss 7

2012-03-23 Thread Adrianos Dadis
Hi Claus, > Have you configured the EjbComponent to specify the JndiContext > it need to lookup the EJBs? Yes in both scenarios. In case of 1st scenario (SimpleRoute1), the EJB invocation succeed even if I do not set the JNDI context via EjbComponent.setContext(...), because the EJBs is "visible"

Re: diagram generator

2012-03-23 Thread Nestor Urquiza
I see you do have it in the parent pom: org.apache.maven.plugins maven-compiler-plugin 2.3.2 1.6 1.6 And yet the project won't compile for me. I guess the question is what have you done in your environment for the project to compile, li

Re: diagram generator

2012-03-23 Thread Romain Manni-Bucau
i use mvn3 with java 6 - Romain 2012/3/23 Nestor Urquiza > I see you do have it in the parent pom: > > > org.apache.maven.plugins > maven-compiler-plugin > 2.3.2 > >1.6 >1.6 > > > > > And yet the project won't compile for me. I guess the qu

Re: diagram generator

2012-03-23 Thread Nestor Urquiza
That explains it. Here is for the record if others are still using old maven 2 and java 6: $ mvn clean install -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6 On Fri, Mar 23, 2012 at 11:55 AM, Romain Manni-Bucau [via Camel] < ml-node+s465427n5589949...@n5.nabble.com> wrote: > i use mvn3

Re: In route validation?

2012-03-23 Thread Raul Kripalani
You could use an enricher pattern. See http://camel.apache.org/content-enricher.html. This is a "call-out" pattern. The gist is that you use the enrich() DSL providing the endpoint of the external validation web service. You pass in an aggregation strategy alongside too. The role of the aggregatio

Passing post parameter as body in the cxfrs call.

2012-03-23 Thread atg roxx
Hi Team, I have a unusually requirement. I have to send a request xml to a restful service as as body generated from POST parameter. I am using cxfrs for this, setting the method type to POST, setting some values to be passed in headers using CxfConstants.CAMEL_CXF_RS_USING_HTTP_API but I am

Re: extract Subno using XPATH

2012-03-23 Thread Raul Kripalani
Hi there, For future reference, as of Camel 2.10 the XPath language is able to audit and log all namespace mappings (prefixes and URIs) that appear in the incoming message, to aid debugging such issues. Take a look at http://camel.apache.org/xpath.html#XPath-Namespaceauditingtoaiddebugging. Rega

RE: extract Subno using XPATH

2012-03-23 Thread Omar Atia
Appreciated Raul. -Original Message- From: Raul Kripalani [mailto:r...@fusesource.com] Sent: Friday, March 23, 2012 7:06 PM To: users@camel.apache.org Subject: Re: extract Subno using XPATH Hi there, For future reference, as of Camel 2.10 the XPath language is able to audit and log all

Re: CXFRS producer removing JMS headers

2012-03-23 Thread cgsk
Thanks for the patch. -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-producer-removing-JMS-headers-tp5568925p5590157.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: using MessageConverter with Bean

2012-03-23 Thread Raul Kripalani
I don't think you need a message converter for that. Why don't you try setting the JMSType header after the inOut invocation to the bean? For example: @Override public void configure(){ from(IN_QUEUE).choice() .when(header("JMSType").isEqualTo("CommandType")) .inOut("bean:

Re: Better Way to Achieve Parallel Processing of SQS Messages?

2012-03-23 Thread dacc
Ok, I made a ticket below: https://issues.apache.org/jira/browse/CAMEL-5113 - D -- View this message in context: http://camel.465427.n5.nabble.com/Better-Way-to-Achieve-Parallel-Processing-of-SQS-Messages-tp5578135p5590255.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Headers disappearing in RoutingSlip

2012-03-23 Thread Greg Henley
Claus, When I try following the http://camel.apache.org/tracer example (using camel 2.9.1) Tracer tracer = new Tracer(); tracer.getFormatter().setShowBreadCrumb(false); tracer.getFormatter().setShowNode(false); I get a error "method setShowBreadCrumb is undefined for Trac

Re: using MessageConverter with Bean

2012-03-23 Thread Xuan Huang
Hi Raul, I think you are right. So we ended up doing: .to("bean:messageListener?method=handleMessage") .to("bean:jsonMessageConverter?method=convertToMessage") And basically the convertToMessage method just sets the 'JMSType' on the exchange. What we found out though is that it seems when we

Re: diagram generator

2012-03-23 Thread Nestor Urquiza
It worked! Thanks for your help on this. The plugin as it is generates a camel.png. What about if there are more than just one RouteBuilder defined?Using multiple nodes result is just getting the latest defined. I would like to see an option to include all RouteBuilder starting in a given package

Re: diagram generator

2012-03-23 Thread Romain Manni-Bucau
It is easy to manage a loop in the code, that's not the case today but you configure multiple mvn execution. - Romain Le 23 mars 2012 20:07, "Nestor Urquiza" a écrit : > It worked! Thanks for your help on this. > > The plugin as it is generates a camel.png. What about if there are more > than >

Is it possible to set a reference about XSD files in the own ESB?

2012-03-23 Thread snatera
Hello everybody, I have this architecture, Web Service (A), Fuse ESB (ServiceMix) (B) and a Web Service Client (C): A <> B <> C A and B are in different servers, so, I want to send some requests from (C) to (A) through (B). I have to define two cxf endpoints and a camel router when I cre

Re: diagram generator

2012-03-23 Thread Romain Manni-Bucau
With maven you can define multiple blocks for the same plugin and you should be able to provide a configuration black for each. Le 23 mars 2012 20:17, "Nestor Urquiza" a écrit : > Not sure what you meant to say by: > > " but you configure multiple mvn execution." > > > > > > > > > -- > View thi

Re: diagram generator

2012-03-23 Thread Nestor Urquiza
Got it however how can you specify the destination file name? Both plugin sections run but they both create the same file camel.png. On a side note I was asking the question about missing maven repository or wrong url in your post at http://code.google.com/p/rmannibucau/wiki/MavenRepository I bel

Re: diagram generator

2012-03-23 Thread Romain Manni-Bucau
I integrated it with maven site when i was using it. Well ill take some time next week to work around the plugin. Le 23 mars 2012 20:50, "Nestor Urquiza" a écrit : > Got it however how can you specify the destination file name? Both > plugin sections run but they both create the same file camel.

Re: diagram generator

2012-03-23 Thread Nestor Urquiza
Great news. Please keep us posted! Have a great weekend, -Nestor On Fri, Mar 23, 2012 at 4:31 PM, Romain Manni-Bucau [via Camel] wrote: > I integrated it with maven site when i was using it. Well ill take some > time next week to work around the plugin. > -- View this message in context: http:

Camel CXF Drops Headers

2012-03-23 Thread Calvert, Zach (Zach)** CTR **
I have a problem where my message headers are being dropped. The route looks like http://0.0.0.0:{{jetty.port}}/rest/?matchOnUriPrefix=true"; /> Now I've been trying to keep ALL of the headers via configuring a h