Camel stop() event

2012-03-15 Thread developpef
Hello, I am wondering if there is a way, in a Camel route, to retrieve a kind of "stop event" that might be sent from the context when asked for stopping? Actually, one of my routes is processing a loop on multiple data and does a long-running business task for each of these data. So when I try t

Re: QuickFIXJ Filtering

2012-03-15 Thread Claus Ibsen
Hi It depends how complicated it is to get that information from FIX. What code do you do in your bean? The simple language have basic OGNL support, so you can invoke methods. But if you need a bit more, then you can use scripting languages such as groovy, java script etc. http://camel.apache.org

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-15 Thread Willem Jiang
FYI,I just did a quick fix on trunk and will merge the patch into other branches. On Wed Mar 14 22:34:24 2012, hefiso wrote: Thanks. JIRA created: https://issues.apache.org/jira/browse/CAMEL-5084 https://issues.apache.org/jira/browse/CAMEL-5084 -- View this message in context: http://camel.4

Re: Error with multiple CometD components

2012-03-15 Thread Willem Jiang
Hi Chris I can reproduce the error[1] and the patch is on the way. [1]https://issues.apache.org/jira/browse/CAMEL-5087 Willem On Wed Mar 14 10:27:34 2012, Chris Geer wrote: We are using Camel 2.8.3 with ServiceMix 4.4.1. The consumer is a webpage using the jquery comet library. You are correc

Re: Camel stop() event

2012-03-15 Thread Claus Ibsen
On Thu, Mar 15, 2012 at 8:47 AM, developpef wrote: > Hello, > > I am wondering if there is a way, in a Camel route, to retrieve a kind of > "stop event" that might be sent from the context when asked for stopping? > > Actually, one of my routes is processing a loop on multiple data and does a > lo

Re: Camel stop() event

2012-03-15 Thread developpef
Thank you for the answer. The EventNotifier seems to match my needs, but I have none of the mentioned methods on the context or on the status. I am in version 2.9.0 and on getContext().getStatus() I only found, among others, "isStarting()", "isStarted()", "isStoppable()" but not "isStopping()". N

Re: Camel stop() event

2012-03-15 Thread Claus Ibsen
On Thu, Mar 15, 2012 at 10:30 AM, developpef wrote: > Thank you for the answer. > > The EventNotifier seems to match my needs, but I have none of the mentioned > methods on the context or on the status. I am in version 2.9.0 and on > getContext().getStatus() I only found, among others, "isStarting

Re: Error: cannot run camel-servlet version 2.9.1 in Tomcat

2012-03-15 Thread Claus Ibsen
Hi What version of Tomcat and JDK are you using? And make sure to not include any servlet.jar etc in WEB-INF/lib as they are already part of Tomcat, and you may get class loading issues. On Thu, Mar 15, 2012 at 1:41 AM, gsilverman wrote: > I changed the camel version in the camel-example-servl

Re: Camel stop() event

2012-03-15 Thread developpef
Sorry for the mistake, I meant ' Nothing more interesting on "getContext()" '. I think I do not really understand. Where is this "isStopping()" method? In 2.9.0 it is not on CamelContext : http://www.jarvana.com/jarvana/view/org/apache/camel/camel-core/2.9.0/camel-core-2.9.0.jar!/org/apache/camel/

Re: Camel stop() event

2012-03-15 Thread Claus Ibsen
if (ServiceStatus.Stopping == camelContext.getStatus()) { ... } On Thu, Mar 15, 2012 at 10:58 AM, developpef wrote: > Sorry for the mistake, I meant ' Nothing more interesting on "getContext()" > '. > > I think I do not really understand. Where is this "isStopping()" method? In > 2.9.0 it is n

Re: Camel stop() event

2012-03-15 Thread developpef
OK I will use this. Thanks for your help! - http://developpef.blogspot.com -- View this message in context: http://camel.465427.n5.nabble.com/Camel-stop-event-tp5567221p5567604.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-15 Thread hefiso
Thanks, I see the fix is schedulded for 2.9.2. In the meantime I manage by *not* mocking all endpoints and creating the mock endpoints manually in my tests. /Henrik -- View this message in context: http://camel.465427.n5.nabble.com/Error-using-apache-cxf-w-Camel-2-9-1-tp5560906p5567659.html Sen

Adice for intermadiate calls.

2012-03-15 Thread lucide
Hi, Kind of newbie question, i need an advice to use the best methodology for my scenario. I am using Camel 2.6.0 inside Servicemix 4.3.0. Briefly, consuming from cxf endpoint, i will send xml's to jbi endpoints, and using the responses from that jbi endpoints, I will enrich-modiy the initial exc

Re: Adice for intermadiate calls.

2012-03-15 Thread Claus Ibsen
On Thu, Mar 15, 2012 at 12:51 PM, lucide wrote: > Hi, > > Kind of newbie question, i need an advice to use the best methodology for my > scenario. I am using Camel 2.6.0 inside Servicemix 4.3.0. > > Briefly, consuming from cxf endpoint, i will send xml's to jbi endpoints, > and using the responses

