Connect JMS over SSH Tunnel

2015-05-21 Thread Copernico
Hi, I need to send some messages to an openmq queue on a remote host. The problem is that the host is behind a firewall and the only way to connect is over ssh. That machine has a MySQL server installed. I can connect with it with putty doing a Port Forwarding to my local machine, so i can

Re: Connect JMS over SSH Tunnel

2015-05-21 Thread Doug Douglass
I'd setup the ssh tunnel outside of Camel, then have your Camel JMS URI use the localhost/port that's being forwarded. That way Camel has no knowledge of the port forwarding. Perhaps try something like sshuttle https://github.com/apenwarr/sshuttle to provide a simple VPN of sorts via ssh. I've

Re: Connect JMS over SSH Tunnel

2015-05-21 Thread François LIOT
Hi, Apache Mina is a full implementation of SSH. Somebody already document the same issue than yours : http://stackoverflow.com/questions/8279426/how-tunnel-all-rmi-traffic-over-ssh I did use Mina as SSHd server, but I didn't test it for port forwarding, Nevertheless I believe it's the most

Re: Connect JMS over SSH Tunnel

2015-05-21 Thread Doug Douglass
François makes a good point since your scenario is a desktop app. On Thu, May 21, 2015 at 11:30 AM, François LIOT francois.l...@poplidays.com wrote: Hi, Apache Mina is a full implementation of SSH. Somebody already document the same issue than yours :

Connect JMS over SSH Tunnel

2015-05-21 Thread Copernico
Hi, I need to send some messages to an openmq queue on a remote host. The problem is that host is behind a firewall and the only way to connect is over ssh. That machine has installed a MySQL server. I can connect it with putty doing a PortForwarding to my localmachine, so i can connect to remote

How can i use CDI with the Camel Context

2015-05-21 Thread kikou1984
Hi, I m using camel version 2.10.0. In my route spring XML , i want to use the CamelContextCDI instead of the DefaultCamelContext. How can i do it ? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Problem with swagger in the camel-example-servlet-rest-tomcat

2015-05-21 Thread Christina Lin
I was using the latest snapshot. After your replay, I checked again with the 2.15.x branch, and it worked!!! Thanks! -Christina -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-swagger-in-the-camel-example-servlet-rest-tomcat-tp5767376p5767381.html Sent from

Re: How can i use CDI with the Camel Context

