Re: JPA consumer starts up, but is not polling

2010-03-31 Thread Claus Ibsen
Hi I dont know what version of Camel you are using, but we have recently fixed the scheduled polling consumer to catch java.lang.Error and have that logged as well https://issues.apache.org/activemq/browse/CAMEL-2339 That should help catch those NoClassDefFoundError and other errors being

No connection reuse with recipientList and Mina Endpoints

2010-03-31 Thread _Jens
Hi, I have run into an issue with a .recipientList() using Mina endpoints (Camel 2.1). Basically, I was changing a route from using static .to() calls into a more dynamic .recipientList() call. With the .to() calls IoSessions were reused to send data. However, with the .recipientList() it seems

Re: tutorial-osgi-camel-part2 problem during statup

2010-03-31 Thread Richard Slide
Hi, thanks for help but i have change the dipendency in routing, recompile all and restart Karaf but the result dosen't change. From stack trace i read that it dosent' find Failed to read schema document 'http://activemq.apache.org/schema/core/activemq-core.xsd a suppose that this is a problem

Re: issue with HTTP response content length being set to CXF request length - causing truncated responses.

2010-03-31 Thread zigo
Willem, my route is this: camelContext id=camel xmlns=http://camel.apache.org/schema/spring; route from uri=cxf:bean:gtEndpoint?serviceName={http://foo.com}gt_connectoramp;dataFormat=MESSAGE/ !-- Workaround

Re: tutorial-osgi-camel-part2 problem during statup

2010-03-31 Thread Charles Moulliard
It means that the bundle cannot load from its classpath the schema of activemq which is packaged in activemq jar Can you refresh the bundle using the command osgi:refresh xxx xxx = number of the bundle and see what happens ? Kind regards, Charles Moulliard Senior Enterprise Architect Apache

Re: issue with HTTP response content length being set to CXF request length - causing truncated responses.

2010-03-31 Thread Willem Jiang
Yes, we need to update the wiki page for it. Willem zigo wrote: Willem, my route is this: camelContext id=camel xmlns=http://camel.apache.org/schema/spring; route from

[WebService] Invoke specific operation with params using configuration

2010-03-31 Thread Olivier Roger
Hello Camel, I have done some testing before I could invoke a webservice using Camel. I still see two issues using my current solution: 1- At the moment I have to wrap my Exchange body with a SOAP envelope. To process the result I also have to remove it from the SOAP response. 2- I also would

tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Richard Slide
Hello, If you have difficult to tell me what go wrong could you please send me a zip that works. At this moment my target is see that example work ecc.ecc What i do is download the zip from the site and try to deploy it. Cheers thanks a lot for help Richard

Re: tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Willem Jiang
Hi Richard, Why are you using camel 2.1.0-SNAPSHOT with ActiveMQ 5.3.0? There is an OSGi meta info issue[1] on the ActiveMQ 5.3.0, when you are not using camel 2.0.0. So please try out the Camel 2.2.0 with ActiveMQ 5.3.1, I'm sure you can run the example smoothly :)

Re: getUnitOfWork not working?

2010-03-31 Thread Claus Ibsen
Hi Please read this page for how to better report problems (how to get help)? http://camel.apache.org/support.html On Tue, Mar 30, 2010 at 3:23 PM, ankelee andreasasm...@gmail.com wrote: String str = exchange.getUnitOfWork().getOriginalInMessage().getBody(String.class); I have a simple

Re: Setting ProducerServicePool in Spring Camel Context

2010-03-31 Thread Claus Ibsen
Hi Its just a setter on CamelContext but it may be harder to do with Spring XML lingo when using camelContext/ There is a related JIRA ticket to have easier configuration of the pool size of producerTemplate and consumerTemplate. So please add a comment on that ticket about your use case. On

Re: No connection reuse with recipientList and Mina Endpoints

2010-03-31 Thread Claus Ibsen
Hi This should be fixed in Camel 2.3. On Wed, Mar 31, 2010 at 9:46 AM, _Jens jens.riemschnei...@icw.de wrote: Hi, I have run into an issue with a .recipientList() using Mina endpoints (Camel 2.1). Basically, I was changing a route from using static .to() calls into a more dynamic

Re: Setting ProducerServicePool in Spring Camel Context

2010-03-31 Thread christian ohr
I put a comment into CAMEL-2558. Christian Claus Ibsen-2 wrote: Hi Its just a setter on CamelContext but it may be harder to do with Spring XML lingo when using camelContext/ There is a related JIRA ticket to have easier configuration of the pool size of producerTemplate and

Re: tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Richard Slide
Hello first of all thanks for patience; || Why are you using camel 2.1.0-SNAPSHOT with ActiveMQ 5.3.0? cause its in pom on the site here the step that i do 1: I have downloaded the zip from the site and delete all my M2 repository 2: Modify pom reportincident.routing and insert

Re: tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Charles Moulliard
I will make a test with camel 2.2.0 / activemq 5.3.1 and come back to you soon. Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin :

Re: tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Charles Moulliard
Richard, To install camel 2.2.0 features = list of bundles, you must use the features file 2.2.0 of camel --

Re: tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Filippo Balicchia
It works Thanks a lot ! 2010/3/31 Charles Moulliard cmoulli...@gmail.com: Richard, To install camel 2.2.0 features = list of bundles, you must use the features file 2.2.0 of camel --

