scp and private key verification.

2012-05-02 Thread mohammadwrk
Camel uses JSCH (http://www.jcraft.com/jsch/) library to support both SCP and SFTP. This library supports public-private key based authentication using com.jcraft.jsch.JSch.addIdentity method. However looks like Camel only supports this feature for SFTP component (http://camel.apache.org/ftp2.html)

Dynamic source endpoint

2012-05-02 Thread agustino
Hi All, I have a case like this: - retrieve source from database (it will return multiple values) - read the file from the sources - route the message to queue. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-source-endpoint-tp5682267.html Sent from the Camel -

Re: Inserting rules dynamically into camel-drools component

2012-05-02 Thread Claus Ibsen
On Thu, May 3, 2012 at 1:34 AM, soumya_sd wrote: > Is there a way to inserting (and removing) rules at runtime using the > Drools-Camel component ? According to these two you can only insert facts. > > https://issues.jboss.org/browse/JBRULES-2804 > > https://github.com/droolsjbpm/droolsjbpm-integr

Re: Handling unsuccessful Session.send in Quickfix component

2012-05-02 Thread Claus Ibsen
On Thu, May 3, 2012 at 12:14 AM, Hadrian Zbarcea wrote: > Is there some code you wanted to show that's missing? > Hadrian > Ah looks like he posted a html mail from Nabble, where the code was filtered out on our mailing list. If you click the nabble link you can see the code http://camel.465427.

Load balancer and InOut pattern

2012-05-02 Thread Eugeniu
Hi Is it possible to use a load balancer in request-reply scenarios? I have the following scenario: The first route is exposed as a soap web service to the external applications. That route does some validation and depending on the validation result either throws a WebFault or returns an acknowle

Inserting rules dynamically into camel-drools component

2012-05-02 Thread soumya_sd
Is there a way to inserting (and removing) rules at runtime using the Drools-Camel component ? According to these two you can only insert facts. https://issues.jboss.org/browse/JBRULES-2804 https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel/src/test/java/org/drools/came

Re: Custom Transformation

2012-05-02 Thread Meeraj Kunnumpurath
I think it will be a good idea to relax the restrictions around how custom vocabulary can be introduced into the XML based DSL. For example ability to allow additional JAXB packages to be scanned for model definitions, and also removing the restriction around data format definitions an unmarshal de

Receive SOAP message on a JMS queue and send the response SOAP message to a different JMS queue

2012-05-02 Thread bjacob
Hi Experts - I wanted to receive a SOAP message on a JMS queue and once the message is received, needed to send a response message to a different JMS queue. I'm planning to create a route similar to the following. from("jms:queue:CallBackListNotification.Request") .to("file://data?fi

Re: Handling unsuccessful Session.send in Quickfix component

2012-05-02 Thread Hadrian Zbarcea
Is there some code you wanted to show that's missing? Hadrian On 05/02/2012 11:18 AM, Marek Strejczek wrote: My use case requires to know whether the FIX message was sent successfully to the counterparty or not. Camel-Quickfix doesn't allow me to obtain this information, as it ignores the result

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

2012-05-02 Thread soumya_sd
I found a fix. However, I still don't completely understand it completely. My assumption was that when the splitResponse() method is invoked by Camel it is passed a GooglePlaceResponseObject. However, looks like that's not the case. Because when I changed the input to splitResponse() to an Exchan

Re: JAXB classpath issue with camel-jaxb 2.9.2

2012-05-02 Thread Christian Müller
How does your routes look like? What's about defining the dependency to camel-jaxb in both projects (instead of jaxb-api and jaxb-impl)? Best, Christian On Tue, May 1, 2012 at 7:24 PM, gehdan wrote: > Hi there, > > when using camel-jaxb 2.9.2 on Java 6 (1.6.0_32) I get this Exception: > > Excep

Re: Message loss with transacted CXF consumer

2012-05-02 Thread Daniel Kulp
Can you try setting the property: org.apache.cxf.interceptor.USE_ORIGINAL_THREAD, "true" on the CXF endpoint and seeing if that helps? That should keep the request on the original thread and should allow the stack for that to unwind on an exception. Dan On Wednesday, May 02, 2012 04:36:35

Re: Problem with Camel,osgi-compendium and mvn camel:run

2012-05-02 Thread ychawla
Hi Dinesh, You will see a similar error if you try to run Camel JUnit tests and are using OSGi for your properties file. To make this slightly less painful, you can put your PropertyPlaceHolder in its own file. For example, this file can be called properties-context.xml http://www.springframewor

Re: camel-jsch in sink mode for one time copy from a remote host using SCP

2012-05-02 Thread mohammadwrk
Thanks for the quick reply. >> Give me one day to put some code together. Looking forward into it. -- View this message in context: http://camel.465427.n5.nabble.com/camel-jsch-in-sink-mode-for-one-time-copy-from-a-remote-host-using-SCP-tp5680887p5680932.html Sent from the Camel - Users mailing

Re: camel-jsch in sink mode for one time copy from a remote host using SCP

2012-05-02 Thread Hadrian Zbarcea
The main issue is that with scp you cannot list the content of a remote file system. It is possible to implement a consumer that can be used in conjunction with a ConsumerTemplate. The protocol is a bit tricky to implement, but too hard. Give me one day to put some code together. Hadrian On

Mistakes in endpoints prevent start of camel context

2012-05-02 Thread Ilger Gerda
Hi all, We have a number of ftp consumer routes that we start based on URLs read from our database. If there's a typo in the URL (e.g. "ftp://localhost::1023";), the whole camelContext won't start. We're using SpringCamelContext. These routes are not essential, we still want our application to

Handling unsuccessful Session.send in Quickfix component

2012-05-02 Thread Marek Strejczek
My use case requires to know whether the FIX message was sent successfully to the counterparty or not. Camel-Quickfix doesn't allow me to obtain this information, as it ignores the result of the Session.send invocation. I think about the following solution: replace in QuickfixjConsumer.sendOutMessa

Re: Invoking a bean returned by a previous bean invocation

2012-05-02 Thread Claus Ibsen
On Tue, May 1, 2012 at 8:11 PM, Purple Tea wrote: > Thank you for your reply. > > Does the simple language also allows us to send multiple method parameters > like the new features offered in the bean binding? > Yes, just provide a method signature such with the parameters separated by comma. The

Re: ExchangePattern.InOut ActiveMQ problem

2012-05-02 Thread Claus Ibsen
On Wed, May 2, 2012 at 4:42 PM, Stefan Burkard wrote: > I think you can use ".setExchangePattern(ExchangePattern.InOut)" > instead of the deprecated ".inOut()" > Yes thats what we favor setExchangePattern to change the pattern from this point forward to(pattern, uri) to use a specific pattern fo

Re: Custom Transformation

2012-05-02 Thread Claus Ibsen
On Wed, May 2, 2012 at 4:36 PM, Raul Kripalani wrote: > Just a quick comment. In my experience I have found data formats to fit in > well with the marshal / unmarshal model where there is a low-level data > format and a high-level object roundtrip, but not so well with high-level > ad-hoc transfor

Re: calling external service using cxf

2012-05-02 Thread Stefan Burkard
I think you could define a CXF endpoint bean in spring configuration (see this page for an example: http://camel.apache.org/cxf-example.html) and then use it like .to("cxf:bean:yourBeanId") Stefan On Wed, May 2, 2012 at 4:15 PM, Marco Westermann wrote: > Hi, > I try to call an external web serv

Re: ExchangePattern.InOut ActiveMQ problem

2012-05-02 Thread Stefan Burkard
I think you can use ".setExchangePattern(ExchangePattern.InOut)" instead of the deprecated ".inOut()" Cheers Stefan On Wed, May 2, 2012 at 2:22 PM, frankie_hr wrote: > Hi All, > > I have an issue with returning an object back to the caller while using the > ProducerTemplate.requestBody() method

Re: Custom Transformation

2012-05-02 Thread Raul Kripalani
Just a quick comment. In my experience I have found data formats to fit in well with the marshal / unmarshal model where there is a low-level data format and a high-level object roundtrip, but not so well with high-level ad-hoc transformations. If you look at the DataFormat interface, you'll see w

calling external service using cxf

2012-05-02 Thread Marco Westermann
Hi, I try to call an external web service using camel-cxf. I tried it this way and it works: http://pastebin.com/nNv6MUAt. Now I wonder if there is a better way to supply the params to the service. Do I have to build the request-xml by myself or is there a better way? e.g. setting a specifi

Re: Custom Transformation

2012-05-02 Thread Claus Ibsen
On Wed, May 2, 2012 at 4:08 PM, Meeraj Kunnumpurath wrote: > Thanks Claus. > > So do I defined the custom data format as a Spring bean refer to it from > the unmarshal XML element. Or do I need to use setDataFormatResolver on > CamelContext? > Yes just refer to it's spring bean id name. You can

Re: Custom Transformation

2012-05-02 Thread Meeraj Kunnumpurath
Thanks Claus. So do I defined the custom data format as a Spring bean refer to it from the unmarshal XML element. Or do I need to use setDataFormatResolver on CamelContext? Thanks Meeraj PS: BTW just got the book, it rocks :) On Wed, May 2, 2012 at 1:44 PM, Claus Ibsen wrote: > On Wed, May 2,

Re: Java heap space issue with Aggregation

2012-05-02 Thread Claus Ibsen
Hi Whatever you do with the aggregator is that it holds the aggregated data in memory, so you need to be able to store that in memory. You could use a persistent repository, and use the claim check EIP pattern and only store "tokens" to the actual data which is stored offline (eg not in memory) fo

Re: Custom Transformation

2012-05-02 Thread Claus Ibsen
On Wed, May 2, 2012 at 12:04 PM, Meeraj Kunnumpurath wrote: > Hi, > > I have a need to apply custom transformation using a third party library. > My plan is to write a new data format. However, I am not sure whether it is > the right component for me, as the need is to have one transform method, >

Re: SNMP traps - missing information in the Camel message?

2012-05-02 Thread Claus Ibsen
Hi Welcome on the ride. I suggest If you can then dive into the source code of camel-snmp and see if there is something wrong / problem. Camel uses a 3rd party framework for the SNMP (snmp4j), so it may also be a issue with that, or a configuration issue etc. You may also try to upgrade to a new

Re: Question regarding loop in camel

2012-05-02 Thread Hoang-Vu PHUNG
Here is an example that proves my fear. The test failed. package camelinaction; import junit.framework.Assert; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import org.apache.camel.LoggingLevel; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBui

ExchangePattern.InOut ActiveMQ problem

2012-05-02 Thread frankie_hr
Hi All, I have an issue with returning an object back to the caller while using the ProducerTemplate.requestBody() method and ActiveMQ since I upgraded to more recent versions of Camel (2.9.2) and ActiveMQ (5.5.1). I didn't have such problems earlier when using Camel 2.5.0 and ActiveMQ 5.4.2, but

Re: Any idea why this simple splitter is not working in 2.10-SNAPSHOT

2012-05-02 Thread soumya_sd
Willem.Jiang wrote > > Maybe there are some conflict between camel and tomcat share lib. > Can you double check it? > Willem, thanks for responding. Can you give me some idea about where should I check for this conflict ? Thanks again ! -- View this message in context: http://camel.4654

SNMP traps - missing information in the Camel message?

2012-05-02 Thread Jonathan Barber
Hi, I'm evaluating Camel for aggregating and processing events - and it looks like the EIP facilities and components that Camel provide would make my task relatively easy, and I'm really excited about the possibilities Camel offers. Thanks for creating it! I'm starting to create some simple use c

Custom Transformation

2012-05-02 Thread Meeraj Kunnumpurath
Hi, I have a need to apply custom transformation using a third party library. My plan is to write a new data format. However, I am not sure whether it is the right component for me, as the need is to have one transform method, which doesn't fit well with the marshal/unmarshal pair. A second quest

GBs of data from database routed to JMS endpoint

2012-05-02 Thread KJ
This question is also cross posted at http://stackoverflow.com/questions/10278621/apache-camel-gbs-of-data-from-database-routed-to-jms-endpoint I've done a few small projects in camel now but one thing I'm struggling to understand is how to deal with big data (that doesn't fit into memory) when

Re: Passing parameters as headers feels a bit hacky

2012-05-02 Thread Lance Java 2
I'm sure it could be kept generic if every endpoint was able to accept it's own Configuration object (ie FileEndpoint accepts FileEndpointConfig and FtpEndpoint accepts FtpEndpointConfig). 1. By using headers, am I correct to assume that these headers are passed to every endpoint (not just the fil