Re: NoTypeConversionAvailableException : When using interface as Apache Camel Proxy

2012-12-10 Thread Willem jiang
I just did a simple test[1] based on the description, you need to make sure you setup the message body rightly as a response. Please check out the test case[1] as an example. [1]http://svn.apache.org/viewvc?rev=1420015&view=rev -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat

Re: NoTypeConversionAvailableException : When using interface as Apache Camel Proxy

2012-12-10 Thread Willem jiang
What's the appUtil.extractResponse looks like? Did you try to converter the message body into ServiceProviderRequest? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang

NoTypeConversionAvailableException : When using interface as Apache Camel Proxy

2012-12-10 Thread anand_tech
I have an interface which I am using as Camel Proxy . My route is as below: from("direct:services") .onException(Exception.class) .process(new Processor() { @Override

Re: how to obtain camel-smpp submit message id

2012-12-10 Thread Johanes Soetanto
On 11 December 2012 13:32, Willem jiang wrote: > You should be able to get the message id from the message header with key > "CamelSmppId". > I found you may use camel-spring-integartion to link the your system with > camel. > You should setup an outputChannel to receive the message which as the

Re: Removing invalid endpoints from recipientList

2012-12-10 Thread Willem jiang
The recipientList is more complicate then you thought. It is leverage the multicast to send the exchange to the other endpoints. As the Exception is thrown before the camel have a chance to send the message to the fack endpoint that you created. The RedeliveryErrorHandler just set the FAILURE_EN

Re: Using Dead letter channel with ActiveMQ?

2012-12-10 Thread Willem jiang
You may treat the camel redeliver as a logic level configuration and ActiveMQ redeliver as transport level configuration. They should not affect each other. But if you want to dump the file, you need to consider to setup the camel redelivery policy of it. -- Willem Jiang Red Hat, Inc. FuseSo

Re: how to obtain camel-smpp submit message id

2012-12-10 Thread Willem jiang
You should be able to get the message id from the message header with key "CamelSmppId". I found you may use camel-spring-integartion to link the your system with camel. You should setup an outputChannel to receive the message which as the message header of "CamelSmppId". -- Willem Jiang Red

Re: Making Camel based middle layer available even when services are not

2012-12-10 Thread Willem jiang
Hi, How did you store the xsd file? Did you put it into the application bundle? You may consider to setup the jax-ws-catalog.xml file to mapping the xsd into the class path you have. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.re

Re: JMS Request Reply not working with temporary queues in 2.8 ?

2012-12-10 Thread brking
Thank you for the example. In my case "doesn't work" means requestBody times out, as I mentioned in my post: " If I dont set a replyTo queue, requestBody() times out and I never get a response" I think I may be using the wrong approach. I'm basically trying to follow the guidance on the Camel J

Using Dead letter channel with ActiveMQ?

2012-12-10 Thread dunnlow
I'm using camel 10.0 and activemq 5.5. I currently have a redelivery policy currently configured on my ConnectionFactory that is being used by my ActiveMQ component (using org.apache.activemq.RedeliveryPolicy). However, what I really want to do is set up redelivery in camel so that after the msg

Re: JMS Request Reply not working with temporary queues in 2.8 ?

2012-12-10 Thread Christian Müller
What do you mean with "DOESNT WORK"? You can check out our unit tests at [1] to see how it works.Search for "RequestReply"... I also set up a simple unit test with Camel 2.8.0 and ActiveMQ 5.5.1 and it works: public class CamelActiveMQInOutPerformanceTest extends CamelTestSupport { private i

Removing invalid endpoints from recipientList

2012-12-10 Thread lleclerc
Hi, How can I remove invalid endpoints from a recipientList ? If I use the route from(direct).doTry().recipientList(..).doCatch(). Using the line exchange.getProperty(Exchange.FAILURE_ENDPOINT, String.class); will return me the 'direct' uri and not the failure recipient. Like shown in this sc

Re: camel-quickfix RequestReplyExample java.io.IOException

2012-12-10 Thread Babak Vahdat
Hi I already raised a ticket and fixed this example, so feel free to give it a try: https://issues.apache.org/jira/browse/CAMEL-5861 Babak lawkai wrote > Hi Claus, > > I am using Camel version 2.10.2. > > And the example that I got is provided in the src package (under > components\camel-qui

Jetty component sslContextParametersRef is not working

2012-12-10 Thread dvsridhar
I am using camel version 2.9.1. We have routes that receives the request on camel servlet component and using camel jetty provider option we forward those requests to various REST providers. And also, we have FIPS TLS requirement to satisfy. To satisfy the above stated requirement, I set up the

Problems using ProxyBuilder

2012-12-10 Thread Gert Villemos
Im trying to use the proxy builder but fails. I have defined the interface; *public interface IDataAccess { public List retrieveData(DataRequest request); public List retrieveState(StateRequest request); public OrbitalState getOrbitalState(OrbitalStateRe

RE: Quickfix component OSGI bundle not able to load configuration file

2012-12-10 Thread Mohammad Shadab Ali
h fix engine but getting the success logs. Logs: <20121210-13:04:27, FIX.4.2:EXEC->BANZAI, event> (Session FIX.4.2:EXEC->BANZAI schedule is daily, 00:00:00-UTC - 00:00:00-UTC) <20121210-13:04:29, FIX.4.2:EXEC->BANZAI, event> (Created session: FIX.4.2:EXEC->BANZAI) In fix

New camel component which dynamically adds routes when it starts.

2012-12-10 Thread druminski
Hello, I am working on a new camel component. The Purpose of the new component is to simplify routes like this: from("ref:myQueue") .to("nmr:nmrEndpoint"); from("nmr:nmrEndpoing") .("mock:result"); To route like this: from("nmrref:myQueue?nmr=nmrEndpoint") .to("mock:result

Integrating 3rd party transport library

2012-12-10 Thread domenico
I have now come to a stage where I need to connect my route to a 3rd party transport library. This library consists of 70+ jar files. Soem of them are propietary, some are just standard stuff such as xalan.jar etc. The jar files reference each other and even worse, they use config files, XML files,

Re: Activemq Request reply

2012-12-10 Thread kiranreddykasa
Thanks claus I split the route into two routes. 1 - from("tcp").to("activemq"); 2 - from("activemq").process("processor").to("externaltcp"); It worked. - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/Activemq-Request-reply-tp5723817p5723830.

Re: Activemq Request reply

2012-12-10 Thread Claus Ibsen
On Mon, Dec 10, 2012 at 10:53 AM, kiranreddykasa wrote: > Ya i have two different tcp endpoints > > from("netty:tcp://ip:port?textline=true&sync=true").to("jms").process("processor") > > in this route messages are not even received by the processor, > > but if i change the 'sync' option to 'false'

RE: Quickfix component OSGI bundle not able to load configuration file

2012-12-10 Thread Mohammad Shadab Ali
Thanks for the response Willem. I am using camel 2.9.0. I kept the configuration file in the resources folder of the bundle. Regards, Shadab -Original Message- From: Willem jiang [mailto:willem.ji...@gmail.com] Sent: Monday, December 10, 2012 3:38 PM To: users@camel.apache.org S

Re: Quickfix component OSGI bundle not able to load configuration file

2012-12-10 Thread Willem jiang
Which version of camel are you using ? Did you try to put the configure file into the bundle ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (Engli

Re: Activemq Request reply

2012-12-10 Thread Claus Ibsen
On Mon, Dec 10, 2012 at 10:34 AM, kiranreddykasa wrote: > Hi > > Nope , i m trying to achieve request/reply over tcp and jms. > If you want request/reply over JMS. Then you would need a consumer on the "other side" to pickup the message, process it, and send back a response message with the match

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-12-10 Thread Aida
Hi, I have been investigating more deeply, and I have this stacktrace. The problem is solved for me removing the "disconnect" option from the endpoints consumed by the consumerTemplate (but I add here the stacktrace in case it can help to somebody else). Otherwise, sometimes a NullPointerException

Re: Activemq Request reply

2012-12-10 Thread Claus Ibsen
Hi I assume you want to just send the message to the JMS queue using InOnly (eg not do request/reply over JMS also). And for that you need to look at the event message eip http://camel.apache.org/event-message.html So you can do: .to(ExchangePattern.InOnly, "activemq:personnel.records") On

答复: how to work for redelivery of onException?

2012-12-10 Thread XiaoLi Ding
hi, asynchronization working now. i found the prolem here. should use onException(java.io.IOException.class) .handled(true).maximumRedeliveries(3).redeliveryDelay(2000).asyncDelayedRedelivery() because if no redeliveryDelay,default delay is 0.so no asynchronization. Best regards Xiaol

Activemq Request reply

2012-12-10 Thread kiranreddykasa
Hi i m trying to implement request/response with jms but couln't succeed Here is my route from("netty:tcp://10.44.71.133:8003?textline=true&sync=false") .to("activemq:personnel.records")