Re: Cant copy file from one directory to another within camel/activemq/spring

2010-04-19 Thread Claus Ibsen
Hi Try looking at the chapter 1 of the Camel in Action book which has a file copy example http://www.manning.com/ibsen And make sure you can run it from Eclipse with no issues. Bottom line is to get the simple things working first, and then add to it. On Mon, Apr 19, 2010 at 6:37 PM, Kevin Figh

Re: Cant copy file from one directory to another within camel/activemq/spring

2010-04-19 Thread Willem Jiang
Hi, Can you try to run the copy route alone with the JMS component involved? BTW can you also try the copy route with out delete the file? Just like this "file://project_feedoutput/?recursive=true" Willem Kevin Fightmaster wrote: I'm trying to get a simple example up in working with files:

Re: Graceful shutdown of Camel-Jetty component. (Camel 2.2.0)

2010-04-19 Thread Claus Ibsen
Hi camel-jetty does not currently support shutting down by stopping intaking new requests while allowing existing to be processed to completion. In fact this is something that each individual component has to implemented. This can be done by supporting the SuspendableService on the consumer. Then

Re: How to route a message to remote ActiveMQ broker(s) dynamically?

2010-04-19 Thread Willem Jiang
After digging the code, I found why your first "remote server" can receive the message. There is a ProducerCache for the RecipientList and it only take the endpoint's uri as the key(in camel the uri is the key of endpoint), and all your remote endpoint are with the same uri. For your case, y

Re: Graceful shutdown of Camel-Jetty component. (Camel 2.2.0)

2010-04-19 Thread Ilya S
Hi Claus, The test cases were helpful. However, the reason I cannot use "Defer" option is because my Jetty input point is public, and if I have this option set, then the new messages will keep comming from the clients and the context will never be done. My goal is stop processesing gracefully whi

Open source pubcrawl Tuesday 20th April

2010-04-19 Thread Rob Davies
Starting at 5.30pm here: http://www.mickeesonthewater.com/ Making way to Boston (or until I fall over) - all welcome :) cheers, Rob

Re: Graceful shutdown of Camel-Jetty component. (Camel 2.2.0)

2010-04-19 Thread Ilya S
Claus, thanks for your response. If I use the Defer option on both of my routes (jetty and jms) then the system does not shut down because new messages are constantly coming from my clients (producers). I tried the other scenario, recommended in the documentation: In my case the jetty route is a

Re: Graceful shutdown of Camel-Jetty component. (Camel 2.2.0)

2010-04-19 Thread Claus Ibsen
See this unit test http://svn.apache.org/viewvc?rev=935691&view=rev On Mon, Apr 19, 2010 at 7:52 PM, Claus Ibsen wrote: > Hi > > Just defer shutting down the Jetty route. > http://camel.apache.org/graceful-shutdown.html > > On Mon, Apr 19, 2010 at 7:08 PM, Ilya S wrote: >> I'd like to bump this

Re: Graceful shutdown of Camel-Jetty component. (Camel 2.2.0)

2010-04-19 Thread Claus Ibsen
Hi Just defer shutting down the Jetty route. http://camel.apache.org/graceful-shutdown.html On Mon, Apr 19, 2010 at 7:08 PM, Ilya S wrote: > I'd like to bump this thread up, and see if anyone has any suggestions. > Thanks. > > On Thu, Apr 15, 2010 at 10:24 AM, Ilya S wrote: >> Here is a more de

Re: How to route a message to remote ActiveMQ broker(s) dynamically?

2010-04-19 Thread mdasari
Thanks Willem for your comments. I posted a simpler version of my code. My actual code was adding a camel Component (ActiveMQComponent) by using CamelContext.addComponent and I'm trying to retrieve the component by calling getComponent. The key is hash of the IP address, basically like CamelCont

Re: Graceful shutdown of Camel-Jetty component. (Camel 2.2.0)

2010-04-19 Thread Ilya S
I'd like to bump this thread up, and see if anyone has any suggestions. Thanks. On Thu, Apr 15, 2010 at 10:24 AM, Ilya S wrote: > Here is a more detailed log (with TRACE level on) if that can help: > > [CP Connection(4)-10.58.123.154] DefaultCamelContext            INFO > Apache Camel 2.2.0 (Came

Cant copy file from one directory to another within camel/activemq/spring

