Re: Apache Mina getting response from remote tcp server

2014-10-10 Thread jkab016
Thanks for your reply. Ideally I realized the code works. The issue is that the server expects more than one exchanges-one to open up the port. So if I fire two messages, I am able to get the right response. the trick is to send two messages in a loop; the first message being a fake message and

Re: Http bridgeEndpoint to proxy a distant server

2014-10-10 Thread Charles Moulliard
Hi Antoine, There is TypeConvertion issue : DEBUG DefaultTypeConverter - Promoting fallback type converter as a known type converter to convert from: org.apache.camel.component.http.HttpMethods to: java.lang.String for the fallback converter:

RE: JSch connection issue with Maverick SSHD server

2014-10-10 Thread Baweja, Keshav
Hello I am using Camel routing library to set up sftp routes to a remote sftp server. Camel user Jsch library (version 0.1.50) for all sftp operations and jsch-zlib (version 1.1.3) for the compression. However I encounter the exception below with this set up. Could someone advise/point to a

Re: Http bridgeEndpoint to proxy a distant server

2014-10-10 Thread antb59
Hello Charles, Thanks for pointing me this error, I missed it ! So it seems that the folllowing line in my route is raising the TypeConvertion issue. to uri=http://distantserver:8012/test/identification.xml; / Could you explain to me why Camel is trying to convert an HttpMethods to a String in

[NOTICE] Potential memory leak issue with Oracle/SUN JVM = 1.7.0_40

2014-10-10 Thread Jean-Baptiste Onofré
Hi all, I analysed an issue that an user faced, and I found a potential memory leak issue related to the JVM version in use. Basically, I saw the problem on the following environment: - OS: Linux RHEL 64 bits (the problem can affect any platform) - JVM Oracle/SUN 1.7.0_25 (default Karaf

Re: Using XML Security Component

2014-10-10 Thread Colm O hEigeartaigh
What does cl.altiuz.reports.KeyAccesor look like? Ultimately, the getKeySelector method of this implementation is returning null. You could look at the test source for some examples:

Camel exec component and return codes from Windows batch files

2014-10-10 Thread Chris Melikian
Hi, I'm trying to execute a .cmd batch file in Camel 2.13.1 on Windows. My endpoint looks like this:- from(direct:start) .to(exec:c:\\batch-commands\\YIELDCurves.cmd?workingDir=c:\\batch-commands\\YIELDCurves.cmd) .log(Exit code for cli execution was [${body.exitValue}]); and I get the

Re: Http bridgeEndpoint to proxy a distant server

2014-10-10 Thread antb59
Hello, After checks, it seems that the trace you mentionned is not an error. If I do a simple proxy just like in this example : http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html route id=Identification from

Camel-Spring, JavaConfig and Constructor-Based Injection

2014-10-10 Thread Ziemer, Tom
Hi, currently I am setting up a new project using Spring and Camel. For a change, I wanted to use JavaConfig instead of the XML and had little problem injecting a ProducerTemplate. I am aiming for ConstructorBasedInjection, and @EndpointInject did not work for me. What I ended up doing is the

Netty blueprint example

2014-10-10 Thread Mark Webb
I am working on creating an OSGI bundle that uses Netty to receive data over a TCP connection. I am stumped as to how and create a list of decoders in the blueprint file. I'm using ServiceMix 5.1.2 and I thought I'd be able to do the following in the blueprint file : util:list id=decoders

Re: Camel exec component and return codes from Windows batch files

2014-10-10 Thread Willem Jiang
camel exec is based on common-exec.  Can you just try the your script just as the tutorial does? [1]http://commons.apache.org/proper/commons-exec/tutorial.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com

Re: Netty blueprint example

2014-10-10 Thread Willem Jiang
I think you need to use  list    ref component-id=decoder1/    ref component-id=decoder2/ /list  to define the list object in blueprint. You can find more information about how to define a list here[1]

Expose route statistics though JMX but not allow to restart the route.

2014-10-10 Thread Amit
I would like expose the route static through JMX but not allow to restart the route for security purpose. -- View this message in context: http://camel.465427.n5.nabble.com/Expose-route-statistics-though-JMX-but-not-allow-to-restart-the-route-tp5757488.html Sent from the Camel - Users

Re: Http bridgeEndpoint to proxy a distant server

2014-10-10 Thread Charles Moulliard
Hi Antoine, Add a beanProcessor (where in the code you can put a breakpoint) after the HTTP endpoint calling your service and before the transform so you will be able to check the objects present in the exchange. Regards, On Fri, Oct 10, 2014 at 1:06 PM, antb59 ant...@gmail.com wrote: Hello,

Re: File operation failed: Broken pipe. Code: 215

2014-10-10 Thread Willem Jiang
Can you check the firewall setting of the box which cannot start the ftp connection? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On October 10, 2014 at

Re: Camel-Spring, JavaConfig and Constructor-Based Injection

2014-10-10 Thread Willem Jiang
You just leverage the feature which is provided by spring. I think it’s OK to do it that way. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On October 10, 2014 at

Re: Rest DSL with Jetty

2014-10-10 Thread Willem Jiang
FYI I already committed a patch into master and camel-2.14.x branch. Please feel free to try the last version of 2.14.1-SNAPSHOT. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang

Re: restlet config doesnt work

2014-10-10 Thread Willem Jiang
Hi, If your route cannot hold the request for enough time, your last request may not be blocked. Please take a look at this question[1] in stack overflow.  [1]http://stackoverflow.com/questions/20632706/apache-restlet-connector-overload -- Willem Jiang Red Hat, Inc. Web: