Re: Is it Camel Bug?

2013-07-28 Thread SyedBhai
Hello Willem, Yes. This is what I wanted. When I add the option "synchronous=true" it shutsdown gracefully immediately. Thanks, Syed. -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-Camel-Bug-tp5736288p5736399.html Sent from the Camel - Users mailing list archive

Re: Is it Camel Bug?

2013-07-28 Thread Willem jiang
Hi I can give you some explain about the default-workqueue thread pool. Thread[default-workqueue-1,5,default-workqueue] As camel-cxf producer is using the async invocation by default, the default-workqueue is used for handle the request in other thread, when the camel context is stopped, it do

Re: combining the existing content with a file having dynamic uri then moving the file

2013-07-28 Thread Claus Ibsen
On Sun, Jul 28, 2013 at 8:18 PM, skumar wrote: > Thanks,Claus.It is working fine.But I have still one question.Can I use it > for reading the pattern based file and moving the file to a archive > directory.Something like this: > > include=.*.*xls*& > move={{data_home}}/${file:onlyname.noext}_${da

Re: Recipient List & Multitenant ESBs

2013-07-28 Thread Claus Ibsen
On Sun, Jul 28, 2013 at 9:05 PM, John D. Ament wrote: > Yes, yes of course. Is there a best practice to doing this? > > What about this question? > > with ${body..}, if I'm sending my own object as the message, does that > become body and then I can use a parameter on it to represent the value? >

Re: Is it Camel Bug?

2013-07-28 Thread Taariq Levack
Syed, if you post your actual code and config we will likely see some misuse or misconfiguration. Its not typical to create threads in a web application, especially not for every request. And it's not typical to start/stop the producer or the camel context for each request. Taariq On Mon, Jul 29

Re: Is it Camel Bug?

2013-07-28 Thread SyedBhai
Hello everyone. Please. Try to understand my problem. Lets forget about web application or standalone application or tomcat. The problem is very simple. I have a WSDL based webservice. I want to invoke this service using Camel and get the results. The code for doing this is here. p

Re: How to set cookie in Camel AHC (Asycn Http Client)

2013-07-28 Thread Santosh Koti
Many thanks Claus for your reply. Thanks, Santosh On Sun, Jul 28, 2013 at 5:53 PM, Claus Ibsen wrote: > Hi > > Yes cookies is just "http headers" so you ought to be able to just use > camel headers as you code showed. > > On Thu, Jul 25, 2013 at 4:54 PM, santosh2013 > wrote: > > Hi, > > >

Re: Replacing standalone client with generic one in cxf component

2013-07-28 Thread cannykanna
Hi Willem: Thanks for the reply. I made changes in cxf endpoint uri and could configure it and made it work. Thank you once again :) I have one more doubt. Suppose i am doing get operation and store the response in one file. And then for every 10 sec I want this get operation to be invoked on my e

Re: Bug in JMS Request/Reply with CACHE_NONE and Temporary Queues

2013-07-28 Thread Mike Pilone
Thanks for the confirmation. It should probably clearly noted in the request/reply documentation as it is a pretty easy way to get yourself into a completely unusable configuration. -mike [cid:E1349351-5850-49F3-9008-CF9129E02D3C] | Mike Pilone | Software Architect, Distribution | mpil...@npr.

Re: FTP Consumer, move file to failed directory

2013-07-28 Thread akcameluser
Many thanks for your help. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Consumer-move-file-to-failed-directory-tp5736265p5736373.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is it Camel Bug?

2013-07-28 Thread Willem jiang
Are you using Camel ProducerTemplate to send the request to the camel context? If so , you need to stop it first. BTW, it will be helpful if you can show us what's the process thread do. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://w

Re: camel-cdi and non containers