2015-05-21 Thread kikou1984
I have tried to add to the tag beans. xsi:schemalocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd; and i add @Named to the Interface DateBusinessManager. Named public interface DateBusinessManager { /** * * * @param

Re: Problem with swagger in the camel-example-servlet-rest-tomcat

2015-05-21 Thread Claus Ibsen
Hi What version of Camel do you use? And what JDK version? On Thu, May 21, 2015 at 12:48 PM, Christina Lin c...@redhat.com wrote: I wanted to see how swagger works, but is having trouble with the camel-example-servlet-rest-tomcat quickstart example. After packaging it, and placing the WAR

Re: How can i use CDI with the Camel Context

2015-05-21 Thread Claus Ibsen
Hi No camelContext is a spring based CamelContext. On Thu, May 21, 2015 at 11:36 AM, kikou1984 hichem.ouesl...@atos.net wrote: Hi, I m using camel version 2.10.0. In my route spring XML , i want to use the CamelContextCDI instead of the DefaultCamelContext. How can i do it ? beans

Problem with swagger in the camel-example-servlet-rest-tomcat

2015-05-21 Thread Christina Lin
I wanted to see how swagger works, but is having trouble with the camel-example-servlet-rest-tomcat quickstart example. After packaging it, and placing the WAR file in Tomcat 8.0.22. I was able play with the rest service without any problem. BUT, I was not able to get the

is it dependency issue?

2015-05-21 Thread nono
when i try to start bundle, i got below error. is it dependency issue? Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create component: file at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:322) at

Re: How can i use CDI with the Camel Context

2015-05-21 Thread kikou1984
Hi Claus, So how i can make CDI with Spring Context ? Thxs. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-i-use-CDI-with-the-Camel-Context-tp5767375p5767380.html Sent from the Camel - Users mailing list archive at Nabble.com.

LoadBalancer seems to be doing some sort of throttling

2015-05-21 Thread apara
I am using Camel 2.15.1. I have a route defined like this: from( vmAsyncEndpoint //vm://async.handle.event?blockWhenFull=truesize=4 ) .routeId(vmAsyncEndpoint.getEndpointUri()) .startupOrder(order()) .loadBalance() .sticky(

RE: camel-parent pom properties

2015-05-21 Thread Ronny Aerts
Hello, This works very fine for everything which has to do with camel (as groupid) itself but not for dependencies with other groupid like the one below: dependencies dependency groupIdorg.springframework.ws/groupId artifactIdspring-ws-security/artifactId version${spring-ws-version}/version

Re: camel sql outputType=SelectList is giving errors

2015-05-21 Thread Henryk Konsek
Hi, Option outputType has SelectList by default. Does it mean that your endpoint always fail or only when you set outputType=SelectList explictly. Cheers. czw., 21.05.2015 o 10:51 użytkownik chaituu yarlagadd...@gmail.com napisał: using 2.14.1 version... route id=route1 from

Re: Problem with swagger in the camel-example-servlet-rest-tomcat

2015-05-21 Thread Claus Ibsen
Hi Okay thanks. There has been some swagger improvements for 2.16. So maybe it broke something in the example. You are welcome to log a JIRA so we wont forget about this - as its maybe sometimes a bit easy to not test the example but all the unit tests works. http://camel.apache.org/support On

On exception notify first error.

2015-05-21 Thread Cecilio Alvarez
Hello, is there a way on the on exception or in the error handler to send a message one time and keep retrying? Something like this but with error handler or on exception. route from uri=activemq:in/ doTry throw new=sql.Exception/

Re: How can i use CDI with CamelTestSupport

2015-05-21 Thread Willem Jiang
I just added a comment on your issue. I think you may need to extends the CdiTestSupport instead of CamelTestSupport. The key point is find the right CdiContainer to use, as I didn't see the code of EJBContainerRunner, you may need to the work there if the CdiTestSupport doesn't work. --

Re: onException query for sending error message to queue before starting retry

2015-05-21 Thread Andrew Block
Vanshul, Take a look at the onRedelivery (or onRedeliveryRef for spring/blueprint) that can be applied to either onException [1]  or errorHandler [2]. It allows for for a custom processor to be executed prior to redelivering a message. You should be able to configure a ProducerTemplate to send

Re: On exception notify first error.

2015-05-21 Thread Andrew Block
Hi, You can use a combination of the retryWhile property of onException to allow for indefinite retrying. In addition, you can also use the onRedelivery property to define a custom process to perform action prior to the redelivery of a message. A ProducerTemplate can be used to send to a

Re: LoadBalancer seems to be doing some sort of throttling

2015-05-21 Thread apara
So, it turns out that the processing of simple expressions is apparently somewhat slow (my camel routes are currently handling 2300 events/second) so each message is taking milliseconds to get through the pipelines. If the load balancing calculation takes too long it cannot keep the pipelines

Re: LoadBalancer seems to be doing some sort of throttling

2015-05-21 Thread Claus Ibsen
Hi Yes your custom code is compiled java code, where as when using simple with an OGNL expression, eg body.partionKey then Camel need to invoke the method using reflection and hence the overhead. You can likely use groovy or mvel as the expression and do some code like:

Using shared Netty configuration with Rest DSL

2015-05-21 Thread Alex Soto
I would like to reuse the same Netty Service that is configured outside of the Rest DSL. For example I have the Netty and SSL configuration: camel:sslContextParameters id=sslParams camel:keyManagers keyPassword=changeit camel:keyStore resource={{env:HOME}}/localhost.jks password=changeit

Re: is it dependency issue?

2015-05-21 Thread Shemeem
Hi, What is your OSGI container? Is it Karaf? If so, you have to install camel in karaf (even though, you have provided dependency in camel ) with the below command : karaf@root features:chooseurl camel 2.12.1 (provide the version you want) karaf@root features:install camel These camel

onException query for sending error message to queue before starting retry

2015-05-21 Thread Vanshul . Chawla
Hello, We have a requirement wherein we need to perform a retry for 10 times with gap of 30 min. If retries fail, then we need to put message in error queue. Issue here is operations team will be unaware of any issues will 5 hrs 30 min. Is there a way OnException puts one error message before