Re: cxf rest service disappears with camel 2.8.0

2011-08-09 Thread Mirko Caserta
Hi Willem, yes, I'm using the CXF servlet transport. Here is my web.xml: http://pastie.org/2343749 Thanks, Mirko. On Tue, Aug 9, 2011 at 6:14 AM, Willem Jiang wrote: > Hi Mirko, > > Thanks for reporting this. It is looks like the CXF bus is created > differently between Camel > > When you impor

Re: Overriding ScheduledPollConsumer

2011-08-09 Thread Claus Ibsen
Hi Ah the issue is when Camel is starting, as the pollEnrich will cause the file consumer to start polling. After the first message has been processed, the pollEnrich will only run per demand. I have logged a ticket to track this, so on startup the file consumer will not be polling https://issues

Re: Split large file into small files

2011-08-09 Thread jeevan.koteshwara
Christian, thanks for the response. I have few doubts based on my requirement. I am trying to develop a custom splitter, a kind of bean, which would handle splitting based on number of lines in the input file (requirement is to split a single input file into multiple output files bas

Re: Overriding ScheduledPollConsumer

2011-08-09 Thread shekher awasthi
Thanks Claus On Tue, Aug 9, 2011 at 1:44 PM, Claus Ibsen wrote: > Hi > > Ah the issue is when Camel is starting, as the pollEnrich will cause > the file consumer to start polling. After the first message has been > processed, the pollEnrich will only run per demand. > > I have logged a ticke

Re: AMQ PooledConnectionFactory configured in Java always going to localhost:61616

2011-08-09 Thread Claus Ibsen
On Mon, Aug 8, 2011 at 4:32 PM, Tim wrote: > You have to set the brokerURL on the PooledConnectionFactory. > Regardless what I think ActiveMQ should report some kind of exception stating the configuration is wrong. Jason I think you should create a JIRA ticket in ActiveMQ. You are welcome to loo

Re: Split large file into small files

2011-08-09 Thread J.S. Mammen
Try spliting the file by streaming and closing the file based on byte count or on number of line feed without loading the file content into memory, and also you should end the route here and let the new route process the split files. This way you dont have to return anything. > > > -Original M

Question regarding File Component

2011-08-09 Thread shekher awasthi
Hi, After going through what all was available about File component ,i still have one query regarding the working of this component i have configured route something like this from("file:data/csv?fileName=input-customer3.csv").to("file:data/csvoutput") since i have specified specific file name

Re: Question regarding File Component

2011-08-09 Thread Claus Ibsen
On Tue, Aug 9, 2011 at 12:10 PM, shekher awasthi wrote: > Hi, > > After going through what all was available about File component ,i still > have one query regarding the working of this component > > i have configured route something like this > > from("file:data/csv?fileName=input-customer3.csv")

Re: Multiple Expressions in Spring XML

2011-08-09 Thread Claus Ibsen
On Mon, Aug 8, 2011 at 9:32 PM, David Tombs wrote: > On Mon, Aug 8, 2011 at 10:06 AM, Claus Ibsen wrote: >> On Mon, Aug 8, 2011 at 3:38 PM, David Tombs wrote: >>> Hi all, >>> >>> Is it possible to use multiple Expressions in the Spring XML >>> element? I'd like to do the equivalent of: >>> >>>

camel Error Handling

2011-08-09 Thread aum.struts
Hi All, i am new to camel and just playing around with this.i was trying to understand how error handling is working around. i have the following case i am picking csv from a location and using build in parsing converting it to java object and in my Bean class i am throwing "IllegalClassFormatExce

CAMEL SMTP Mail Componenet Issue on 64 Bit Windows 2008 Server

2011-08-09 Thread ravi
I am trying to use following Camel SMTP end point URI to send mail using gmail: smtp://smtp.gmail.com:587?password=xyz&username=a...@gmail.com It is giving me error: Error in sending email, msg: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command

Tracer set to WARN breaks app

2011-08-09 Thread Mirko Caserta
Hi there, I have a weird issue regarding the Tracer. The problem my client is reporting is that switching the logger on "org.apache.camel.processor.interceptor.Tracer" from INFO to WARN breaks the application. I know it sounds weird but I've been able to reproduce the issue in my environment. I a

Re: Tracer set to WARN breaks app

2011-08-09 Thread Freeman Fang
Hi, My gut feeling is that the input stream was consumed differently with different log levels. You may need add streamCaching="true" to your router DSL. Freeman On 2011-8-9, at 下午8:43, Mirko Caserta wrote: Hi there, I have a weird issue regarding the Tracer. The problem my client is repor

Re: Split large file into small files

2011-08-09 Thread Claus Ibsen
On Mon, Aug 8, 2011 at 7:29 PM, jeevan.koteshwara wrote: > I am trying to split a large fixed length record file (say 350K records) into > multiple files (each of 100k each). I thought of using > from(src).split().method(MySplitBean.class).streaming.to(destination). But, > this may give memoryprob

Re: Tracer set to WARN breaks app

2011-08-09 Thread Mirko Caserta
Hi Freeman, your gut feeling was right :) Thanks a lot. You guys rock! Mirko On Tue, Aug 9, 2011 at 3:00 PM, Freeman Fang wrote: > Hi, > > My gut feeling is that the input stream was consumed differently with > different log levels. > You may need add streamCaching="true" to your router DSL. >

Re: Stopping a route created using @consume

