Working with POJO in with a cxc endpoint

2013-10-16 Thread juliang
Hi to all, This is my first time Posting! In my lack of experience I'm trying to use a simple route that uses two endpoints: the first one is a proxy the second one is the actual remote web service. What i'm trying to do is to add a processor in the middle of the endpoints, to access de SOAP

Re: doneFileName=${file:name} in Camel 2.12.1 doesn't get replaced correctly with camel-spring-batch

2013-10-16 Thread nguyen
Hi Claus, After upgrading to Camel 2.12.1, my integration test of the job fails with the same route which was working in Camel 2.10.3. The file doesn't get move to the appropriate directory after the batch job is done. In Camel 2.12.1, it seems to consider the property in the move as the

Re: JMS(local) -to- JMS(remote) bridge

2013-10-16 Thread Claus Ibsen
Hi Yeah you should use transacted ack mode with JMS on the local AMQ, then it will only ack the message if it could be send to the remote broker. And if Camel crashes you wont lose messages as the message is still stored in the local AMQ persistent store. AMQ has redelivery built-in, so you can

Re: How do I marshall nested key,value pairs into JSON with Camel and Jackson library?

2013-10-16 Thread Claus Ibsen
Same question posted on SO http://stackoverflow.com/questions/19389696/how-do-i-marshall-nested-key-value-pairs-into-json-with-camel-and-jackson-librar On Tue, Oct 15, 2013 at 9:47 PM, erj2code p...@tetraconcepts.com wrote: I have a Java project that currently returns a map to Camel without

Re: Camel JMS Container sending 1000's of ping like messages in a minute to IBM MQ

2013-10-16 Thread Claus Ibsen
Ad 2) You can read about receiveTimeout in spring jms documentation as well, as camel-jms is built on top of spring jms. So the option is from spring. Its default 1000 (eg 1 sec). On Tue, Oct 15, 2013 at 9:41 PM, saran_kct saran_...@yahoo.co.in wrote: Thank You Claus. I tried setting that

Re: JMS(local) -to- JMS(remote) bridge

2013-10-16 Thread brenuart
An ActiveMQ Network of Broker looks interesting but wasn't my first choice because I may need to support HornetQ in production (because of corporate policy). Thx for the advice. -- View this message in context:

Re: Camel quartz misfires and route not getting run / triggered after exception:ObjectAlreadyExistsException

2013-10-16 Thread Babak Vahdat
Hi Thanks for getting back. Your Quartz configuration seems fine. To me this sounds like a bug in Quartz itself as Quartz claims that the trigger is null/non-existing but when we try to schedule the Job using that given trigger it blows up with ObjectAlreadyExistsException. That said there's a

Re: JMS(local) -to- JMS(remote) bridge

2013-10-16 Thread brenuart
Claus Ibsen-2 wrote Yeah you should use transacted ack mode with JMS on the local AMQ, then it will only ack the message if it could be send to the remote broker. And if Camel crashes you wont lose messages as the message is still stored in the local AMQ persistent store. Ok - cool. So if I

Re: JMS(local) -to- JMS(remote) bridge

2013-10-16 Thread Claus Ibsen
Hi Yes you can just use AMQ redelivery, and configure it to retry forever. But you can also combine and use Camel's redelivery if you want. So you can use both if you want. AMQ redelivery will be a start all over, where as Camel redelivery is at the point of the error. So there is a difference

Re: CFX-Bean:headers access Issue

2013-10-16 Thread Sergey Beryozkin
Hi On 14/10/13 19:34, Amit wrote: I think the issue is org.apache.camel.component.cxf.common.header.CxfHeaderFilterStrategy filters the Content-Type. If so then IMHO this is a bug that the headers are lost before a CXF JAX-RS endpoint invocation is complete, hopefully you can sort the issue

Re: Camel gradually slowing down with large sql results

2013-10-16 Thread rjsteixeira
I'm using camel I ended up using seda. Also stop converting to bean and using xstream as marshaller and did the marshalling by hand directly from SQL output. Results are fast enough. See code below. http://i.imgur.com/jtBuMB8.png Thank you for all the help. @Component public class ReadDB

No component found with scheme:wmq1

2013-10-16 Thread dssankar
I am trying to write camel route in spring web application along with IBM WebsphereMQ as input endpoint. My Web.xml file context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/spring/hub-routes.xml /param-value /context-param listener

Re: CFX-Bean:headers access Issue

2013-10-16 Thread Sergey Beryozkin
Can you give me a favor and attach a Maven based test project to https://issues.apache.org/jira/browse/CAMEL-6865 that would make it easier for me to find the time to deal with this issue Thanks, Sergey On 16/10/13 10:29, Sergey Beryozkin wrote: Hi On 14/10/13 19:34, Amit wrote: I think the