Re: Camel CXF Transport

2012-03-15 Thread Chris Odom
Yes I have both camel-cxf and camel-cxf-transport as dependencies... Yes I am using the latest m2e plugin... Chris O. On Thu, 15 Mar 2012 08:46:06 +0800, Willem Jiang wrote: > cxf-codegen-plugin doesn't need to load the CamelTransportFactory > normally. I guess there are some camel-cxf related

Re: exception in the wireTap EIP

2012-03-15 Thread Claus Ibsen
Hi Currently there is no error handling being triggered when sending. I have logged a JIRA https://issues.apache.org/jira/browse/CAMEL-5090 You can send to another route using direct endpoint, then you will have error handling. On Thu, Mar 15, 2012 at 12:00 AM, jmh wrote: > Hello, > > suppose y

Re: camel http bug

2012-03-15 Thread Alex Anderson
Is it because the second example's URI starts "http:0" - i.e. is missing // after http:? On 15 March 2012 09:49, asd09 wrote: > i wrote sample > >   >         >         >             >                def formData = "user_nickname=" + > URLEncoder.encode(exchange.context.resolvePropertyPlaceholder

Re: Error with multiple CometD components

2012-03-15 Thread Chris Geer
Thanks Willem. On Thu, Mar 15, 2012 at 1:38 AM, Willem Jiang wrote: > Hi Chris > > I can reproduce the error[1] and the patch is on the way. > > [1]https://issues.apache.org/**jira/browse/CAMEL-5087 > > Willem > > > On Wed Mar 14 10:27:34 2012, Ch

Re: Error: cannot run camel-servlet version 2.9.1 in Tomcat

2012-03-15 Thread gsilverman
I'm using jdk1.6.0_26 and Tomcat 6.0.33. But that seems hardly relevant. Just change the camel version in the pom back to the original - 2.8.1, and the darn thing runs. Did you run the example?Something's broken in camel v 2.9.x. And, no, servlet.jar is not in WEB-INF/lib. -- View this message in

Re: Error: cannot run camel-servlet version 2.9.1 in Tomcat

2012-03-15 Thread gsilverman
Ah. I stand corrected, somewhat. Camel servlet 2.9.1 inserts geronimo-servlet_2.4_spec-1.1.1.jar in the war file, whereas v 2.8.1 does not. It seems, therefore, that the newer camel is not web application server friendly. out of the box. -- View this message in context: http://camel.465427.n5.nab

Re: Camel and Tomcat

2012-03-15 Thread manoj.sahu
Thanks for your pointer Willem. It worked with version 2.7.5. May be we could have this information available in wiki so that it saves someone grief. I already wrote an implementation to have it work in 2.4.0. Here is the outline of the solution just in case it helps someone who couldn't upgr

Re: Error: cannot run camel-servlet version 2.9.1 in Tomcat

2012-03-15 Thread Claus Ibsen
Can you run a mvn dependency:tree in your project. The servet-spec dependency have been marked as provided scope by the Camel components, and thus the WAR file ought not to include them. But maybe there is something we have missed. On Thu, Mar 15, 2012 at 4:27 PM, gsilverman wrote: > Ah. I stan

Re: Error: cannot run camel-servlet version 2.9.1 in Tomcat

2012-03-15 Thread Babak Vahdat
Hi If you cross-reference an example of Camel release X with Y that's the best you will get out of it! As you claim to run camel-example-servlet-tomcat version 2.8.1 you should consequently remove ALL the lines: 2.9.1 That you've put inside the POM manually by yourself. Or change them to 2.8.1

RE: QuickFIXJ Filtering

2012-03-15 Thread Gershaw, Geoffrey
Thanks for you quick reply Claus. In my bean, I am retrieving a repeating group and checking that a fix tag on that group = "blah" SecurityDefinition.NoRelatedSym symbolGroup = new SecurityDefinition.NoRelatedSym(); secDef.getGroup(1, symbolGroup);

CXFRS producer removing JMS headers

2012-03-15 Thread cgsk
Hello there, I am new to Camel. I am consuming a service request from a JMS queue and calling an external REST service using CXFRS and processing the response. But however, the JMSHeaders/custom headers which was in the message when consuming from request queue is getting removed after calling the

Why this works with Spring DSL and not Java DSL - http component

2012-03-15 Thread soumya_sd
I'm trying to integrate Google Places API using Apache Camel (2.10-SNAPSHOT) and Spring (3.0.7.RELEASE) with Tomcat (7.0.26) as my web conainer server. When I declare the route in a Spring config xml (see below) I can see the correct output response on my Tomcat logs. https://

Integration Framework Comparison - Spring Integration vs. Mule ESB vs. Apache Camel

2012-03-15 Thread Christian Müller
... and the winner is ... of course, Apache Camel... :o) Thanks to our users which kick us to not keep up. Thanks to our contributors for the many good patches. Thanks to the Camel team for such a good product. Thanks to the ASF for this good home. [1] http://www.javacodegeeks.com/2012/03/integr

