Re: Serial communication

2012-12-17 Thread Christian Müller
As Claus mentioned, we have a camel-mina2 component [1] which works with mina 2.x. At present, we don't have a wiki page for this component because this component is still under development (scheduled for refactor). If you have an example how the serial communication works with mina 2.x or if you c

Re: camel-netty restrict connections

2012-12-17 Thread Christian Müller
I think you chooses a suitable solution. Best, Christian On Mon, Dec 17, 2012 at 7:51 AM, kiranreddykasa wrote: > Hi > > What I meant is the second client should be denied by the server, > > I achieved this by checking the no of opened connections in 'channelOpen' > method in 'ServerChannelHandl

Re: How to build an outgoing tcp connection gateway that consumes messages?

2012-12-17 Thread Christian Müller
It could be this one: https://issues.apache.org/jira/browse/CAMEL-1077 I think only voting for it will not cause in a short time solution... ;-) You may consider to work on this issue [1]? We love contributions with unit tests... ;-) [1] http://camel.apache.org/contributing.html Best, Christian

onException

2012-12-17 Thread Jason Chaffee
I am trying to log the exception with an onException. The problem is that I am not seeing the stacktrace, or the body even though I have the parameters set to true. Does anyone see anything in particular that is wrong with what I am doing? onException(classOf[Exception]) .routeId("Excep

Re: onException

2012-12-17 Thread Charles Moulliard
Hi Jason, To be able to answer to your question, we should see the routes that you have created and used in combination with the interceptor (onException). Why do you use (onException(classOf[Exception])) and not onException(Exception.class) ? Your problem could be related to the fact that camel i

Re: onException

2012-12-17 Thread Claus Ibsen
Hi You are handling the exception (eg handled=true) so there is no exception on the Exchange. On the log you need to enable showCaughtException=true, as it can then grab the caused exception that was handled and show it in the log. On Mon, Dec 17, 2012 at 10:02 AM, Jason Chaffee wrote: > I am t

Re: mock.expectedMessageCount(0) resulting in a false positive

2012-12-17 Thread camel.user2.ch
Hi Babak, Thanks for your reply, I stand corrected :-) I was actually looking in the testing section of the book (chpt. 6) and hadn't got down as far as chpt. 9, but it does indeed imply there is a race condition between the route and the main test thread, thanks for pointing me in the right direc

Re: onException

2012-12-17 Thread Jason Chaffee
Because it is in Scala. On 12/17/12 1:07 AM, "Charles Moulliard" wrote: >Hi Jason, > >To be able to answer to your question, we should see the routes that you >have created and used in combination with the interceptor (onException). >Why do you use (onException(classOf[Exception])) and not >o

Re: onException

2012-12-17 Thread Jason Chaffee
Thanks. I thought that might have something to do with it. On 12/17/12 1:08 AM, "Claus Ibsen" wrote: >Hi > >You are handling the exception (eg handled=true) so there is no >exception on the Exchange. >On the log you need to enable showCaughtException=true, as it can then >grab the caused excep

"Discovering the power of Apache Camel" on JavaCodeGeek

2012-12-17 Thread Bernard Ligny
FYI: I wrote a small article about Camel on JavaCodeGeek: http://www.javacodegeeks.com/2012/12/discovering-the-power-of-apache-camel.html It is not really a tutorial; i would say it is more a kind of testimonial... The primary idea is indeed to persuade readers about the benefits of routing engine

Re: "Discovering the power of Apache Camel" on JavaCodeGeek

2012-12-17 Thread Claus Ibsen
Hi Bernard Thanks for sharing your article with us. I took the liberty of adding a link to it from our link collection at http://camel.apache.org/articles It takes a bit to update the static html page, but should be there later today. On Mon, Dec 17, 2012 at 10:45 AM, Bernard Ligny wrote: >

Re: execute an action on exception and use redeçivery Policy

2012-12-17 Thread Eugenio Perrotta Neto
I used, but I could not rethrow the exception to be catched or treated by an onexception clause! On Sun, Dec 16, 2012 at 11:42 PM, Willem.Jiang [via Camel] < ml-node+s465427n5724185...@n5.nabble.com> wrote: > Hi, > > Did you try to use the "try … catch" DSL[1] > > [1]http://camel.apache.org/try

[FTP2] Is it possible to define the authentication method for an sftp endpoint?