Re: JPA type converter for multiple entities?

2013-10-16 Thread richie.rivi...@gmail.com
Just bumping this question as I'm struggling with a solution. If I am trying to persist to three separate entities should my routes specify all three entities? Or is it enough for only the first entity to be specified in the route and then to rely on the relationships defined to the other two

Re: CXF rest service route copies all request headers to response

2013-10-16 Thread Sergey Beryozkin
Hi IMHO the way headers are dealt with by default by CXFRS is confusing/wrong, hopefully a filter strategy (as already recommended) will help, in meantime, can you please consider attaching a Maven-based test project to https://issues.apache.org/jira/browse/CAMEL-6865 ? so that we can

web services integration with Apache Camel

2013-10-16 Thread biba
Hi, I intend to start using Apache Camel for the development of a web application that will process data delivered by different web services. These web services are serving data in different formats CSV, SOAP, XML. The application will receive and process data and the results will be sent to the

failed to go activemq

2013-10-16 Thread ravish4596
Hi I am trying to send the smooks transformed material to activemq but it is showing error. Please resolve this error and tell me. Below are my camel-context.xml. If i write file destination in place of activemq destination, the data is sent to that folder. But in case of activemq, it shows error.

Re: failed to go activemq

2013-10-16 Thread Claus Ibsen
What error do you see? And what version of Camel do you use? Also when you use Camel components then you need to add them to your classpath. So maybe you have not done that. If you use Maven that is easy. If not then you need to download the JARs manually and add to your classpath. On Wed,

Re: Is it possible to retrieve a stream for a Exchange Body?

2013-10-16 Thread niels_s
Hey Christian, I found a solution using a 'convertBodyTo' with InputStream as type I got it working. Thanks for the help -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-retrieve-a-stream-for-a-Exchange-Body-tp5740229p5741653.html Sent from the Camel -

Re: doneFileName=${file:name} in Camel 2.12.1 doesn't get replaced correctly with camel-spring-batch

2013-10-16 Thread Christian Mueller
Nguyen, can you please subscribe to the discussion forum in Nabble as we describe here [1]. Otherwise all your mails has to be moderate manually by the Camel team so that your post is also send to our mailing list which most of the Camel team member are using instead of Nabble. Therefore your

Re: Working with POJO in with a cxc endpoint

2013-10-16 Thread Christian Mueller
Juliang, can you please subscribe to the discussion forum in Nabble as we describe here [1]. Otherwise all your mails has to be moderate manually by the Camel team so that your post is also send to our mailing list which most of the Camel team member are using instead of Nabble. Therefore your

Re: No component found with scheme:wmq1

2013-10-16 Thread Christian Mueller
Dssankar, can you please subscribe to the discussion forum in Nabble as we describe here [1]. Otherwise all your mails has to be moderate manually by the Camel team so that your post is also send to our mailing list which most of the Camel team member are using instead of Nabble. Therefore your

Re: Is it possible to retrieve a stream for a Exchange Body?

2013-10-16 Thread Christian Mueller
Niels_s, can you please subscribe to the discussion forum in Nabble as we describe here [1]. Otherwise all your mails has to be moderate manually by the Camel team so that your post is also send to our mailing list which most of the Camel team member are using instead of Nabble. Therefore your

Re: JPA type converter for multiple entities?

2013-10-16 Thread gquintana
Your error message is telling Incorrect integer value: '\xAC\xED\x00\x05sr\x00,org.apache.camel.example.etl.PromotionEntity$\x0C\xF5\xF1\x08\x0B\xA2\x81\x02\x00\x05L\x00\x02idt\x00\x10' for column 'ITEM_PROMOTION_ID'. It seems to that you are trying to insert a Java String into a SQL Number

Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread niels_s
Hey, I'm making a context where I will pickup an Excel file, process it and write it back to disk. I first played around with one route, like this: route from uri=file:/tmp/meerakker/in/ to uri=tika:input=file/ to uri=file:/tmp/meerakker/tika/ /route Everything works nicely, my custom

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread Christian Mueller
Niels_S, can you please subscribe to the discussion forum in Nabble as we describe here [1]. Otherwise all your mails has to be moderate manually by the Camel team so that your post is also send to our mailing list which most of the Camel team member are using instead of Nabble. Therefore your

Re: No component found with scheme:wmq1

2013-10-16 Thread dssankar
I am trying to write camel route in spring web application along with IBM WebsphereMQ as input endpoint. My Web.xml file context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/spring/hub-routes.xml /param-value /context-param listener