2010-04-19 Thread Kevin Fightmaster
I'm trying to get a simple example up in working with files: ContextFile 1 http://www.springframework.org/schema/beans"; xmlns:context="http://www.springframework.org/schema/context"; xmlns:camel="http://camel.apache.org/schema/spring"; xmlns:broker="http://activemq.apache.org/schema/core";

Error Copying a file from one directory to another

2010-04-19 Thread Kevin Fightmaster
I'm trying to get a simple example up in working with files: ContextFile 1 http://www.springframework.org/schema/beans"; xmlns:context="http://www.springframework.org/schema/context"; xmlns:camel="http://camel.apache.org/schema/spring"; xmlns:broker="http://activemq.apache.org/schema/core";

Velocity component

2010-04-19 Thread Olivier Roger
Hello, When trying to use the Velocity component I encountered a problem. I have a Simple SQL query I would like to built using the Message Body (XML) I was using an XSL file to perform the transformation by extracting the values into the SQL query templace. INSERT INTO person VALUES('','','',

Re: Mail component support direct connection to send email as opposed to smtp

2010-04-19 Thread Claus Ibsen
Hi You can intercept and detour the message using InterceptSendToEndpoint http://camel.apache.org/intercept.html Or you can just create a MailMessage object and put it on the Exchange IN Message. On Mon, Apr 19, 2010 at 12:50 PM, Srini97 wrote: > > Hello , > > is there any way that we can sen

Mail component support direct connection to send email as opposed to smtp

2010-04-19 Thread Srini97
Hello , is there any way that we can send the mail over direct connection rather using the SMTP connecton. Thanks in advance for the valuable suggestion. Regards Sri -- View this message in context: http://old.nabble.com/Mail-component-support-direct-connection-to-send-email-as-opposed-to-sm

Re: Split Body in Spring DSL

2010-04-19 Thread Claus Ibsen
Hi Ah I digged a bit more. Only when you use ${ } Camel uses the complex concat expressions. So you can do body And it should work. On Mon, Apr 19, 2010 at 9:28 AM, Olivier Roger wrote: > > Hello Claus, > > I was using the tokenize on "]," but some brackets from the toString > representatio

Re: Split Body in Spring DSL

2010-04-19 Thread Claus Ibsen
Hi Yeah I can see the problem now. The language was originally designed for creating dynamic Strings, and hence ${body} is parsed as "" + body, which cause Camel to type coerce the body to a String type as well. I will look into this. On Mon, Apr 19, 2010 at 9:28 AM, Olivier Roger wrote: > >

Re: Setting optional parameters with Camel Header for camel-smpp

2010-04-19 Thread Claus Ibsen
Hi Its open source so you can always implement a patch and provide it back to Apache. On Mon, Apr 19, 2010 at 10:57 AM, lekkie wrote: > > He didnt leave his contact info in here. > > Can help with that? > > kr. > > > Claus Ibsen-2 wrote: >> >> Hi >> >> Christian Mueller developed and contribute

Re: JMS Message Acknowledgement & Persistence in Camel

2010-04-19 Thread lekkie
Claus Ibsen-2 wrote: > > On Thu, Apr 15, 2010 at 8:53 AM, lekkie wrote: >> >> I checked it out on Amazon and it says it has not been released. >> >> Where else can I get it? >> > > See my mail signature :) > http://www.manning.com/ibsen > > If you buy from Manning you can can get the MEAP v

Re: Setting optional parameters with Camel Header for camel-smpp

2010-04-19 Thread lekkie
He didnt leave his contact info in here. Can help with that? kr. Claus Ibsen-2 wrote: > > Hi > > Christian Mueller developed and contributed this component to Apache. > Maybe try get in touch with him. > > > > On Thu, Apr 15, 2010 at 7:32 PM, iocanel > wrote: >> >> >> lekkie wrote: >>> >

Re: Split Body in Spring DSL

2010-04-19 Thread Olivier Roger
Hello Claus, I was using the tokenize on "]," but some brackets from the toString representation where still present in the result, which is normal. Using ${body} seems indeed to be what I was looking for. However, at the moment when I used it, the splitter return 1 message per cell instead of p

Re: unmarshal gzip and streaming

2010-04-19 Thread Claus Ibsen
Hi Just ensure the BODY on the Message is an InputStream which can read from gzip files. Then that streaming mode in Splitter should use it as is. On Fri, Apr 16, 2010 at 1:24 PM, lefdev wrote: > > how can i make the following route to work with gzipped files without loosing > the streaming ad