Re: How to retrieve the Exchange from onMessage of an MDB

2014-01-13 Thread Sanjay Bhattacharya
Instead of an MDB, you can use a bean to process the message. ... And you can define processMessage as: public void processMessage(String body, Exchange exchange) { try { //do your stuff } catch(Exception e) { exchange.getContext().stopRoute("yourRouteId"); } Thanks, Sanjay On Tue, Jan 14, 2

Re: How to retrieve the Exchange from onMessage of an MDB

2014-01-13 Thread Claus Ibsen
MDB you mean from an EJB server? Can you explain a bit more? There is API on CamelContext and whatnot to stop routes. And there is some pointers in this FAQ http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html On Tue, Jan 14, 2014 at 12:44 AM, hooty223 wrote: > I have an MDB that c

HL7 v. 2.7 with mina2

2014-01-13 Thread giandrea77
Hi there, Our customer changed the HL7 message format from 2.3 to 2.7 and I having some issue with new message format. Basically we was able to route message using mina2 protocols in this way: [...] and it worked fine untile the upgrade of message standard. Indeed, changing the format from 2.

Re: camel-example-cafe does not compile

2014-01-13 Thread Claus Ibsen
>From where did you download the source code? On Mon, Jan 13, 2014 at 11:44 PM, doug5791 wrote: > When I follow the readme.txt and try to compile the project this is the error > I receive: > > > > > > -- > View this message in co

Re: camel-example-cafe does not compile

2014-01-13 Thread doug5791
When I follow the readme.txt and try to compile the project this is the error I receive: -- View this message in context: http://camel.465427.n5.nabble.com/camel-example-cafe-does-not-compile-tp5745894p5745912.html Sent from

Re: camel-example-cafe does not compile

2014-01-13 Thread doug5791
To the best of my knowledge I am not behind any proxy, I am just using my home network if that helps. I created a new Maven project and followed the instructions for a route tutorial from the greenpaper found here: GreenPaper

How to retrieve the Exchange from onMessage of an MDB

2014-01-13 Thread hooty223
I have an MDB that calls a function when an error occurs (program errors and not Runtime). When this occurs I would like to stop the route. How can I do this since the Exchange is not available on the onMessage(Message message) call. -- View this message in context: http://camel.465427.n5.nabbl

Using Camel File component to Poll a directory (but not read the files)

2014-01-13 Thread Douglas Slattery
Hi, I'm not sure if this is the correct place to post this, but I stumbled on it looking for an answer to my problem... I have a wierd situation with a Camel route file component where the content was being read and now does not appear to be so. I've observed the situation from the following cod

Handling FailedToCreateProducerException

2014-01-13 Thread ninadmnaik
I have a route which sends a request to a MOM endpoint. Something like: from("direct:serviceRequest").beanRef("serviceName", "methodName"). to("momComponent:" + momServiceDefinitionName). beanRef("serviceName", "methodName"); This route works when the "mom endpoint"

Re: camel-example-cafe does not compile

2014-01-13 Thread Claus Ibsen
Are your computer behind some HTTP proxy or something to reach the internet? If so then you need to configure maven to use the http proxy so it can download the needed JARs http://maven.apache.org/general.html#proxy-needed On Mon, Jan 13, 2014 at 4:48 PM, doug5791 wrote: > I am very new to usi

Re: StreamCaching and multiple context

2014-01-13 Thread Claus Ibsen
I think that delete the file at [2] has been fixed in newer Camel release. So try upgrading. On Mon, Jan 13, 2014 at 6:03 PM, Zulio84 wrote: > Hi, I've the following scenario: > > Inside a CamelContext with enabled streamcaching I've this Route: > > http://activemq.apache.org/camel/schema/spring

RE: call a cxf service from camel that accepts multiple paramter

2014-01-13 Thread reena upadhyay
Hi, I tried the code chunk which you suggested in processor, but I am getting null pointer exception as in my case msgContentsList is coming null : MessageContentsList msgContentsList = exchange.getOut().getBody(MessageContentsList.class); Any solution? > Date: Mon, 13 Jan 2014 20:20:29 +0530

RE: call a cxf service from camel that accepts multiple paramter

2014-01-13 Thread reena upadhyay
Hi, In processor I have tried using setHeader to set the web service parameters :exchange.getOut().setHeader("addressInfo ",addressInfo ); But I am getting below error: IllegalArgumentException occurred invoking method: public final com.connecture.exemplar.entity.LcAddress[] com.sun.proxy.$Proxy

Re: camel-xmljson convert POJO to XML

2014-01-13 Thread Henryk Konsek
Hi Roman, > but the main thing I have to do is to set vaiable *enabled* as > an attribute of *username* and I have no idea how. LibJson [1] (which is used by camel-xmljson [2] under the hood) will convert JSON pair into XML attribute if the name of the attribute starts with @. Your JSON serialize

StreamCaching and multiple context

2014-01-13 Thread Zulio84
Hi, I've the following scenario: Inside a CamelContext with enabled streamcaching I've this Route: http://activemq.apache.org/camel/schema/spring"; streamCache="true"> http://localhost:8903/MyApp"; /> (1) Inside the dispatcherProcessor I analize t

camel-example-cafe does not compile

2014-01-13 Thread doug5791
I am very new to using Apache Camel and Maven, while browsing the examples section of the Camel webpage I found the Café example and decided to open it up and trace through to learn a few things. When I import the Maven project into the IntelliJ IDE and try to "compile" I receive error messages bec

Re: call a cxf service from camel that accepts multiple paramter

2014-01-13 Thread Reji Mathews
U can pass it through exchange headers. Set the values into camel exchange headers .. refer setHeader tag in camel documentation reena upadhyay wrote: >I want to call a cxf service from camel that accepts multiple paramter: >My cxf service which I want to invoke through camel after calling came

Re: Customizing DestinationResolver for JmsComponent got $proxy40 as session

2014-01-13 Thread yxzhao
We found out the class of the proxy object. It is SessionProxy. -- View this message in context: http://camel.465427.n5.nabble.com/Customizing-DestinationResolver-for-JmsComponent-got-proxy40-as-session-tp5745850p5745893.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: call a cxf service from camel that accepts multiple paramter

2014-01-13 Thread Sanjay Bhattacharya
In CreateAddressRequestProcesor::process() you can try to use a MessageContentsList to add parameters that you'll pass to createAddres service like this: MessageContentsList msgContentsList = exchange.getOut().getBody(MessageContentsList.class); msgContentsList.add(addressInfo); msgContentsList.ad

Camel ZooKeeper

2014-01-13 Thread ABouchama
Hello, Is it possible to use the component to camel ZooKeeper to know the value of this path for example : registry/APP_A = DE Is it possible to manage a zookeper instance not embedded in Karaf different than fabric instance via Fuse Fabric :: ZooKeeper Commands (7.2.0.redhat-024) ? Regards

call a cxf service from camel that accepts multiple paramter

2014-01-13 Thread reena upadhyay
I want to call a cxf service from camel that accepts multiple paramter: My cxf service which I want to invoke through camel after calling camel processor looks like: @WebMethodpublic Address createAddress(Address addressInfo ,String adressDomain) I want to invoke createAddress service through c

Memory leak in the language component with Jython

2014-01-13 Thread APinto
Hello all, This applies to the following software versions: Java 1.6.0_45 Apache Camel 2.12.1 Jython 2.5.3 As a consequence of stability problems we had to disable content caching in the language component (contentCache=false). You can find more details here

Re: http4 component: Possible to post message attachments as "multipart/mixed" ?

2014-01-13 Thread OrackBahama
Thank you very much for your quick and helpful information ! -- View this message in context: http://camel.465427.n5.nabble.com/http4-component-Possible-to-post-message-attachments-as-multipart-mixed-tp5745867p5745886.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-xmljson convert POJO to XML

2014-01-13 Thread jamalissimo
Hello guys, I need to cenvert POJO or JSON to XML file. I was sort of able to generate XML with Jackson library, but I would like to use camel-xmljson and I don't know how exactly. I read the documentation at http://camel.apache.org/json.html and I know how to set it up and how to marshal it, but

Re: http4 component: Possible to post message attachments as "multipart/mixed" ?

2014-01-13 Thread barthorre
The http4 component doesn't process attachments by default. You could however prepare a processor to build op the HttpEntity yourself. See attachment for some code. http-mulitpart-processor.txt -- View this message