2012-12-17 Thread Aida
Hi, I wanted to ask if it is possible to specify the authentication method for a SFTP endpoint (I have seen in the doc that I can specify the cipher but not the auth method). I´m trying to connect to a FTP using SFTP but camel tries it using gssapi-with-mic as authentication method (when I need to

Problem Apache Camel with JSP/Tomcat application

2012-12-17 Thread Meriem
Hi, I'm tring to invoke http endpoint in a JSP web application inside Tomcat server. When I added the CamelHttpTransportServlet servlet to my web.xml file, nothing worked. I'm struggling since a week now. Please, if you have a working web application with apache camel, please send it to me, thank y

TypeConverter issue

2012-12-17 Thread GLIMMERVEEN Arnoud
Hi, I've noticed an issue with TypeConverters while using the XSLT component, though I think it is unrelated to the XSLT component itself. In my route I have an Exchange where the body is a marshaled XML structure (body is of type byte[]) and I send that Exchange to an XSLT endpoint. The XSLT e

Content Enrich Error when upgrading Apache Camel from 2.9.2 to any higher version

2012-12-17 Thread Neo
Hi, My current application is using Apache Camel 2.9.2 and in this application I am using Content Enricher EIP. The following block of code reads a message from JMS Topic , converts it to a Java class and then uses one of the key parameters from the XML message and calls a webservice via HTTP

Re: Problem Apache Camel with JSP/Tomcat application

2012-12-17 Thread Christian Müller
Meriem, you should start here [1]. You didn't provide enough information to allow us to dig into you problem... ... and did you checked the example we provide [2]? [1] http://camel.apache.org/support.html [2] http://camel.apache.org/examples.html Best, Christian On Mon, Dec 17, 2012 at 1:48 PM,

Re: TypeConverter issue

2012-12-17 Thread Christian Müller
is this covered by this JIRA [1]? [1] https://issues.apache.org/jira/browse/CAMEL-5864 Best, Christian On Mon, Dec 17, 2012 at 1:59 PM, GLIMMERVEEN Arnoud < arnoud.glimmerv...@nl.thalesgroup.com> wrote: > Hi, > > I've noticed an issue with TypeConverters while using the XSLT component, > though

Re: JMS persistence options have no effect

2012-12-17 Thread Christian Müller
I tried this too, but it doesn't work neither: public class CamelActiveMQConsumerPersistentIssueTest extends CamelTestSupport { private BrokerService broker; @Before public void setUp() throws Exception { broker = new BrokerService(); broker.setPersistent(true);

Re: JMS persistence options have no effect

2012-12-17 Thread David Karlsen
Haven't followed the thread very close, but be sure to enable explicitQos for these flags to kick in http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/core/JmsTemplate.html#isExplicitQosEnabled() http://camel.apache.org/jms.html 2012/12/17 Christian Müller : > I

Camel failover for Webservice endpoint

2012-12-17 Thread santhosh
I was in interview asked a real time use case for camel. There are three webservice endpoints A ,B ,C .How would achieve failover between these points.I answered I told i will use the load balancer.Dont mind the syntax But the interviewer said he wanted failover strictly like a master and

Re: AWS SQS - 2.10.3 missing functionality

2012-12-17 Thread Bilgin Ibryam
Hi guys, it is my miss to not backport this change, sorry for the confusion. I will do that. Bilgin On 16 December 2012 18:04, Christian Müller wrote: > Sorry for the inconvenience. It's not in Camel 2.10.3 [1] and not in the > camel-2.10.x maintenance branch [2]. > At present, it's only in tru

Re: Content Enrich Error when upgrading Apache Camel from 2.9.2 to any higher version

2012-12-17 Thread Willem jiang
I think this issue is introduced by CAMEL-5171[1] or CAMEL-5172. You should be able to workaround it by marshaling the Java object to String before sending the message to the http endpoint. I just fill a JIRA[3] for it. [1]https://issues.apache.org/jira/browse/CAMEL-5171 [2]https://issues.apach

Proxying of content repository Web Services

2012-12-17 Thread spatil4572
Hi, I am a newbie and need help. We have a client application that communicates with a content management system using content management systems' own web services. We would like to add Apache Camel between the client and content management system. We would like to do this in such a way that ther

Camel Compatibility With Restlet

2012-12-17 Thread neilac333
I am attempting to integrate Camel and Restlet, and I have followed the instructions carefully. However, when I deploy I get this java.lang.NoSuchMethodError: org.restlet.Server.(Lorg/restlet/Context;Lorg/restlet/data/Protocol;I)V at org.apache.camel.component.restlet.RestletComponent.crea

Camel Tracer Component - problem with persistence

2012-12-17 Thread BAnanth
Hello, We are using the Tracer component in out project for monitoring and resending the messages to specific end points. The project is a WAR file that we are deploying in Jboss 7.1.1.Final server. We are using Derby as the DB for persisting the trace messages. *a. We have followed the same appr

Re: Camel Tracer Component - problem with persistence

2012-12-17 Thread Gnanaguru S
Hello Bhavani, I also face the same issue with this. I used Camel-example-tracer. I replaced the in-memory hsql database configuration with derby standalone in persistence.xml. I suspect, the issue could be because of how you converted the osgi project into the WAR/Web-App as you specified.

Re: Camel failover for Webservice endpoint

2012-12-17 Thread Claus Ibsen
Hi I suggest to read the docs about this eip as Camel offers different kinds http://camel.apache.org/load-balancer.html Such as the failover LB. On Mon, Dec 17, 2012 at 7:59 PM, santhosh wrote: > I was in interview asked a real time use case for camel. > There are three webservice endpoints A

RE: TypeConverter issue

2012-12-17 Thread GLIMMERVEEN Arnoud
That's it! Great that it is already addressed. Thanks for looking in to it! Regards, Arnoud. > -Original Message- > From: Christian Müller [mailto:christian.muel...@gmail.com] > Sent: Monday, 17 December, 2012 18:37 > To: users@camel.apache.org > Subject: Re: TypeConverter issue > > i

Configuring (Fallback)TypeConverters

2012-12-17 Thread GLIMMERVEEN Arnoud
Hi, I noticed that the FallbackTypeConverter from the org.apache.camel.converter.jaxb package has a property to control the pretty print behaviour of the JAXB marshaller it uses, but I am wondering how I could modify that property from its default value true to false. Does anyone know how I ca