Re: JCR Consumer?

2012-03-08 Thread Claus Ibsen
Hi Woonsan This sounds like a really good idea. We love contributions, and would look very much forward to your help with this component. http://camel.apache.org/contributing.html I like the fact if the uri can be the same / almost the same. Also when registering listeners in JCR, then remember

Re: FTP File Move opeartion post creation

2012-03-08 Thread Claus Ibsen
Hi On Thu, Mar 8, 2012 at 11:22 PM, byoung4877 wrote: > Not sure if this is redundant to ask, but can I use placeholders within the > ftp component? > (ie uri="sftp://${username}@${host}:${port}${directory}?password=${password}"/> > > I've been trying to get this to work in my spring camel conte

JCR Consumer?

2012-03-08 Thread Woonsan Ko
Hi, I tried to use jcr component as consumer, expecting jcr observation event listener like behavior, but I realized that it's not supported yet. The current jcr component supports producer only. So, I'm considering to implement JcrConsumer and possibly contribute it in a new CAMEL JIRA issue l

Re: Apache Camel >> Netty

2012-03-08 Thread sambardar
Yes, the issue was related to Context not up and now it works fine. I have a need to create a binary stream over the TCP connection. Means , in client server mode, I want to send a message to the server(that will run on a particular ip/port) over TCP socket to say "start" and then server should sta

Testing Camel CXFRS Routes

2012-03-08 Thread GPRSLyons
Gents- I am trying to test a camel CXFRS endpoint route and getting the following *trace*... org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: Hello World] at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(Obje

Re: Problem with consumerTemplate and transacted (activeMq) routes

2012-03-08 Thread Christian Müller
Because it's not fixed in ActiveMQ 5.5-SNAPSHOT and also not fixed in 5.6-SNAPSHOT, the issue must still open. I run the unit test with these versions and it still failed... Best, Christian On Wed, Mar 7, 2012 at 10:39 PM, Claus Ibsen wrote: > On Wed, Mar 7, 2012 at 8:06 PM, Babak Vahdat > wro

Re: FTP File Move opeartion post creation

2012-03-08 Thread byoung4877
Not sure if this is redundant to ask, but can I use placeholders within the ftp component? (ie ftp://${username}@${host}:${port}${directory}?password=${password}"/> I've been trying to get this to work in my spring camel context to no avail... -- View this message in context: http://camel.465427

Re: Apache Camel >> Netty

2012-03-08 Thread Ashwin Karpe
Hi, Do you have a Netty consumer or for that matter any application listening on the host/port. The trouble is that you are staring a Producer in a non-lazy mode and it tries to establish a connection with the server that is not listening on the host/port at the time. If you are rolling your own

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-08 Thread Claus Ibsen
Hi Read the java doc of the consumerTemplate http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ConsumerTemplate.html You need to done the UoW on the exchange. On Thu, Mar 8, 2012 at 7:04 PM, Aida wrote: > Hi all. > > I am using the FTP component (Camel 2.9.0) and a Con

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-08 Thread Ashwin Karpe
Hi, Can you please provide further details such as - Camel version - Use-case details (Camel route details and where/how the consumer Template is being utilized). - Any exceptions being thrown Unfortunately, it is not very straightforward to diagnose the issue based on

[FTP + ConsumerTemplate] Threads remaining alive

2012-03-08 Thread Aida
Hi all. I am using the FTP component (Camel 2.9.0) and a Consumer Template for reading files. The thing is that, while doing stress tests (reading 1100 files in parallel) and using the JConsole, I realised that there are one thread per file that is not killed (in this case, 1100 threads remain al

Re: Need help to load csv into database

2012-03-08 Thread Jason Chaffee
You might want to look at Smooks camel component for this. It supports streaming too. Snooks and Camel are a powerful combination. http://www.smooks.org/mediawiki/index.php?title=Main_Page http://blog.smooks.org/2010/09/23/smooks-camel-integration-revisited/ Jason On Mar 7, 2012, at 11:23 PM

Re: How can Shiro be used with camel to limit access to a route?

2012-03-08 Thread mgiammarco
I have sent a message to the activemq server with shiro token header using the stomp protocol and the header is correctly present in the camel routing of my server. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-Shiro-be-used-with-camel-to-limit-access-to-a-route-tp55

Re: How can Shiro be used with camel to limit access to a route?

2012-03-08 Thread mgiammarco
Can you please show me the shiro.ini config of your example because it is the most difficult thing to understand for me. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-Shiro-be-used-with-camel-to-limit-access-to-a-route-tp5521623p5548182.html Sent from the Camel - User

Re: camel-file : Avoiding CamelLock...

2012-03-08 Thread Claus Ibsen
On Thu, Mar 8, 2012 at 5:32 PM, Craig Taylor wrote: > Thanks Claus, > > That was the problem... I had initially had it but removed it due to the > files disappearing as I didn't have the right options set. > > As an aside, > > Are there any utilities or 3rd party apis to confure Camel uri's more >

Re: Inconsistent onException behaviour

2012-03-08 Thread Claus Ibsen
Hi You have hit a corner issue with onException and handled(true) without any additional processing of the message. But yeah the DLC should not get the message. I will log a JIRA. On Tue, Mar 6, 2012 at 5:11 PM, razvan.ludvig wrote: > The attached unit test ( > http://camel.465427.n5.nabble.co

Re: camel-file : Avoiding CamelLock...

2012-03-08 Thread Craig Taylor
Thanks Claus, That was the problem... I had initially had it but removed it due to the files disappearing as I didn't have the right options set. As an aside, Are there any utilities or 3rd party apis to confure Camel uri's more easily? Eg: CamelUri cUri = new CamelUri(string); cUri.setParam("n

Re: camel-file : Avoiding CamelLock...

2012-03-08 Thread Claus Ibsen
Hi Read the java doc on the consumer template http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ConsumerTemplate.html You need to done the UoW on the exchange when using the receive method. On Thu, Mar 8, 2012 at 4:42 PM, Craig Taylor wrote: > Using 2.8, I'm polling an

Re: Sending multiple messages in Camel

2012-03-08 Thread Ashwin Karpe
Oops... Should have looked at the error closer. Yes it is exactly as Claus mentioned... You have 2 routes consuming from the same Direct endpoint... Strangely in the zip file, I missed this in the code. Are you sure your code is identical to the one in the Zip file.. In any case, you have your a

camel-file : Avoiding CamelLock...

2012-03-08 Thread Craig Taylor
Using 2.8, I'm polling an error directory and am wanting to validate that the original source file exists before displaying prompts to the end user to reprocess it. I'm having an issue in that my directory routine is leaving stray .camelLock files behind. I've looked into the options on file and

Re: Processor to xpath

2012-03-08 Thread byoung4877
Fantastic! That worked. I'm using a .dat flat file. I was assuming I could still use xpath for non-xml messages. Thanks a bunch!! -- View this message in context: http://camel.465427.n5.nabble.com/Processor-to-xpath-tp5545719p5547818.html Sent from the Camel - Users mailing list archive at Nabble

Re: Need help in Camel to send emails

2012-03-08 Thread ven12344
Hi Yogesh, can you tell me the example for the smtp uri. Is there any way that we can specify the body of the email in the smtp "to" uri. I want to keep this as a simple emailing application. We have decided not to write beans for emailing rather do it in the spring format, it is said my our team

Re: streaming of an sql resultset

2012-03-08 Thread Claus Ibsen
Hi The Splitter EIP can run in streaming mode. Then use a custom expression that returns an Iterator, the the splitter will use the iterator to read in a one row at a time. eg return an iterator that walks the ResultSet. On Thu, Mar 8, 2012 at 3:19 PM, Walter De Wit wrote: > Hello, > > I want

streaming of an sql resultset

2012-03-08 Thread Walter De Wit
Hello, I want to use the output of a SQL query as input for my processing where each record of the resultset becomes an exchange. It is like the file: producer in streaming mode. The resultset of the query is too big to load in memory in one List instance. With frameworks like iBatis it is possibl

TypeConverterLoaderException WebApplication on startup (Camel 2.9.1, Jboss 5.1, ActiveMQ 5.5.1)

2012-03-08 Thread ARKHI
Hi, When I'm trying to startup an web application on Jboss, I am receiving TypeConverterLoaderException. Web App: - Apache Camel 2.9.1(OK) - Active MQ 5.5.1(FAIL) Container: App Server: Jboss 5.1 GA (OK) MessageBroker: Active MQ RA 5.5.1 (OK) POM dependencies: org.apache

Re: Camel Properties Component Cache

2012-03-08 Thread Claus Ibsen
Hi I created a ticket to track this https://issues.apache.org/jira/browse/CAMEL-5068 On Tue, Mar 6, 2012 at 9:11 AM, Claus Ibsen wrote: > On Mon, Mar 5, 2012 at 11:09 PM, ychawla wrote: >> Hello All, >> The Camel Properties component is very cool, however there are a few >> enhancements which w

Re: Apache Camel >> Netty

2012-03-08 Thread Claus Ibsen
Hi Have you created a NettyComponent by yourself? If so then it must be started before creating an endpoint. On Wed, Mar 7, 2012 at 10:35 PM, sambardar wrote: > First time Camel User and trying to use Netty Component. I was running some > of the sample code from Netty test in my own classes an

Re: Camel-Twitter component

2012-03-08 Thread Claus Ibsen
The camel-twitter component has *not* been released yet. It will be part of the upcoming Camel 2.10 release. On Thu, Mar 8, 2012 at 1:02 PM, Gnanaguru S wrote: > > Hi > > I went through the camel-twitter component. While adding its dependency in > POM. What version I should use? I am trying to

Camel-Twitter component

2012-03-08 Thread Gnanaguru S
Hi I went through the camel-twitter component. While adding its dependency in POM. What version I should use? I am trying to deploy it to fuse. Anyhow If I am using the camel-twitter for standalone. How to solve this dependency. I have downloaded a jar from a website ( the only website which

Re: Suspend route; what about the current exchange

2012-03-08 Thread Claus Ibsen
On Thu, Mar 8, 2012 at 11:42 AM, jmh wrote: > Hi Claus, > > > suppose I suspend a route starting with a jms consumer > At the same time, I already have 3 messages on the queue on which the > consumer is listening. > > What's happening  when the route is suspended ? > > These 3 messages stay on the

Re: Suspend route; what about the current exchange

2012-03-08 Thread jmh
Hi Claus, suppose I suspend a route starting with a jms consumer At the same time, I already have 3 messages on the queue on which the consumer is listening. What's happening when the route is suspended ? These 3 messages stay on the queue until the route is resumed ? Regards J-M -- View th

Re: Sending multiple messages in Camel

2012-03-08 Thread Claus Ibsen
Hi The direct component only allow 1 route to consume from the same endpoint. So in your case you have 2 or more routes that are from the same direct endpoint. On Wed, Mar 7, 2012 at 6:31 AM, Frank wrote: > Hi Ashwin, > > I am getting the same error after I changed to template.requestBody(). I

Re: Accessing Endpoint within bean

2012-03-08 Thread Willem Jiang
You may consider to inject a ProducerTemplate into t your bean like this[1] Then you can send the message to the JMS endpoint as you want. [1]http://camel.apache.org/pojo-producing.html On Mon Mar 5 08:01:53 2012, Fitzcaraldo wrote: Hi I want to develop a bean that will write a copy of the