Re: Apache Mina2 and HL7 listener

2014-02-14 Thread Bart
Hi Claus, Indeed I had look on camel-mina2 API and it's different especially if you take Endpoint under consideration: 1. MinaEndpoint - http://camel.apache.org/maven/current/camel-mina/apidocs/org/apache/camel/component/mina/MinaEndpoint.html 2. Mina2Endpoint - http://camel.apache.org/maven/camel-

Re: Apache Mina2 and HL7 listener

2014-02-14 Thread Claus Ibsen
On Fri, Feb 14, 2014 at 9:01 AM, Bart wrote: > Hi Claus, > Indeed I had look on camel-mina2 API and it's different especially if you > take Endpoint under consideration: > 1. MinaEndpoint - > http://camel.apache.org/maven/current/camel-mina/apidocs/org/apache/camel/component/mina/MinaEndpoint.html

Re: Apache Mina2 and HL7 listener

2014-02-14 Thread Richard Kettelerij
Hi, I think you need the IoService [1] in Mina2 to get to the sessions. As far as I know the camel-mina2 component doesn't expose this. But as Claus suggested you're welcome to expand the component with said functionality and contribute it to the community. Note that it is already possible to eas

Re: Apache Mina2 and HL7 listener

2014-02-14 Thread Bart
Claus, I don't think I have such skills :) However I found that problem lies in that some libraries has been moved from org.apache.mina.common to org.apache.mina.core.service and MinaEndpoint (1 not 2) cannot find some libraries: import org.apache.mina.common.IoAcceptor; import org.apache.mina.comm

Re: Apache Mina2 and HL7 listener

2014-02-14 Thread Bart
Richard, If it will give me the current session then I think this will be enough for me however how can I achieve this. I don't see a straight way to get MINA_IOSESSSION from Mina2Endpoint - or am I missing something? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Min

Re: errorHandler for activemq component example configuration

2014-02-14 Thread bergun
Great explanation thanks. -- View this message in context: http://camel.465427.n5.nabble.com/errorHandler-for-activemq-component-example-configuration-tp5013373p5747305.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: OOM issue due to MemoryIdempotentRepository

2014-02-14 Thread Chirag Dewan
Hi All, I have been looking around why a large number of heap is being consumed by MemoryIdempotentRepository. I saw one JIRA as well regarding inProgressRepository not getting cleared. Can that be the reason here? Also,I am not using consumerTemplate to consume 1000o files. Does that also use

DataFormat Versus TypeConverters

2014-02-14 Thread yagyesh
Hi All, I am using typeconverter to transfrom my data into JsonArray. Route: public void configure() { from("direct:ab") .setHeader(HTTP_URI, simple(baseUrl + "/${header.aa}")) .to("http://dummyhost";). } templa

Re: Setting Header Value in java

2014-02-14 Thread yagyesh
My bad the above code work. Donot know how it was not coming previously. -- View this message in context: http://camel.465427.n5.nabble.com/Setting-Header-Value-in-java-tp5747179p5747308.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Apache Mina2 and HL7 listener

2014-02-14 Thread Richard Kettelerij
Off the top of my head: from(mina2://etc/etc) .process(new Processor() { @Override public void process(final Exchange exchange) throws Exception { IoSession session = exchange.getIn().getHeader(Mina2Constants.MINA_IOSE

Re: File Component route issue.

2014-02-14 Thread jay
Thanks Claus - thanks for your views. i have tried with tokenizer locally and it processed all the records. however i think tokenizer may not be a problem as the same file has been processed in my local fuse container (Macbook)- i have tried couple of times in local fuse esb and it processed.

Re: Apache Mina2 and HL7 listener

2014-02-14 Thread Bart
Yeah but this will work only if consumer will send something message to endpoint. I would like to have an option to get IOSession under connection and this would not work. -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Mina2-and-HL7-listener-tp5747265p5747312.html Sen

Re: Retrieve Caller Ip Address

2014-02-14 Thread Ranabroto
Hello Claus Ibsen Thank you so much for your reply sir :) I have looked into reslet documentation and I found out they have the client info, They have 'Request' class which got a method getClientInfo() returns an object of type 'ClientInfo' and 'ClientInfo' class has got a method 'getAddress()' w

Re: Retrieve Caller Ip Address

2014-02-14 Thread Claus Ibsen
Hi You should have access to the Restlet request from a Camel header. For example from a Camel processor you can do this code: public void process(Exchange exchange) { Request request = exchange.getIn().getHeader(RestletConstants.RESTLET_REQUEST, Request.class); .. } On Fri, Feb 14, 2014

Filter the file that is even before copying

2014-02-14 Thread tamil13
Hi, I am using filter() option while copying file. It move the whole file (900MB) in temporary folder and then check file is to copied or not. I want camel to copy the given file after checking in source folder itself instead of temporary folder. Please suggest me. -- View this message in con

Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Gardella juan
Hi community, I'm using mybatis component and it seems that it's not possible to configure it to pick parameters from the header. It's useful enable this feature with some options. For example sql component can pick

Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Gardella juan
Hi community, I'm using mybatis component and it seems that it's not possible to configure it to pick parameters from the header. It's useful enable this feature with some options. For example sql component can pick

Re: Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Claus Ibsen
Hi You mean to pickup named parameters from headers? On Fri, Feb 14, 2014 at 3:36 PM, Gardella juan wrote: > Hi community, > > I'm using mybatis component and > it seems that it's not possible to configure it to pick parameters from the > header. It's

Re: Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Gardella juan
Yes, for example the select query: select fila,o.IDENTIFICACION from detalle d join orden o on d.orden_id=o.id where informe_id=#{informeId} I have to put the headers in the message body to run it. It is better if the component has an option like "useHeaderParameters" or something like t

Re: Apache Karaf and camel-fop

2014-02-14 Thread Maruan Sahyoun
Hi, it worked for me in Karaf. I can’t say anything about ServiceMix as I’m not using it. BR Maruan Sahyoun Am 13.02.2014 um 20:26 schrieb subrata.sar...@oup.com: > Hi Maruan, > > Could you please guide me in this? Is this now working in SMX 4.5.3. Can you > send me a sample? > > Thanks > >

Re: Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Gardella juan
Done: https://issues.apache.org/jira/browse/CAMEL-7206 Thanks Claus for your fast answers. -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318p5747327.html Sent from the Camel - Users mailing

Re: Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Claus Ibsen
Hi Sounds like a good idea, feel free to log a JIRA and work on a patch We love contributions http://camel.apache.org/contributing On Fri, Feb 14, 2014 at 5:05 PM, Gardella juan wrote: > Yes, for example the select query: > > resultType="map"> > select fila,o.IDENTIFICACION > from detalle d >

Re: in netty.why sended 6bytes, but server recved 9bytes

2014-02-14 Thread Matz von Finckenstein
Were you able to resolve this? I am also seeing 8 bytes in front of the string I'm trying to send over UDP using the netty .to endpoint. Thanks, Matz

Re: CamelContextLifecycle Has a Glaring Deficiency

2014-02-14 Thread kraythe .
Sorry it has taken a while to get back to the list on this one. I have a fix for the issue discussed in thread: http://camel.465427.n5.nabble.com/CamelContextLifecycle-Has-a-Glaring-Deficiency-td5742904.html The files are attached. I changed the package name because I wanted to not have to do java

Re: CamelContextLifecycle Has a Glaring Deficiency

2014-02-14 Thread kraythe .
Ooops attached wrong file for context listener. Lets try that again. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39