Re: No component found with scheme:wmq1

2013-10-16 Thread Christian Mueller
Have a look at the following article [1]. And please subscribe to the discussion forum in Nabble as we describe here [2]. [1] http://lowry-techie.blogspot.pt/2010/11/camel-integration-with-websphere-mq.html [2] http://camel.apache.org/discussion-forums.html Best, Christian -- View this

Re: How do I marshall nested key,value pairs into JSON with Camel and Jackson library?

2013-10-16 Thread erj2code
Yes, that was me. I asked it both here and there since I didn't know who would respond more quickly. -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-marshall-nested-key-value-pairs-into-JSON-with-Camel-and-Jackson-library-tp5741618p5741665.html Sent from the Camel

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread niels_s
I did some more testing by replacing the activemq queues with direct's but the problem stays. I'm experiencing this only with Excel files. It seems like interroute communication is causing some issues, I'm guessing with encoding but just guessing. Never saw this before with other kind of files.

File consumer thread not stopping when Tomcat stopped

2013-10-16 Thread dancerjohn
I have a question similar to [camel-file-consumer-template-threads-remaining-alive][1]. I have a webapp running in a Tomcat container with a Spring and Camel context. I am using Camel version 2.10.4. In it I have I use the `File` component as a polling consumer. It is set up as follows:

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread James Carman
On what platform are you running your test? I just ran a test using your input file using two routes: from(file://target/inbox).to(jms:queue:myfiles); from(jms:queue:myfiles).to(file://target/outbox); The file was copied from inbox to outbox and I was able to open the file in excel. If you

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread niels_s
Hi James, I'm running Mac OS X 10.8.4 with ServiceMix 4.5.1 and deployed a bundle with my camelcontext. Would be nice if you could push it to github, thans in advance Did you run it standalone? Or also in ServiceMix? Regards, Niels -- View this message in context:

Re: File consumer thread not stopping when Tomcat stopped

2013-10-16 Thread Claus Ibsen
If you create your own thread pool, then you need to shutdown that also yourself. eg you tell Camel to use a custom thread pool with #mySpringManagedExecutorService If you create that thread pool yourself then you need to stop it also. Though you can use Camel to create thread pool also as

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread James Carman
I'm on OSX too. I ran just inside a test case. https://github.com/jwcarman/camel-sandbox/blob/master/src/test/java/com/carmanconsulting/sandbox/camel/FileCopyTest.java On Wed, Oct 16, 2013 at 9:27 AM, niels_s steni...@gmail.com wrote: Hi James, I'm running Mac OS X 10.8.4 with ServiceMix

Re: Working with POJO in with a cxc endpoint

2013-10-16 Thread juliang
Thanks, Now i'm subscribed! -- View this message in context: http://camel.465427.n5.nabble.com/Working-with-POJO-in-with-a-cxc-endpoint-tp5741630p5741673.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread James Carman
There are two routes created by the same route builder. Yes, I was able to open the file from the outbox folder, successfully using Excel for Mac. Did you try downloading my example and running it yourself? On Wed, Oct 16, 2013 at 9:56 AM, niels_s steni...@gmail.com wrote: James, did you try

Re: Timer with delay = 0 and repeatCount = 1 does not fire after resumed

2013-10-16 Thread dmytro.puzhay
Switching to another account -- View this message in context: http://camel.465427.n5.nabble.com/Timer-with-delay-0-and-repeatCount-1-does-not-fire-after-resumed-tp5737036p5741677.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: PollingConsumer.receiveNoWait() never returns null consuming from AMQPComponent endpoint in browsing mode

2013-10-16 Thread dmytro.puzhay
Switching to another account -- View this message in context: http://camel.465427.n5.nabble.com/PollingConsumer-receiveNoWait-never-returns-null-consuming-from-AMQPComponent-endpoint-in-browsing-me-tp5740556p5741680.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: PollingConsumerPollStrategy for AMQPComponent endpoint

2013-10-16 Thread dmytro.puzhay
Switching to another account -- View this message in context: http://camel.465427.n5.nabble.com/PollingConsumerPollStrategy-for-AMQPComponent-endpoint-tp5740198p5741679.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: How to consume from AMQP queue in browsing mode with Apache Camel?

2013-10-16 Thread dmytro.puzhay
Should not require any moderation now Christian Mueller wrote Can you please subscribe to the discussion forum as we describe here [1]. Otherwise all your mails has to be moderate by the Camel team and is may missed/delayed. [1] http://camel.apache.org/discussion-forums.html Thanks in

Re: File consumer thread not stopping when Tomcat stopped

2013-10-16 Thread dancerjohn
Thank you. I added a destroy-method=shutdown to the executor service and that resolved the issue. -- View this message in context: http://camel.465427.n5.nabble.com/File-consumer-thread-not-stopping-when-Tomcat-stopped-tp5741668p5741683.html Sent from the Camel - Users mailing list archive at

Re: PollingConsumerPollStrategy for AMQPComponent endpoint

2013-10-16 Thread dmytro.puzhay
Created new issue for that: https://issues.apache.org/jira/browse/CAMEL-6844 -- View this message in context: http://camel.465427.n5.nabble.com/PollingConsumerPollStrategy-for-AMQPComponent-endpoint-tp5740198p5741684.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread James Carman
I added a spring-based test. Do a rebase. On Wed, Oct 16, 2013 at 10:38 AM, niels_s steni...@gmail.com wrote: Yes, I cloned your repo, got it running and it worked fine. In the meanwhile I created a spring DSL project you can find it here: https://github.com/niels-s/camel-spring-test

API to determine the last time a route was successfully executed

2013-10-16 Thread gilboy
Hi If I hook up a JMX console to my camel application I can see a number of MBeans which expose information like the last time a route was successfully executed. Can I get this same information from the camelContext, Route, RouteContext etc. I can't appear to find a similar method which I can

Re: Working with POJO in with a cxc endpoint

2013-10-16 Thread juliang
Ok, now I have this two endpoints: CxfEndpoint wsLocal = new CxfEndpoint(); wsLocal.setAddress(http://localhost:9090/camel-ws/GeoIPService;); wsLocal.setPortName(new QName(http://www.webservicex.net/;,

standalone camel stops routing for hour at daylight saving change

2013-10-16 Thread rpcat
My standalone camel app stops routing when I simulate daylight saving time change by setting the system time back an hour (e.g. date --set 2013-10-16 00:00:30). Once the system time catches up again to where the time was when it was set back an hour, the routes all start going again. I'm using

Re: Email Attachments - Adding to Exchange Attachments

2013-10-16 Thread contactreji
Sure Christian. I shall do that right away! :-) thanks On Sat, Oct 12, 2013 at 1:10 PM, Christian Mueller [via Camel] ml-node+s465427n5741445...@n5.nabble.com wrote: Contactreji, can you please subscribe to the discussion forum as we describe here [1]. Otherwise all your mails has to be

Re: CFX-Bean:headers access Issue

2013-10-16 Thread Amit
After removing conent-type from header filter. I found the issue in CxfHeaderHelper below method. It puts the content Type in message not in header and org.apache.cxf.jaxrs.impl.HttpHeadersImpl class get content Type from header. I did comment out if (Exchange.CONTENT_TYPE.equals(entry.getKey()))

RE: How to provide basic authoraizaton (user password) in Spring DSL to acess rest webservice

2013-10-16 Thread jhonny
Hi, Thanks for the input. Basically am looking for the tag which should required to write in my spring XML (spring DSL) to set header with basic authorisation parameter such user and password. From: Mark Frazier [via

Re: CFX-Bean:headers access Issue

2013-10-16 Thread Sergey Beryozkin
Hi that is good, thanks for getting to the bottom of it, must be an easy fix, IMHO we will just need to remove 'else', in a regular CXF request, CONTENT_TYPE is available on the message as a dedicated property also part of the headers map. Would you like to attach a basic patch to that

Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread dmytro.puzhay
Hi all, I've read http://camel.apache.org/discussion-forums.html and http://camel.apache.org/mailing-lists.html and even subscribed to users-subscr...@camel.apache.org, but the matter still looks crypto more or less to me. Very simple question: I want to be able to freely post to this forum and

Add new route runtime

2013-10-16 Thread lassesvestergaard
Hi all. I simply can't get my head around this issue. Let's say I have a running native java application that has a running camelcontext. I deploy this application on a production server somewhere. In the meantime I want to develop and test new routes in my own local development environment.

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread rpcat
yes, from your email that you have used to create your nabble login, send an email to users@camel.apache.org with the subject subscribe -- View this message in context:

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread James Carman
Send email to users-subscr...@camel.apache.org On Wed, Oct 16, 2013 at 2:38 PM, rpcat rpcata...@gmail.com wrote: yes, from your email that you have used to create your nabble login, send an email to users@camel.apache.org with the subject subscribe -- View this message in context:

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread dmytro.puzhay
Thanks for answer, I got following error: Hi. This is the qmail-send program at apache.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. users@camel.apache.org: ezmlm-reject: fatal: Sorry, I don't

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread rpcat
ok, try not putting anything in the subject. -- View this message in context: http://camel.465427.n5.nabble.com/Being-able-to-post-and-reveice-email-notification-to-subscribed-posts-tp5741693p5741698.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread dmytro.puzhay
Please read my post, I've written there that I already subscribed to users-subscr...@camel.apache.org James Carman wrote Send email to users-subscribe@.apache On Wed, Oct 16, 2013 at 2:38 PM, rpcat lt; rpcatania@ gt; wrote: yes, from your email that you have used to create your

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread James Carman
Did you send the confirmation email? On Wed, Oct 16, 2013 at 2:46 PM, dmytro.puzhay dmytro.puz...@gmail.com wrote: Please read my post, I've written there that I already subscribed to users-subscr...@camel.apache.org James Carman wrote Send email to users-subscribe@.apache On Wed, Oct

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread dmytro.puzhay
Yes and I'am getting notifications I am not interested in. P.S. Did you actually read my post? ;) -- View this message in context: http://camel.465427.n5.nabble.com/Being-able-to-post-and-reveice-email-notification-to-subscribed-posts-tp5741693p5741701.html Sent from the Camel - Users mailing

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread dmytro.puzhay
No luck either :( Hi. This is the qmail-send program at apache.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. users@camel.apache.org: ezmlm-reject: fatal: Sorry, I don't accept message with

Re: camel web service proxy example hosted in Tomcat?

2013-10-16 Thread cbuxbaum
Ok, got most of it to work. For some reason, if I add dataFormat=MESSAGE to my proxy webservice endpoint url, the actual webservice functions, but I cannot get the WSDL from the endpoint. If I set dataFormat=PAYLOAD, I can get the wsdl at the endpoint, but the webservice does not function (I

Re: CFX-Bean:headers access Issue

2013-10-16 Thread Christian Mueller
Amit, can you please subscribe to the discussion forum in Nabble as we describe here [1]. Otherwise all your mails has to be moderate manually by the Camel team so that your post is also send to our mailing list which most of the Camel team member are using instead of Nabble. Therefore your post

Creating a Component that Calls Another Component

2013-10-16 Thread kraythe .
Greetings, I want to create a component that calls another component in essence. Specifically I have a remote REST based service that I call. I would like to wrap those calls in a component to reduce the route verbosity we are faced with. That means that I will need a component to call that

camel-rabbitmq : not able to publish messages

2013-10-16 Thread tsv
Greetings, I am using camel-rabbitmq component to publish messages to rabbitmq broker. But I see my route opens a connection in rabbitmq server (viewed from rabbitmq web admin management console) but never creates a channel, exchange, queue and the message. Here is my route config:

Re: Creating a Component that Calls Another Component

2013-10-16 Thread Christian Posta
Wonder if there is a better way to share routes that are spread all over your integration by using direct/seda/vm, etc than to try to merge components into one. Maybe you can post a more detailed example with sample routes to illustrate what you're trying to solve? On Wed, Oct 16, 2013 at 2:43

Best practice question

2013-10-16 Thread Joe Osowski
Dear Camel users. Given the following DSL. What would be the best way to execute a task when all the below processing is complete? Specifically, I have a second long running task that needs to get queued as soon as FOO2_QUEUE is complete. from(FOO_QUEUE)

Re: Best practice question

2013-10-16 Thread Henrique Viecili
Hi Joe, take a look at http://camel.apache.org/splitter.html#Splitter-Splitaggregaterequest%2Freplysample , after you end() your split do a wireTap to the second long running task. (assuming the exchange pattern is InOut) Cheers, Henrique Henrique Viecili 2013/10/17 Joe Osowski

Re: JPA type converter for multiple entities?

2013-10-16 Thread richie.rivi...@gmail.com
okay thanks. My main concern is that I am defining my route properly. At the moment I am only defining my route to the item entity and I was thinking maybe because I had not specified the other entities it was using null or something like that. So it seems like from the response my problem is not

Re: Add new route runtime

2013-10-16 Thread saltnlight5
Hi, Sounds like you might want to try running Camel on an OSGI container. OSGI let you managing jar and dependency without reloading, and each container has it's own way of managing it. You would be happy to know that all Camel artifacts are OSGI ready. You may read more information here:

Re: API to determine the last time a route was successfully executed

2013-10-16 Thread saltnlight5
Hi, Camel can expose itself onto a MBeanServer, and that's how you see them in jconsole. You can get to the MBeanServer through camelContext.getManagementStrategy().getManagementAgent().getMBeanServer(). Once you have that, you can use the standard MBeanServer API to query any of those mbean you