2013-07-28 Thread Romain Manni-Bucau
If the cdi container is running no need of this class IIRC. What's your deployed osgi bundles? The only point is: can ds get a beanmanager? Le 28 juil. 2013 21:46, "John D. Ament" a écrit : > Well, that's the thing (which I'm a bit confused on). The closest thing I > have is servicemix as a con

Re: Is it Camel Bug?

2013-07-28 Thread Christian Müller
It sounds really strange to me... How do you bootstrap Camel in you web application? Can you share your code? Hopefully, you do not create a new Camel context per (web) request... Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/t

Re: Is it Camel Bug?

2013-07-28 Thread James Carman
When you say "web application", are we talking about the normal, servlet-based kind? If so, why are you creating threads yourself? How are you "bootstrapping" Camel in your web application? Are you following the directions outlined in the tutorial Claus showed you? On Sun, Jul 28, 2013 at 1:56 P

Re: camel-cdi and non containers

2013-07-28 Thread John D. Ament
Well, that's the thing (which I'm a bit confused on). The closest thing I have is servicemix as a container. So it's not clear where I would put the bootstrap class since I don't instantiate the camel context (servicemix does). On Sun, Jul 28, 2013 at 3:38 PM, Romain Manni-Bucau wrote: > hi >

Re: camel-cdi and non containers

2013-07-28 Thread Romain Manni-Bucau
hi i used it (before any release so it maybe changed) with owb in KarafEE so just pick the container you want ;) *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.lin

Re: camel-cdi and non containers

2013-07-28 Thread John D. Ament
Hi Romain I think that's plain camel-cdi. The question is more around using camel-cdi in service mix (probably using pax cdi and either Weld or OWB). On Sun, Jul 28, 2013 at 3:06 PM, Romain Manni-Bucau wrote: > Hi > > If it didnt change since i looked it relies on DS so you just need to > ensu

Re: camel-cdi and non containers

2013-07-28 Thread Romain Manni-Bucau
Hi If it didnt change since i looked it relies on DS so you just need to ensure cdi impl bundle started before Le 28 juil. 2013 21:01, "John D. Ament" a écrit : > Hi all > > I'm interested in using camel-cdi support, but not within an EE container; > instead I want to run it with Karaf and Servi

Re: Recipient List & Multitenant ESBs

2013-07-28 Thread John D. Ament
Yes, yes of course. Is there a best practice to doing this? What about this question? with ${body..}, if I'm sending my own object as the message, does that become body and then I can use a parameter on it to represent the value? On Sun, Jul 28, 2013 at 4:01 AM, Claus Ibsen wrote: > You can

camel-cdi and non containers

2013-07-28 Thread John D. Ament
Hi all I'm interested in using camel-cdi support, but not within an EE container; instead I want to run it with Karaf and Service Mix. The docs at [1] seem to indicate that we need to use a bootstrap class to setup the container, however it seems like with service mix, service mix would need to d

Re: combining the existing content with a file having dynamic uri then moving the file

2013-07-28 Thread skumar
Thanks,Claus.It is working fine.But I have still one question.Can I use it for reading the pattern based file and moving the file to a archive directory.Something like this: include=.*.*xls*& move={{data_home}}/${file:onlyname.noext}_${date:now:MMdd}.XLS& moveFailed={{data_home}}/errorfile&do

Re: Is it Camel Bug?

2013-07-28 Thread SyedBhai
Sir, The question here is not about web application or standalone application. The question is camel is creating some threads. These threads are not getting terminated at all. I am having a web application. For every incoming request I create a thread to process the request. This thread use

Re: combining the existing content with a file having dynamic uri then moving the file

2013-07-28 Thread Claus Ibsen
If you just want to read a file in pollEnrich then you can transform the message to a java.io.File and specify the file name dynamically using the simple/file language. ... file:{{inbound_home}}/pgsl/${body.FileDir} On Sun, Jul 28, 2013 at 3:17 PM, skumar wrote: > Hi All, >

combining the existing content with a file having dynamic uri then moving the file

2013-07-28 Thread skumar
Hi All, I am a camel newbie and searching for more than 3 days but couldn't get an appropiate answer. Actually I have to process lot of files one by one using the same route based on some criteria.I get the criteria value and the uri of the file from the database,spitted it using a splitter a

Re: consumer.bridgeErrorHandler=true on 2.12-SNAPSHOT

2013-07-28 Thread Claus Ibsen
Hi See CAMEL-6312 On Sun, Jul 28, 2013 at 2:34 PM, Preben.Asmussen wrote: > yeah - it's a custom component and I figured it out. > > Somehow I had the impression that I had to set the consumer properties > manually calling setConsumerProperties -> > > protected Endpoint createEndpoint(St

Re: consumer.bridgeErrorHandler=true on 2.12-SNAPSHOT