2011-08-09 Thread Claus Ibsen
On Mon, Aug 8, 2011 at 11:33 AM, Tom Howe wrote: > I have a bean that consumes from a queue a bit like this ... > > @Component > @Scope(value="session") > public class MyConsumer { > >   @Consume(uri = "activemq:myqueue") >   public void process(  @Body String body ) { >   ... >   } > >   public v

Re: Tracer set to WARN breaks app

2011-08-09 Thread Claus Ibsen
On Tue, Aug 9, 2011 at 3:18 PM, Mirko Caserta wrote: > Hi Freeman, > your gut feeling was right :) > > Thanks a lot. You guys rock! > Camel 2.8 onwards will not touch stream messages by the tracer by default. The tracer will use same logic as the log component. However there are options to turn

FileConsumer->MyProducer1->MyProducer2?

2011-08-09 Thread Michael Mertins
Hi all, I am implementing my own camel components: -MyProducer1 should get files from the FileConsumer and wrag them together with another object -MyProducer2 should get the two objects from MyProducer1 and is supposed to do something with both of em Is it enough for MyProducer1 to implement t

Re: FileConsumer->MyProducer1->MyProducer2?

2011-08-09 Thread Jean-Baptiste Onofré
Hi Michael, by careful, in your route, you define bean and not processor. To define processor, you should use: Regards JB On 08/09/2011 03:53 PM, Michael Mertins wrote: Hi all, I am implementing my own camel components: -MyProducer1 should get files from the FileConsumer and wrag

never deliver out-of-order message with resequencer

2011-08-09 Thread David Tombs
Hi all, I am using the resequencer EIP in a situation where it would be better never to pass on a message at all than to process it out-of-order. The EIP, however, will deliver out-of-order messages if the timeout occurs before receiving an expected message. For example, we receive: 1, 2, 3, 4, 5

Re: FileConsumer->MyProducer1->MyProducer2?

2011-08-09 Thread Michael Mertins
Hi JB, then I get this error: Caused by: java.lang.IllegalArgumentException: registry entry called myProducer1must be specified on: process I registered my component here \META-INF\services\org\apache\camel\component\myProducer1 Regards, Michael Hi Michael, by careful, in your route, you

Re: cxf rest service disappears with camel 2.8.0

2011-08-09 Thread Achim Nierbeck
2011/8/9, Mirko Caserta : > Hi Willem, > yes, I'm using the CXF servlet transport. > > Here is my web.xml: http://pastie.org/2343749 > > Thanks, Mirko. > > On Tue, Aug 9, 2011 at 6:14 AM, Willem Jiang wrote: >> Hi Mirko, >> >> Thanks for reporting this. It is looks like the CXF bus is created >> d

Re: cxf rest service disappears with camel 2.8.0

2011-08-09 Thread Achim Nierbeck
excuse my latest mail, hit the wrong button :( 2011/8/9, Achim Nierbeck : > 2011/8/9, Mirko Caserta : >> Hi Willem, >> yes, I'm using the CXF servlet transport. >> >> Here is my web.xml: http://pastie.org/2343749 >> >> Thanks, Mirko. >> >> On Tue, Aug 9, 2011 at 6:14 AM, Willem Jiang >> wrote: >>

Re: Split large file into small files

2011-08-09 Thread jeevan.koteshwara
Thanks Calus. Now, I got a picture how to handle the split according to my requirement. As you suggested, I should use a custom Iterator, something like below one. http://www.ecreate.co.uk/pages/inputStreamIterator.php -- View this message in context: http://camel.465427.n5.nabble.com/Split-l

Re: CAMEL SMTP Mail Componenet Issue on 64 Bit Windows 2008 Server

2011-08-09 Thread devrant devrant
Hi Ravi, Try using smtps:///smtp.gmail.com:587... instead of your current url (notice protocol: smtps instead of smtp). Hope it helps. Regards, Christopher http://coders-unite.blogspot.com On Tue, Aug 9, 2011 at 8:01 PM, ravi wrote: > I am trying to use following Camel SMTP end

Camel Splitter with Xpath recognizes namespace, but returns null

2011-08-09 Thread klua
Hi, I am using Camel's Spring DSL, to write a simple application, that takes xml, and splits it based on the xpath. It should be pretty straightforward; there is only one extra step that I have, which is declaring a namespace. The problem is that although xpath recognizes the element that I'm look

Re: choice when check BodyType:null, Body:null

2011-08-09 Thread Tereza Nedelescu
Hi, I am trying to modify the contents of a file using a Camel processor in a Camel component that I created. When I do the routing from one file to another using my component, it works. However, when trying to modify the contents of the file using the processor and putting the modified text in t

Re: Camel Splitter with Xpath recognizes namespace, but returns null

2011-08-09 Thread Jean-Baptiste Onofré
Hi, could you try with a different xpath: //bar AFAIR, xpath can ignore the namespace. Regards JB On 08/09/2011 07:57 PM, klua wrote: Hi, I am using Camel's Spring DSL, to write a simple application, that takes xml, and splits it based on the xpath. It should be pretty straightforward; ther

Re: choice when check BodyType:null, Body:null

2011-08-09 Thread Tereza Nedelescu
I think the problem is caused by this line: Exchange inExchange = e4.createExchange(); createExchange() creates a new exchange which is null, and what I want is to get the message contents from the endpoint e4, and then modify them. How could I do that ? -- View this message in context: http:

Re: choice when check BodyType:null, Body:null

2011-08-09 Thread Mirko Caserta
I've never implemented a component myself, but I think you should override the PollingConsumer implementation of your file component if you want your component to be able to manipulate the exchange's contents. In your code your are simply creating a new blank exchange (which by default has no body

TypeConverterLoaderException in WebApplication on ContextLoad

2011-08-09 Thread shekher awasthi
Hi All, While everything was working fine in standalong java project moment we moved it to webapplication we are facing TypeConverterLoaderException we are using camel 2.8.0 in our web-based application and we have disabled ContextLoading on server startup, so tomcat is getting started with no exc