Re: Null parameters when routing CXFRS endpoints

2010-04-08 Thread jejmaster
Hi Willem, I just used the TestProcessor to see the value of the inMessage.getBody() because even if there's no processor, the parameters really gets null when routed. I am digging the code right now at CxfRSProducer. And it seems that the problem is in the Reflection part in the method invokePr

Re: New Suggested Feature For Mina/Netty

2010-04-08 Thread Ashwin Karpe
Hi, Could you add suggestions and request for new features in the Camel Jira https://issues.apache.org/activemq/secure/Dashboard.jspa https://issues.apache.org/activemq/secure/Dashboard.jspa This way it can be tracked and used to improve camel capabilities in days to come. Thanks and keep the

Re: Make TrustManager Optional When Using SSL For Netty

2010-04-08 Thread Ashwin Karpe
Hi, I have created a patch and made the Keystore Format and Security Provider configurable. Please check out the Jira Issue in my previous email Cheers, Ashwin... Gareth Collins wrote: > > Hello, > > Would it be possible to make the TrustManager optional for Netty SSL > support? I made a c

Re: How to change java application into Enterprise Integration Pattern

2010-04-08 Thread Claus Ibsen
Hi Looks like the pipes and filters EIP pattern http://camel.apache.org/pipes-and-filters.html On Thu, Apr 8, 2010 at 4:19 PM, Harbeer Kadian wrote: > > Hi, > > I have a class, which contains a java object(say message which I need to > transmit). > This class is present in an OSGI Bundle named

Re: onException handling

2010-04-08 Thread Claus Ibsen
Hi Try with 2.3-SNAPSHOT. I recall some issue with the Spring XML and with at route scope. The Java DSL should work afair. On Thu, Apr 8, 2010 at 9:07 PM, dnn wrote: > > I am trying to use global onException handling with a transacted route. > According to the everything I've read, the follow

Re: Mina blows up