Re: Why this works with Spring DSL and not Java DSL - http component

2012-03-15 Thread Christian Müller
In your XML/Spring route definition, you have to use "&" instead of "&". Best, Christian On Fri, Mar 16, 2012 at 12:04 AM, soumya_sd wrote: > I'm trying to integrate Google Places API using Apache Camel > (2.10-SNAPSHOT) > and Spring (3.0.7.RELEASE) with Tomcat (7.0.26) as my web conainer serve

Re: Why this works with Spring DSL and not Java DSL - http component

2012-03-15 Thread soumya_sd
I'm using "&" in my Spring XML. My Spring routes works. The Java DSL version of the same route is not working. -- View this message in context: http://camel.465427.n5.nabble.com/Why-this-works-with-Spring-DSL-and-not-Java-DSL-http-component-tp5569500p5569542.html Sent from the Camel - Users mai

Re: Do Apache Camel needs a SAP integration?

2012-03-15 Thread Christian Müller
I opened the JIRA to track this [1]. I will also check with legal what possibilities we have to host the needed dependency but not to include it. I would like to run/build the component as all others and use mocks to test it. [1] https://issues.apache.org/jira/browse/CAMEL-5094 Best, Christian 2

Re: Do Apache Camel needs a SAP integration?

2012-03-15 Thread Hadrian Zbarcea
Yes, it can and it's probably the best option. Hadrian On 03/05/2012 05:47 PM, Romain Manni-Bucau wrote: Hi, can't it be added to the google project creating a repo in the source repository? - Romain 2012/3/5 Christian Müller I think the problem is to add the dependency "org.sap/sap-jco/x

Re: Do Apache Camel needs a SAP integration?

2012-03-15 Thread Hadrian Zbarcea
I don't think hosting at the asf is an option (if that's what you meant) but Romain's proposal works and is imho the best option. Hadrian On 03/15/2012 07:52 PM, Christian Müller wrote: I opened the JIRA to track this [1]. I will also check with legal what possibilities we have to host the ne

Re: Camel JMS Request/Reply with Websphere

2012-03-15 Thread TheJBoss
--Issue Update-- *Finally* figured out the issue. The IBM MQ7 Queue Manager was configured to close all pooled JMS resources that have not been accessed for 5-minutes. The MQ Connection Factory defined within the Websphere Application Server 7 container specified a minimum pool = 1, meaning that

Re: Camel JMS Request/Reply with Websphere

2012-03-15 Thread TheJBoss
--Issue Update-- *Finally* figured out the issue. The IBM MQ7 Queue Manager was configured to close all pooled JMS resources that have not been accessed for 5-minutes. The MQ Connection Factory defined within the Websphere Application Server 7 container specified a minimum pool = 1, meaning that

Re: Why this works with Spring DSL and not Java DSL - http component

2012-03-15 Thread Claus Ibsen
Hi This is also posted as Q on stackoverflow, which is answered there http://stackoverflow.com/questions/9728604/apache-camel-simple-https-google-places-call-difference-between-spring-dsl-a Please when you ask for help on multiple channels, then mention that you do that. This help keep the conver

Re: Camel JMS Request/Reply with Websphere

2012-03-15 Thread Claus Ibsen
Hi Great to know you got it working. And thanks for sharing your solution to the community. It can help other users in the future with a similar/related situation. And I was also wondering as its most often a fact that when using IBM MQ you need to configure CACHE_NONE on the jms component cachin

Re: CXFRS producer removing JMS headers

2012-03-15 Thread Claus Ibsen
On Thu, Mar 15, 2012 at 7:43 PM, cgsk wrote: > Hello there, > > I am new to Camel. I am consuming a service request from a JMS queue and > calling an external REST service using CXFRS and processing the response. > But however, the JMSHeaders/custom headers which was in the message when > consumin

Re: Do Apache Camel needs a SAP integration?

2012-03-15 Thread Björn Bength
Well, my specific project embeds sap jars and native libs, as well as hibersap, in an OSGi bundle. I don't see a way of building, mocking or testing it without those dependencies. It might work, somehow, if we extract those and make an hibersap bundle. But how to mock or test such a thing? Regards

CSV dateformat bug? Attribute 'AutogenColumns' is not allowed to appear in element 'camel:csv'

2012-03-15 Thread Ujeen
Hi colleagues, I'm trying to use csv marshalling and faced the following issue cvc-complex-type.3.2.2: Attribute 'AutogenColumns' is not allowed to appear in element 'csv' This happens when I try to switch off the autogen columns feature: It looks like the issue is nested in the http://camel.apa

Re: How to create a Camel route which takes XML and bind some data to JPA annotated POJO?

2012-03-15 Thread Borut Bolčina
Thanks Babak, as it turned out, the solution with annotating the WeatherCurrent POJO did the job. The solution is so short! I posted an answer to my own question at StackOverflow. I do have one more problem with the test case, but will post it in another thread. -borut Dne 14. marec 2012 16:24