Re: HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException

2013-01-28 Thread Christian Ohr
Hi Stan, try this ((I assume that hl7lp, hl7Port and minaLogger are properly set somewhere): from(mina:tcp:// + hl7Ip + : + hl7Port + ?sync=truecodec=#hl7codecminaLogger= + minaLogger) Registering the codec in Camel is not enough; you also need to add it as parameter to the endpoint URI.

Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric

2013-01-28 Thread James Strachan
On 27 January 2013 18:43, Christian Müller christian.muel...@gmail.comwrote: Hi James (and all others involved creating this product)! Congrats for this product. It looks awesome (without having the time to go into the details until now). I wish you success with it. Many thanks! At

Re: Camel CXF component - Adding custom context classes via the uri options

2013-01-28 Thread Sriraman Gopalan
After some digging, I finally fixed the issue. Here is how I did it. Probably, there is a better way of doing this. But, here is my version and this works . Step I: Extract the schema from the web service response. Generate jaxb entities using the maven-jaxb2-plugin. (Ensure that the schema's

Exception policies query

2013-01-28 Thread gilboy
Hi If I have an onException policy and I do *not *set the handled property to true then Camel will not break out of the route. If I have an onException policy and I set the continued property to true, Camel will not break out of the the original route either. So what is the difference between

Re: Exception policies query

2013-01-28 Thread Claus Ibsen
On Mon, Jan 28, 2013 at 10:25 AM, gilboy josephoto...@gmail.com wrote: Hi If I have an onException policy and I do *not *set the handled property to true then Camel will not break out of the route. But it will stop continue routing and return the response to the caller. If I have an

Re: Scala DSL with Scala 2.10

2013-01-28 Thread Claus Ibsen
On Mon, Jan 28, 2013 at 6:34 AM, Willem jiang willem.ji...@gmail.com wrote: +1 for the micro-branch for the camel-scala, and we can do the release it after major release of camel. I am wondering if we can add a camel-scala-2.9 module to the source code. And this is a shallow module, that has

Re: Scala DSL with Scala 2.10

2013-01-28 Thread Claus Ibsen
On Mon, Jan 28, 2013 at 10:52 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Mon, Jan 28, 2013 at 6:34 AM, Willem jiang willem.ji...@gmail.com wrote: +1 for the micro-branch for the camel-scala, and we can do the release it after major release of camel. I am wondering if we can add a

Re: Trouble with asserts on a mockendpoint receiving caught exceptions

2013-01-28 Thread Mark Doyle
Ok, figured it out. It helps if you don't write: errorBin.assertIsNotSatisfied(); rather than: errorBin.assertIsSatisfied(); I blame code complete :D On 27 January 2013 22:41, Mark Doyle markjohndo...@gmail.com wrote: Just noticed the test code only shows up on the nabble web interface.

Re: Trouble with asserts on a mockendpoint receiving caught exceptions

2013-01-28 Thread Christian Müller
;-) Good to know you figured out by yourself. Sent from a mobile device Am 28.01.2013 11:09 schrieb Mark Doyle markjohndo...@gmail.com: Ok, figured it out. It helps if you don't write: errorBin.assertIsNotSatisfied(); rather than: errorBin.assertIsSatisfied(); I blame code complete :D

Handling complex objects and multiple parameters in Camel

2013-01-28 Thread hs_sdm
Hi, I am new to Camel and managed to handle marshal/unmarshal with one complex object using jaxb. from uri=cxf:bean:helloServiceEndpoint?dataFormat=POJO/ log message=body := ${body}/ convertBodyTo type=com.xyz.esb.SayHelloRequest/ marshal jaxb contextPath=com.xyz.esb

Re: Scala DSL with Scala 2.10

2013-01-28 Thread Henryk Konsek
And they do not support Scala 2.9 for their latest stable release of Akka, eg 2.1.0 http://typesafe.com/stack/downloads/akka So if they do not do that, we may also consider not supporting Scala 2.9. Actually Scala/Akka community has been heavily criticised for breaking binary compatibility.

insert custom Soap Header problem

2013-01-28 Thread Gabriel
Hi, I want to add a custom SOAP-Header to a pojo message. For that I configured the following route: route id=CustomerServiceUpdateCustomerTest camel:from uri=direct:iccsUpdateCustomerRequest/ camel:process ref=addCredentials/ to uri=cxf:bean:ICCSCustomerService/ /route

Beanio is waiting for namespace handler

2013-01-28 Thread Walzer, Thomas
Hi there, I try to create a Beanio sample in blueprint, however my bundle does not come up. The camel-beanio feature is installed. Config details below. Any ideas why this is waiting for a namespace handler/how to resolve this? 013-01-28 13:52:35,755 | DEBUG | l Console Thread |

Re: insert custom Soap Header problem

2013-01-28 Thread Willem jiang
It looks like you want to set the cxf message header before routing the request to the camel-cxf endpoint. As you know, camel message header doesn't any thing know about the CXF message headers information before routing the message into the CXF endpoint. That could explain why you get the NPE.

camel-mail component is asymmetric !

2013-01-28 Thread OrackBahama
Hi, when I send a mail message with attachments using the camel-mail component, the mail message is composed as multipart mail message and all of my camel-message headers are appended to the mail and being sent. But when I poll a mailbox full of those messages there is a gap (asymmetry): The

Transforming large mainframe file

2013-01-28 Thread gurusamy.venkateswaran
Hi, I am trying to parse and transform a large mainframe file using camel. I am trying to use the Splitter but I could not get it to work for my requirement. My requirement is that I need to split a large file based on size (in chunks of 500 bytes). The Source file size is

Re: Transforming large mainframe file

2013-01-28 Thread Walzer, Thomas
did you try with streaming=true? Am 28.01.2013 um 16:18 schrieb gurusamy.venkateswa...@barclays.com: Hi, I am trying to parse and transform a large mainframe file using camel. I am trying to use the Splitter but I could not get it to work for my requirement. My requirement

Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi Fuse Fabric

2013-01-28 Thread James Strachan
Just in case others are trying it in karaf; we just hit an issue deploying hawtio in jboss; so have made 'hawtio-osgi' for deploying hawtio in OSGi containers; then 'hawtio-web.war' works out of the box in Tomcat, Jetty, JBoss. So the command line is now this until we cut a release: install

RE: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-01-28 Thread Patel, Gaurav
Karaf version 2.2.10 Camel 2.10.3 What's odd to me is that a certain types of keys work in Karaf but the other ones do not. It's not a complete failure where I can't get camel-crypto working on Karaf, just ElGamal keys. Is there a way I can setup debug logging to see what the error is beyond

How do I use Java Enum instead of a string into my route in spring xml

2013-01-28 Thread bp
Hi, If you would see my Route pasted below,I am using simple language in when condition (e.g.when simple${body.entity.subject} == 'Advertising'/simple). Instead of above statement I want something like: simple${body.entity.subject} ==

Re: Reading a file

2013-01-28 Thread Christian Müller
Don't understand. You have to do something else BEFORE you can read the file? Or AFTER reading the file and BEFORE you transform the content? Sent from a mobile device Am 27.01.2013 20:47 schrieb helander leh...@gmail.com: Hi Christian, sounds simple :) However before the consumer can

Re: Need Help with JMS setup

2013-01-28 Thread Christian Müller
Check out the docu. It has a chapter about looking up the connection factory via JNDI. And your endpoint configuration is also wrong. http://camel.apache.org/jms.html Sent from a mobile device Am 28.01.2013 08:45 schrieb amitoberoi aobe...@techmahindra.com: Hi, I have just started scratching

Re: issues with simple example

2013-01-28 Thread Christian Müller
Check out the camel file component documentation about the different options [1]. The option you are looking for is noop. I don't understand what do you mean with which endpoint will be suitable to give this list as an input? You can transform / split / ... your payload to whatever type you need.

Re: issues with simple example

2013-01-28 Thread Christian Müller
Camel share one concrete processor instance (say processor 1) for all exchanges which may run in parallel. This means your processor should be stateless. If you have to maintain state between different processors, put this state into the exchange as property or into the (in) message as header.

Re: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-01-28 Thread Christian Müller
I'm trying to reproduce the issue... Best, Christian On Mon, Jan 28, 2013 at 5:38 PM, Patel, Gaurav gaurav.pa...@amd.com wrote: Karaf version 2.2.10 Camel 2.10.3 What's odd to me is that a certain types of keys work in Karaf but the other ones do not. It's not a complete failure where I

Re: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-01-28 Thread Willem jiang
I just checked the dependency of camel-crypto, it just use bcprov-jdk15on jar, dependency groupIdorg.bouncycastle/groupId artifactIdbcpg-jdk15on/artifactId version${bouncycastle-version}/version /dependency dependency groupIdorg.bouncycastle/groupId artifactIdbcprov-jdk15on/artifactId

Re: issues with simple example

2013-01-28 Thread Willem jiang
It could be more safe to put the state into the exchange property, as the message header will be override or lost through the processors. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

RE: issues with simple example

2013-01-28 Thread AMARNATH, Balachandar
Thanks a lot for the help. Is there a way to avoid endpoint in the route ? I want to execute 4 processes and I don't want start with endpoint, say, to avoid 'from'. I want to have something like Process1-process-process3-process4 -Bala -Original Message- From: Willem jiang

Re: HL7 Mina throwing org.apache.mina.filter.codec.ProtocolDecoderException: org.apache.mina.common.BufferDataException

2013-01-28 Thread StanZ
Thanks. I will try this. Would this automatically wrap the HL7 message in the MLLP starting/ending characters? Or would I have to add these characters to each message myself for the ACK/NAK response? -- View this message in context:

Files from remote host

2013-01-28 Thread AMARNATH, Balachandar
Hi, Does the statement from(file://remote host/etcfile://remote%20host/etc) will work?. I expect, the file be transferred from remote file and used by the subsequent process. With thanks and regards Balachandar The information in this e-mail is confidential. The contents may not be

Concurrent processes

2013-01-28 Thread AMARNATH, Balachandar
Hi, Is there a way to execute two processes (.process) concurrently with camel? If yes, please share the appropriate resources With thanks and regards Balachandar The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee.

Re: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-01-28 Thread Christian Müller
For Camel 2.10.3 it's the right dependency. Sent from a mobile device Am 29.01.2013 03:27 schrieb Willem jiang willem.ji...@gmail.com: I just checked the dependency of camel-crypto, it just use bcprov-jdk15on jar, dependency groupIdorg.bouncycastle/groupId artifactIdbcpg-jdk15on/artifactId

Re: insert custom Soap Header problem

2013-01-28 Thread Willem jiang
Yeah, you can do it by setting up a customer interceptor on the CXF endpoint. -- 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/) (English)

Re: Concurrent processes

2013-01-28 Thread Willem jiang
Processor are supposed to be executed concurrently. You can managed the threads[1] in camel route, and there are some other camel components (like camel-jms, camel-cxf) have their own thread pool. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com

Re: issues with simple example

2013-01-28 Thread Willem jiang
You can use the direct endpoint to chain these processor like this from(direct:start).processor(processor1).processor(processor2)… -- 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

Re: Files from remote host

2013-01-28 Thread Willem jiang
If you can mount the remote file system to you local file system, I don't think you will have some trouble to the job. -- 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

Re: Reading a file

2013-01-28 Thread Lars-Erik Helander
In general I meant the transformation to be part of these steps, in some cases it it only the transformation that takes place between reading the file and consumer reception, but there could be other steps to. Skickat från min iPhone 28 jan 2013 kl. 23:22 skrev Christian Müller