2013-07-28 Thread Preben.Asmussen
yeah - it's a custom component and I figured it out. Somehow I had the impression that I had to set the consumer properties manually calling setConsumerProperties -> protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception { Splunk

Re: How to set cookie in Camel AHC (Asycn Http Client)

2013-07-28 Thread Claus Ibsen
Hi Yes cookies is just "http headers" so you ought to be able to just use camel headers as you code showed. On Thu, Jul 25, 2013 at 4:54 PM, santosh2013 wrote: > Hi, > > I am able to call a REST services using AHC component, but there are some > services which accept cookies > as part of their r

Re: Is it Camel Bug?

2013-07-28 Thread Claus Ibsen
Hi For a web application in Tomcat see this page for how to do that properly http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html You write a standalone app with a main method, this is not the way you should do that. On Fri, Jul 26, 2013 at 11:06 AM, SyedBhai wrote: > Hi C

Re: consumer.bridgeErrorHandler=true on 2.12-SNAPSHOT

2013-07-28 Thread Claus Ibsen
Can you provide more details as it works fine on trunk. Are you using a custom component or something? On Sun, Jul 28, 2013 at 1:55 PM, Preben.Asmussen wrote: > Hi > > I just tried the snapshot version and there seems to be a problem or changed > api concerning setting consumer.bridgeErrorHandler

consumer.bridgeErrorHandler=true on 2.12-SNAPSHOT

2013-07-28 Thread Preben.Asmussen
Hi I just tried the snapshot version and there seems to be a problem or changed api concerning setting consumer.bridgeErrorHandler=true on consumer endpoints. I get an -> Failed to resolve endpoint . There are 1 parameters that couldn't be set on the endpoint consumer. Check the uri if the pa

Re: How to get User ID from ActiveMQ to Camel

2013-07-28 Thread Claus Ibsen
Hi Logged a ticket to improve this https://issues.apache.org/jira/browse/CAMEL-6583 On Sun, Jul 28, 2013 at 12:22 PM, Claus Ibsen wrote: > Hi > > Ah spotted this, see the source code of > org.apache.camel.component.jms.JmsHeaderFilterStrategy > > On Sun, Jul 28, 2013 at 12:21 PM, Claus Ibsen wr

Re: How to get User ID from ActiveMQ to Camel

2013-07-28 Thread Claus Ibsen
Hi Ah spotted this, see the source code of org.apache.camel.component.jms.JmsHeaderFilterStrategy On Sun, Jul 28, 2013 at 12:21 PM, Claus Ibsen wrote: > Hi > > What version of ActiveMQ and Camel are you using? > > And you can enable DEBUG or TRACE logging on > org.apache.camel.component.jms.Endp

Re: How to get User ID from ActiveMQ to Camel

2013-07-28 Thread Claus Ibsen
Hi What version of ActiveMQ and Camel are you using? And you can enable DEBUG or TRACE logging on org.apache.camel.component.jms.EndpointMessageListener Then Camel should log the receive JMS message. Maybe you can see if it contains the user id somewhere. You can also always get the original ja

Re: Ftp connection through SOCKS Proxy.

2013-07-28 Thread Claus Ibsen
Hi Any update on your contribution? On Thu, Jul 18, 2013 at 10:08 PM, ninadmnaik wrote: > Thanks Willem ! The NET-468 patch was released as a part of the issue: > https://issues.apache.org/jira/browse/NET-468 > I guess the ticket is still open because they might need some more unit > tests. > >

Re: Recipient List & Multitenant ESBs

2013-07-28 Thread Claus Ibsen
You can add and remove routes on the fly. Then each route can be independent and thus allow a level of multi tenancy. On Sat, Jul 27, 2013 at 2:32 PM, John D. Ament wrote: > Hmm yes I had seen that, with ${body..}, if I'm sending my own object as > the message, does that become body and then I ca

Re: Render JSP page using Jetty Component

2013-07-28 Thread Claus Ibsen
No there is no doc or examples. You need to research yourself. On Sat, Jul 27, 2013 at 3:42 PM, humayun0156 wrote: > Hi Claus, > Thanks for your replay. To do this is there any document or example? > > Thanks > -Humayun > > > > -- > View this message in context: > http://camel.465427.n5.nabble.c