2010-04-08 Thread Claus Ibsen
You uri is wrong. You can only have 1 ? in the ur. It should be &textline=true. On Thu, Apr 8, 2010 at 9:14 PM, Andrew Chandler wrote: > Is there anything wrong with this definition: > from("direct:rcv").to("mina:tcp://" + pingResponseHost +":" + > pingResponsePort + "?timeout=30&transferExc

Re: Null parameters when routing CXFRS endpoints

2010-04-08 Thread Willem Jiang
Hi, Can I see the code that you do in the testProcessor? If you don't set the exchange.outMessage(), you should get the right parameter from the inMessage body. Willem jejmaster wrote: Hello, I am using the Camel 2.3-SNAPSHOT and implementing the CXFRS routing through ProxyClient. I have s

Re: onException handling

2010-04-08 Thread Willem Jiang
Hi, Can you just remove the tag to see if message is printed out ? will set up a new TransactionErrorHandler if I remember right. Willem dnn wrote: I am trying to use global onException handling with a transacted route. According to the everything I've read, the following should print the "

Re: Deploying as web app with jetty endpoint

2010-04-08 Thread Willem Jiang
You need make sure the CamelHttpTransportServle is deployed first, than load the camel context. You can take a look at this example first[1]. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-servlet/src/test/resources/org/apache/camel/component/servlet/web-spring.xml jfaath wr

Re: Make TrustManager Optional When Using SSL For Netty

2010-04-08 Thread Ashwin Karpe
Hi Gareth, Thanks for the feedback... I developed and checked in this component a few weeks ago. I have created a new Jira issue to record this request and will fix these in the coming days. Please find link below https://issues.apache.org/activemq/browse/CAMEL-2625 https://issues.apache.org/a

Null parameters when routing CXFRS endpoints

2010-04-08 Thread jejmaster
Hello, I am using the Camel 2.3-SNAPSHOT and implementing the CXFRS routing through ProxyClient. I have setup my JAXRS Service Class method to accept 2 parameters, a String and an Object. The service is working fine when i am invoking it directly but when i am using the cxfrs camel routing, thes

Make TrustManager Optional When Using SSL For Netty

2010-04-08 Thread Gareth Collins
Hello, Would it be possible to make the TrustManager optional for Netty SSL support? I made a change in my local version of camel-netty and it works for me (file org.apache.camel.component.netty.ssl.SSLEngineFactory - replacement for the original SSLEngineFactory constructor): public SSLEngineFa

Re: Mina blows up

2010-04-08 Thread Andrew Chandler
Well I fixed it I think - our routes weren't expecting to return a response and it ultimately seems to have turned out to the default of sync=true , not sure why the error message in question was what it was but essentially when work after mina was done and transitioned through a splitter etc appar

Re: Deploying as web app with jetty endpoint

2010-04-08 Thread jfaath
This is exactly like what I was looking for. However, I tried out the simple example defined in the link you provided and I keep getting this error: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.apache.

RE: Move to Spring 3.0

2010-04-08 Thread Pitre, Russell
+1 -Original Message- From: Dragisa Krsmanovic [mailto:dkrsmano...@plos.org] Sent: Thursday, April 08, 2010 1:29 PM To: users@camel.apache.org Subject: Re: Move to Spring 3.0 We run our Camel 2.2.0 app with Spring 3.0 (3.0.1 and 3.0.2 now) without problems. On Thu, 2010-04-08 at 00:51

Re: Mina blows up

2010-04-08 Thread Andrew Chandler
Is there anything wrong with this definition: from("direct:rcv").to("mina:tcp://" + pingResponseHost +":" + pingResponsePort + "?timeout=30&transferExchange=false"/*+ "?textline=true"*/); My expectation is that the textline is ignored (commented out) and that I have set a tcp object serialize

onException handling

2010-04-08 Thread dnn
I am trying to use global onException handling with a transacted route. According to the everything I've read, the following should print the "HEY I GOT AN EXCEPTION" message: java.lang.Exception I would imagine that when "som

Re: Mina blows up

2010-04-08 Thread Andrew Chandler
Ok further weirdness - since I'm using tcp and I don't really care if my objects go as text I just wanted a lightweight socket protocol I took the textline bit out of my uri's (should be serialized objects now ) So in watching it worked for a couple of seconds and then it blew up, however when it b

Re: Mina blows up

2010-04-08 Thread Andrew Chandler
Ok I'll look at that but what puzzles me is if each message is sent and is only ever an int,IPADDRESS structure how could it exceed 1024? Or is the buffer length really ALL messages that are pending for work? On Thu, 2010-04-08 at 19:59 +0200, Claus Ibsen wrote: > Hi > > Have you looked at

Re: Mina blows up

2010-04-08 Thread Claus Ibsen
Hi Have you looked at the encorder/decoder max length options. http://camel.apache.org/mina.html Could be that Mina has a default of one of them at 1024. On Thu, Apr 8, 2010 at 7:14 PM, Andrew Chandler wrote: > Hi there folks - hoping you can help me from gaining a permanent dent in > my end

Re: Move to Spring 3.0

2010-04-08 Thread Dragisa Krsmanovic
We run our Camel 2.2.0 app with Spring 3.0 (3.0.1 and 3.0.2 now) without problems. On Thu, 2010-04-08 at 00:51 -0700, umairt wrote: > Hi, > > > I am trying to shift my project(currently using Camel2.2.0 and Spring 2.5) > to spring 3.0. I have changed the spring version to 3 but I am getting the

Mina blows up

2010-04-08 Thread Andrew Chandler
Hi there folks - hoping you can help me from gaining a permanent dent in my end from hitting the wall.We are using Camel for many things but we have setup a dedicate route to a simple standalone process - both ends set up a send and a receive route (different ports) - The route works until it

How to change java application into Enterprise Integration Pattern

2010-04-08 Thread Harbeer Kadian
Hi, I have a class, which contains a java object(say message which I need to transmit). This class is present in an OSGI Bundle named connector. This OSGI Bundle also contains classes need to validate this message. There is another OSGI Bundle which contains a transformer class which can convert

Re: New Suggested Feature For Mina/Netty

2010-04-08 Thread anandsk
I have added improvement request for this feature. you may want to add comments for your specific needs if they are different. https://issues.apache.org/activemq/browse/CAMEL-2624 anandsk wrote: > > I have a similar requirement but only difference is I do have a message to > send but I expect r

bridging binary files over http

2010-04-08 Thread rdomingo
Hello, 1 - I have a http service setup (using camel) http://0.0.0.0:9101/clipboard/download"; /> 2 - When I download a (txt or binary) file directly from this http service, download is ok. 3 - When I add a http bridge between the service and downloader

Re: Configure endpoints in a xml file and routes in another xml file

2010-04-08 Thread usha K.
Hi, I also have the same need for my application but mine is not an web app. can you please let me know how you did it. Thanks. mta38 wrote: > > Hi all, > Is someone known if is it possible to define endpoint in an xml config > file and business route which uses these endpoints in another xml

Re: Move to Spring 3.0

2010-04-08 Thread Norman Maurer
I'm using camel 2.2.0 with spring 3.0.0 without any problems here. Here is the relevant spring config: In my pom.xml I use this: org.apache.camel camel-core 2.2.0 org.apache.camel camel-spring 2.2.0

Re: Disconnect option in Netty component

2010-04-08 Thread Johan Haleby
I'll try to investigate it when I get home from work today. /Johan Claus Ibsen-2 wrote: > > On Thu, Apr 8, 2010 at 10:36 AM, Johan Haleby > wrote: >> >> Hi, >> >> I see that you'll have support for Netty in the next release of Camel >> which >> is excellent. However I'm missing the "disconnec

Re: Disconnect option in Netty component

2010-04-08 Thread Claus Ibsen
On Thu, Apr 8, 2010 at 10:36 AM, Johan Haleby wrote: > > Hi, > > I see that you'll have support for Netty in the next release of Camel which > is excellent. However I'm missing the "disconnect" option that will be > available for the Mina component in 2.3 for the Netty component (at least > when l

Disconnect option in Netty component

2010-04-08 Thread Johan Haleby
Hi, I see that you'll have support for Netty in the next release of Camel which is excellent. However I'm missing the "disconnect" option that will be available for the Mina component in 2.3 for the Netty component (at least when looking at the documentation). This is something that I'd really li

Re: Move to Spring 3.0

2010-04-08 Thread Willem Jiang
Can you create a JIRA with a small test case to show the error? We did run the test with Spring 3.0.0 before Camel 2.2.0 released. BTW, can you try the latest released Spring 3.0.2.RELEASE to check if the error still there? Willem umairt wrote: Hi, I am trying to shift my project(currently

Re: Need help developing camel based application

2010-04-08 Thread srinidandi
Thanks for the information willem.jiang wrote: > > Hi, > > If you are not a big fan of Spring, you can get full of the control of > the route with the Java DSL. > In most case, the Spring DSL can do the same thing as Java DSL does. > But if you have some customer configuration to set it should

Move to Spring 3.0

2010-04-08 Thread umairt
Hi, I am trying to shift my project(currently using Camel2.2.0 and Spring 2.5) to spring 3.0. I have changed the spring version to 3 but I am getting the following stack trace: orCaused by: java.lang.NullPointerException at org.apache.camel.impl.ProducerCache.(ProducerCache.java:52)

Re: Aggregator2: completion size using expression doesn't work?

2010-04-08 Thread Claus Ibsen
Hi Okay I have had a look. You need to enable eagerCheckCompletion() to test for the header in the INCOMING message. Then it should work. Otherwise it will check for the header in the AGGREGATED exchange and since its being _grouped_ that means it cannot find the header. On Wed, Apr 7, 2010 at

Re: ActiveMQ component and StreamMessage / BlobMessage

2010-04-08 Thread Norman Maurer
Ok will try to get my hands dirty then ;) Bye, Norman 2010/4/8 Claus Ibsen : > On Thu, Apr 8, 2010 at 9:27 AM, Norman Maurer > wrote: >> So is this something you would be interesting in ? If so I would try >> to write a patch within the next week. >> > > Yeah we love contributions > http://came

Re: ActiveMQ component and StreamMessage / BlobMessage

2010-04-08 Thread Claus Ibsen
On Thu, Apr 8, 2010 at 9:27 AM, Norman Maurer wrote: > So is this something you would be interesting in ? If so I would try > to write a patch within the next week. > Yeah we love contributions http://camel.apache.org/contributing.html You may have to do the AMQ special thing in the activemq-cam

Re: ActiveMQ component and StreamMessage / BlobMessage

2010-04-08 Thread Norman Maurer
So is this something you would be interesting in ? If so I would try to write a patch within the next week. Bye, Norman 2010/4/7 Norman Maurer : > Maybe I should stopping getting on your nerves and just contribute a patch ;) > > Bye, > Norman > > > 2010/4/7 Norman Maurer : >> Hi Claus, >> >> thx