Re: tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Richard Slide
Ok, thanks for suggestion but i have problems again.. java.lang.Exception: Could not start bundle mvn:org.apache.camel.example/reportincident.queueservice/1.0-SNAPSHOT in feature(s) reportincident-1.0-SNAPSHOT: Unresolved constraint in bundle reportincident.queueservice [54]: package;

Re: tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Charles Moulliard
Hi Richard, Please update the pom as mentioned in my previous email, recompile projects and update the bundles ! Kind regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer * blog : http://cmoulliard.blogspot.com twitter :

Problem from Camelcontext close after poolingconnection,transactionmanager and datasource

2010-03-31 Thread MasterLotis
I Have using camel 2.2.0 with spring 2.5.6 Tomcat 6 and Atomikos Transaction manager working together. I found error on stopping tomcat like this. STACKTRACE: java.net.SocketException: socket closed at java.net.SocketInputStream.socketRead0(Native Method) at

camel-cxf osgi error

2010-03-31 Thread Charles Moulliard
Hi, I try to test the camel tutorial using camel 2.2.0 cxf 2.2.6 on karaf 1.4 and get this error : head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ titleError 500 INTERNAL_SERVER_ERROR/title /head body h2HTTP ERROR 500/h2 p

Re: Setting ProducerServicePool in Spring Camel Context

2010-03-31 Thread Willem Jiang
Just one comments for the camel:properties, it's used for setup the properties which can be use for CamelContext, but current camelContext doesn't pick up the ProducerServicePool from the camel:properties. Willem Claus Ibsen wrote: Hi Its just a setter on CamelContext but it may be harder

Re: Problem from Camelcontext close after poolingconnection,transactionmanager and datasource

2010-03-31 Thread Willem Jiang
Hi Can you show us the camel route that you have ? It will be useful for use the dig the issue. Willem MasterLotis wrote: I Have using camel 2.2.0 with spring 2.5.6 Tomcat 6 and Atomikos Transaction manager working together. I found error on stopping tomcat like this. STACKTRACE:

Re: tutorial-osgi-camel-part2 problems during startup

2010-03-31 Thread Charles Moulliard
I have discovered a problem with activemq and pooling engine so it is not possible to parse files and place the result in queues Exception in thread SpringOsgiExtenderThread-12 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.os

Re: camel-cxf osgi error

2010-03-31 Thread Willem Jiang
Hi Charles, You are using the cxf osgi transport, can you check the karaf log to see if the camel-cxf endpoint start up rightly? BTW, can you show me the camel route and the camel-cxf endpoint configuration? Willem Charles Moulliard wrote: Hi, I try to test the camel tutorial using

Re: camel-cxf osgi error

2010-03-31 Thread Charles Moulliard
The route is defined in the tutorial but here is the code that I don't change : ?xml version=1.0 encoding=UTF-8? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional

Re: [WebService] Invoke specific operation with params using configuration

2010-03-31 Thread Willem Jiang
If you just want to specify the operation with params from scratch, you can try the camel-cxf[1] with the POJO DataFormat, you can find the example here[2] If you already have a SOAP envelope request, I think you need to try do the transformation yourself.

Re: async requests and responses on a single connection

2010-03-31 Thread anandsk
Thanks for response,I beleive it's same behavior in camel mina 2.0 and 2.2. we are thinking of using 2.0M2 as we have release in a month. But my main question is how do I keep this producer object/component alive till a route is shutdown so that I don't loose any messages. any thoughts on

Re: Problem from Camelcontext close after poolingconnection,transactionmanager and datasource

2010-03-31 Thread MasterLotis
My current routing.property file. driverClassName = com.mysql.jdbc.jdbc2.optional.MysqlXADataSource url = jdbc:mysql://127.0.0.1/TEST102 username = root password = 1234 brokerURL = tcp://127.0.0.1:61616 maxConnections = 1 concurrentConsumers = 1 -- View this message in context:

Re: onException()

2010-03-31 Thread /U
I studied PollingConsumerPollStrategy error handling strategies and i still amnot abloe to find a way to handle errors. i think its a bit strange that is done one way inside the boundary (i.e., after the first endpoint is instantiated) and a different way thereaftr (i.e., if an interior endpoint

Re: onException()

2010-03-31 Thread Claus Ibsen
Hi Why do you need to remove it? Can you just stop it instead? The Camel in Action book, chapter 13, contains details how to stop and start routes at runtime. There are methods on CamelContext to do that. Which you can easily invoke from a onCompletion in the route. On Thu, Apr 1, 2010 at

Re: async requests and responses on a single connection

2010-03-31 Thread Willem Jiang
I don't think current mina producer can do the work that you want. But if you take a look at the Camel 2.x Async[1], and JettyHttpProduer[2], you can find a way to implement the async request and response with Camel. [1] http://camel.apache.org/async.html [2]

Mina endpoint behaviour

2010-03-31 Thread Muhammad Ichsan
Dear All, I tried to use mina endpoints. I see that mina endpoints which is used in from will act as servers and the ones which is used in to will act as clients. Actually, I need mina endpoints which more or less defined as the following code: from uri=mina:tcp://localhost?as_server=false!--