XML DSL hl7codec ACK response

2014-02-21 Thread sekaijin
Hi. I did a search in the doc and the forum without finding a solution to my problem. I have a set route with blueprint and xml I have a MLLP input and I send the raw content (Simple String) to a file. But I can not return an "ACK" to the sender. in java dsl is very simple XML if I put the s

Re: XML DSL hl7codec ACK response

2014-02-21 Thread sekaijin
Hello, I found where the problem is. MLLP ignore the answers if they do not correspond to the transmitted message. It is therefore impossible to make a constant response. I set a small jar (InAcquittementHL7that I deployed in karaf. It contains a bean, which product either a ACK or NACK accord

Re: Definition of a HL7 FTP endpoint simulated with a spring Camel mllp

2014-02-22 Thread sekaijin
I've soved same problen with blueprint see http://camel.465427.n5.nabble.com/XML-DSL-hl7codec-ACK-response-td5747732.html you can use directly mina and hl7codec without define endpoint. A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Definition-of-a-HL7-FTP-endpoi

Re: JPAComponent starter example

2014-03-01 Thread sekaijin
you can read the christian blog at http://www.liquid-reality.de/display/liquid/Karaf+Tutorials Bye A+JYT PS: sorry for my approximative english -- View this message in context: http://camel.465427.n5.nabble.com/JPAComponent-starter-example-tp5748145p5748154.html Sent from the Camel - Users mai

how to catch Errors?

2014-03-04 Thread sekaijin
Hi I use to trace the exceptions of my routes. in MyErrProcessor class, I get the exception with but I have a processor that throws an IOError, not an Exception but an Error I thought to but can not contain Errors just Exceptions. Thank -- View this message in context: http://camel

Re: how to catch Errors?

2014-03-18 Thread sekaijin
Hi. sorry for the late reply. This is the code that I wrote. but I have not been able to verify that it worked. Thank A + JYT -- View this message in context: http://camel.465427.n5.nabble.com/how-to-catch-Errors-tp5748279p5749018.html Sent from the Camel - Users mailing list archive at Nab

Java DSl XPATH text node

2014-12-17 Thread sekaijin
Hi I'm using Xpath to get an header. My XML message My Route Builder When I test the XPath expression I get ID Système: D:\Travail\logistique\ng446\ng446-phedra-transfo\data\NG44601.SPE.047.20120101-120425.xml Description: /reservation[1]/entete[1]/codeLivraison[1] - 12235 But in camel the header

Re: Java DSl XPATH text node

2014-12-17 Thread sekaijin
I've tried to use String.class argument to convert it in string but I get an empty string. Thank to help me I'm running camel 2.8.1 Thank -- View this message in context: http://camel.465427.n5.nabble.com/Java-DSl-XPATH-text-node-tp5760835p5760859.html Sent from the Camel - Users mailing

Re: Java DSl XPATH text node

2014-12-18 Thread sekaijin
yes myXML is And containt only one "entete" TAG But I've changed my Xpath for And now It work By. -- View this message in context: http://camel.465427.n5.nabble.com/Java-DSl-XPATH-text-node-tp5760835p5760878.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel and JTA

2015-04-19 Thread sekaijin
I've dropped Spring-DM for blueprint. http://camel.apache.org/using-osgi-blueprint-with-camel.html http://www.liquid-reality.de/display/liquid/2012/07/20/Apache+Karaf+Tutorial+Part+7+-+Camel+JPA+and+JTA+transactions Bye -- View this message in context: http://camel.465427.n5.nabble.com/Camel-

file language : how to retrieve a header whose key contains DOT

2013-07-03 Thread sekaijin
Hi. I have a header that contains the key '.' => "aphp.destination.site" I am trying to locate a filename in a url but I can not get my header I use camel 2.8.1 I found in the sample language syntax ${header[key]} I tried to ${header[breadcrumbId]} but it does not work I get an error telling me th

problem with camel-jpa

2012-10-12 Thread sekaijin
Hello, I have a jpa entity Idoc which OneToOne and OneToMany relationships with three other entity jpa (GmCode, GmHead, and GmIdemCreate). In my junit tests when I find a idoc, I get an object IDoc, and objects GmCode, GmHead, and GmIdemCreate associated with it. I have a jpa entity that refere

secondary dynamic endpoint to retrieve an item attached

2012-10-27 Thread sekaijin
hello, I receive messages via MLLP containing the name of a file that I must retrieve and link attachment in the message. I looked for a pattern to retrieve the attachment but I have not found. I have another very similar case I have a ftp consumer that retrieves files "*.ok" when the file "aaa.

Re: secondary dynamic endpoint to retrieve an item attached

2012-11-01 Thread sekaijin
thank you, We'll see options that escaped me. but in the case of MLLP, protocol or other I do not see very clean solution. We made a Processor that dynamically creates an endpoint to retrieve the attachment. I'm not sure this is the best solution. A+JYT -- View this message in context: http

Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem

2012-11-19 Thread sekaijin
thank you, I deleted everything I redémaré Karaf the feature [installed ] [1.0.2-SNAPSHOT] camel-activemq hermes is activemq camel-jms activemq-blueprint activemq-camel th feature [installed ] [1.0.2-SNAPSHOT] hermes-ressources hermes is wrap:mvn:ojdbc/ojdbc/14 mvn:commons-lang/commons-lan

Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem

2012-11-20 Thread sekaijin
Hello, I'd actually several versions of JPA in bundles I uninstalled Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1) but this does not change. thank A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Christian-Schneider-Karaf-Tutorial-Part-6-Database-Access-problem-t

Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem

2012-11-20 Thread sekaijin
Hello, I tried the opposite: uninstall Apache ServiceMix :: Specs :: Java Persistence API 1.4 (1.8.0) insatall Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1) and It works Now I have to find out which feature install Apache ServiceMix :: Specs :: Java Persistence API A + JYT -- View this messa

Re: Christian Schneider Karaf Tutorial Part 6 - Database Access problem

2012-11-21 Thread sekaijin
Thank for all I'm running karaf pltaform like servicemix 4.0 I.E. karaf 2.2.2 and camel 2.8.1 and camel-jpa 2.8.1 define Apache ServiceMix :: Specs :: Java Persistence API 1.4 (1.8.0) not Apache Geronimo JSR-317 JPA 2.0 Spec API (1.1) I've defined a hermes-jpa features initialy for jpa jndi tran

Re: Do Apache Camel needs a SAP integration?

2012-11-22 Thread sekaijin
Hi, I've me to writed a camel-sap component based on JCO 3 it use xml based data to send and recive RFC SAP IDOCS the consumer fix some headers from EDI_DC40 segment like idoc_type The messageId is fixed with the idoc number A+JYT -- View this message in context: http://camel.465427.n5.nabbl

Re: secondary dynamic endpoint to retrieve an item attached

2012-11-24 Thread sekaijin
Hello, reading the doc I found: "Using the Consumer Template" I think I can do something like:and in myBean do you think this is a good approach and that I should try to implement it? or is there a more orthodox to do? A + JYT PS: I'm using camel 2.8.1 -- View this message in context: http:

Re: Dynamic Route Creation.

2013-01-20 Thread sekaijin
I define my routes in accordance with information read from a database. I do not understand why spas you can not do in configue. I read the startup route definition in the database (init routebuilder) then I give the hand to "configure" which according to the definition read built the road. Must

RouteBuilder CXF, WebService Url and WSDL ?

2013-02-10 Thread sekaijin
Hello, I need to define a camel route that invokes a web service. I thought about using camel-cxf to call the web service. My routes are defined in Java dsl the parameters are read in a database and a RouteBuilder define route in java DSL. I have several platform (Dev, Qual, Integration, Recipe,

jdbc:osgi:services/javax.sql.DataSource/(name=nomDatasource)

2013-02-11 Thread sekaijin
hello, I try to use camel-jdbc as OSGI my datasource is defined in another bundle and is published via OSGI I can retrieve via lookup("jdbc:osgi:service/javax.sql.DataSource/(name=nomDatasource)") but I do not know how to configure my url in my routeBuilder in java DSL configure () { //the nam

Re: RouteBuilder CXF, WebService Url and WSDL ?

2013-02-12 Thread sekaijin
Hi, My service does not respond to a url? Wsdl I am forced to have the wsdl file locally thank A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/RouteBuilder-CXF-WebService-Url-and-WSDL-tp5727301p5727438.html Sent from the Camel - Users mailing list archive at Nabble.co

Re: jdbc:osgi:services/javax.sql.DataSource/(name=nomDatasource)

2013-02-12 Thread sekaijin
Hi, Yes he can retrieve the datasource in my java code via lookup but how to inject it in my routeBuilder? how to write this last ".to(...)" to use the object ds? thank A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/jdbc-osgi-services-javax-sql-DataSource-name-nomDa

addComponant problem over blueprint

2013-02-21 Thread sekaijin
Hi I'm running karaf 2.2.2 camel 2.8.1 I add a JMS component in the configure method of my road builder then if I set a route with. that works. if I set a route with that does not work. I tried to but I have the same problem. I wonder if there is not a bug in version 2.8.1 because the cla

How to register a datasource, on configure() method or constructor of a RoutBuilder ?

2012-03-26 Thread sekaijin
Hello, I can not run camel-jdbc in java. I defines a route with camel-blueprint, via a road builder (not in XML) because I know the road to be built when bundle start. when starting the bundle, I read a database that contains definitions of endpoints. with there informations, I build the road. wh

RE: How to register a datasource, on configure() method or constructor of a RoutBuilder ?

2012-03-28 Thread sekaijin
[via Camel] [mailto:ml-node+s465427n5595849...@n5.nabble.com] Envoyé : lundi 26 mars 2012 18:59 À : sekaijin Objet : Re: How to register a datasource, on configure() method or constructor of a RoutBuilder ? If you are talking about unit testing, simply override the "createRegistry()"

How to bind an object in the registry camel?

2012-05-04 Thread sekaijin
Hi I use blueprint for my camel osgi bundles. I don't understand how to register a dataformat or a codec in the registry camel My xml is as follows and in my road builder I can not see my dataformat (I.E. my codec) if I understand well http://camel.465427.n5.nabble.com/How-to-bind-an-object-i

Re: How to bind an object in the registry camel?

2012-05-05 Thread sekaijin
Hi My camel version is 2.8.0 I'm running fuseEsb 4.4 Thank for this response. but this does not answer to my problem. if I define my bundle and my route with blueprint, the doc is sufficient to find a solution. my problem is I have to go through a routebuilder because my route can not be dete

Mina:TCP MllpHl7 NACK and onComplete().OnFailed () howto ?

2012-05-06 Thread sekaijin
Hi. how to manage the TCP acknowledgment with Camel. I have a route that receives via mina:TCP for HL7 message (MllpHl7Codec) when the route ends, the contents of the body is returned Socket as ACK. the route ends in the onComplete().onCompleteOnly() if an error occurs, whithout exception treatm

Re: How to bind an object in the registry camel?

2012-05-07 Thread sekaijin
HI I see a strange phenomenon in the constructor of routebuilder this.getContext().getRegistry() returns org.apache.camel.impl.*JndiRegistry*@5f393d and this.getContext().getRegistry().lookup("PhedraJaxb") returns org.apache.camel.converter.jaxb.JaxbDataFormat @ 1b3a2ad but in the configure() me

Re: Mina:TCP MllpHl7 NACK and onComplete().OnFailed () howto ?

2012-05-08 Thread sekaijin
Hi I do not use onComplete to send ACK or NACK. I use onComplete().onCompleteOnly() to log Ok and onComplete().OnFailed() to log KO in my main route, if I do not catch the error the NACK is not sent to the socket and onComplete() log KO the If i catch the error, the NACK is sent to the socket

Re: Mina:TCP MllpHl7 NACK and onComplete().OnFailed () howto ?

2012-05-08 Thread sekaijin
sorry an error in my post // 2) with catch the transform bean raise exception. // the exception is catched // the NACK is sent to socket // the route finish without error // the onComplete().ononComplete is activated ans log *KO* A+JYT -- View this message in context: htt

Re: How to send ack and then resume route with original message

2012-05-08 Thread sekaijin
I'm use from mina .doTry .process message .inOnly jsm:queue //send to backbone .bean prepare ACK .doCatch .bean prepare NACK .end with this method I'm sure the message is persisted in the JMS queue before sending an ACK if the route raise an error, a NACK is returned A+JYT -- View this

Re: How to send ack and then resume route with original message

2012-05-08 Thread sekaijin
If you use non percistant queue the risk is to lost a massage. you receive a message put it on queue sent ACKand the reste of traiment raise exception the message is lost by principle never avoyer an ACK before sure everything is OK or avaoir percité message A+JYT -- View this message in cont

How to reorder the messages customer by customer?

2012-05-10 Thread sekaijin
Hi. I have a route that carries messages of various kinds. as: Create the customer John Doe. Create a basket for John Doe. Add an item "foo" in the basket of John Doe. Establishing the John Doe bill. For the system to work I must follow the sequence of messages from John Doe. if a message from Jo

[Suggest] Add a camel-mllp component into the incubator

2012-05-17 Thread sekaijin
Hello, I know it is already possible to define camel endpoint MLLP. But I think a camel-mllp component would be welcome. I therefore propose to add it. this would avoid having to add each time the same code to set the codec. I have in my project numerous endpoint mllp and I noticed that the d

Re: Converting CSV to XML

2012-05-17 Thread sekaijin
Hi. Sorry, but if you understand french you can see http://www.developpez.net/forums/d1216465/java/serveurs-conteneurs-java-ee/autres/camel-convertir-csv-xml-bindy-jaxb/ I use the target xsd schema to generate annotated classes. I add the annotation Bindy and voila A + JYT -- View this messa

Re: How to register a datasource, on configure() method or constructor of a RoutBuilder ?

2012-05-17 Thread sekaijin
the response is in my first post ==>CastException when you define your camel context Camel create a new Jndi resgisty or un osgi get de osgi jndiRegistry but when you call getContext().getRegistry(); camel do not return this registry but an registryProxy that not permit to get the real regist

Re: How to register a datasource, on configure() method or constructor of a RoutBuilder ?

2012-05-18 Thread sekaijin
So Christian Mueller wrote > > It depends on your runtime environment, which Registry is used: > - org.apache.camel.spring.spi.ApplicationContextRegistry > - org.apache.camel.blueprint.BlueprintContainerRegistry > - org.apache.camel.impl.CompositeRegistry > - org.apache.camel.impl.JndiRegistry >

Re: [Suggest] Add a camel-mllp component into the incubator

2012-05-20 Thread sekaijin
Hi I'm trying to get camel-hl7 source from svn but A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Suggest-Add-a-camel-mllp-component-into-the-incubator-tp5711304p5712554.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [Suggest] Add a camel-mllp component into the incubator

2012-05-20 Thread sekaijin
Hi. Thank I've created a patch with eclipse: http://camel.465427.n5.nabble.com/file/n5712567/camel-mllp.zip camel-mllp.zip how to create a ticket? the page http://camel.apache.org/contributing.html indicated they must be registered. but in https://issues.apache.org/jira/browse/CAMEL I have no

Re: [Suggest] Add a camel-mllp component into the incubator

2012-05-20 Thread sekaijin
thank I've found https://issues.apache.org/jira/browse/CAMEL-5296 A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/Suggest-Add-a-camel-mllp-component-into-the-incubator-tp5711304p5712659.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel karaf custom distribution

2012-06-09 Thread sekaijin
Hello, I have for personal, creates a "karaf custom distribution" project that containing Karaf and Camel (and just all set for it to work). not esb or other components as in ServiceMix. This allows to have a very light container to deploy camel routes. I am ready to give to the community.

Re: .choice(), .when() not working as expected in the camel route

2016-05-17 Thread sekaijin
I'm not sure that the body is equal to "error decoding HL7" I'm using mina and hl7 to implément mllp protocol. A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/choice-when-not-working-as-expected-in-the-camel-route-tp5782452p5782701.html Sent from the Camel - Users ma

Re: .choice(), .when() not working as expected in the camel route

2016-05-17 Thread sekaijin
Yes I'm using mina:tcp and HL7MLLPCodec after the from in doTry I'm using unmarshal hapi. to convert the hl7 message. with camel-mllp (I don't ave trying) yout can use onException in your context for handling the parse exception. A+JYT -- View this message in context: http://camel.465427.n5.

Re: .choice(), .when() not working as expected in the camel route

2016-05-23 Thread sekaijin
I understood that camel-mllp acquire the message. But my purpose is not there. I do not know camel-mllp what I mean is that usually when a component fails to perform its task, it throws an exception. I do not know once that puts an error message in the body. I therefore think you should use an err

camel-mongoDB Mongo class as osgi service

2016-07-27 Thread sekaijin
I'm using camel-mongodb in many osgi bundles each bundle declare its own Mongo bean. I want to share Mongo connexion as osgi service. but com.mongodb.Mongo does not implement any interface. I try to reférence the service with ext:proxy-method="classes" but it failed how to use the same connectio

Howto save data with camel-mongodb

2016-07-27 Thread sekaijin
Hi, I try to use save operation on mongodb componant. my route is simple from http to mongo like this when I post a simple JSON data I'm get the response the data is inserted in database. but i want to post data for update operation I've send exactly the response with "cool":"MongoDB" But the the

Re: Howto save data with camel-mongodb

2016-09-25 Thread sekaijin
Hi, I locate the problem in the code. but I have not found yet, solution. in https://github.com/apache/camel/blob/master/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/converters/MongoDbBasicConverters.java there are some (DBObject) JSON.parse(s); But JSON is a simple p

camel rest swagger custom properties

2016-10-08 Thread sekaijin
camel he supports swagger custom properties? I've trying But it does not work A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/camel-rest-swagger-custom-properties-tp5788514.html Sent from the Camel - Users mailing list archive at Nabble.com.

ad vitam aeternam redelivery

2017-05-10 Thread sekaijin
Hi, I need to define an endpoint with the following characteristics: Transactional route from jms to any protocols (user-defined protolole during config) Retry every x seconds in case of failure No attempt limit Rollback if the route stops after a failure. I work with camel 2.16 Thank you for yo

onFailureOnly onCompleteOnly does not produce the right route

2017-05-10 Thread sekaijin
I have a road defined as well where onCompletion onException onFailure are functions The route builder produce only onException and onFailure If I change the order of call functions I've only one of onCompleteOnly or onFailureOnly is produced haw to add onCompleteOnly and onFailureOnly ?

Re: JSON to XML Mapping/Transformation

2015-05-15 Thread sekaijin
I use a double annotation on a pojo and marshaller unmarshaller. A+JYT -- View this message in context: http://camel.465427.n5.nabble.com/JSON-to-XML-Mapping-Transformation-tp5767112p5767138.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Evaluate JSON using Rhino 1.6R7?

2015-07-07 Thread sekaijin
I do not understand. What the "eval" whether js or java to evaluate a "JSON" must be used JSON.parse () -- View this message in context: http://camel.465427.n5.nabble.com/Evaluate-JSON-using-Rhino-1-6R7-tp5768944p5768945.html Sent from the Camel - Users mailing list archive at Nabble.com.

https REST DSL servicemix CamelHttpTransportServlet

2015-09-29 Thread sekaijin
Hi Howto configure servicemix to secure Rest service using REST DSL and CamelHttpTransportServlet Thank JYT -- View this message in context: http://camel.465427.n5.nabble.com/https-REST-DSL-servicemix-CamelHttpTransportServlet-tp5772098.html Sent from the Camel - Users mailing list archive a

Re: https REST DSL servicemix CamelHttpTransportServlet

2015-10-03 Thread sekaijin
only https thank -- View this message in context: http://camel.465427.n5.nabble.com/https-REST-DSL-servicemix-CamelHttpTransportServlet-tp5772098p5772226.html Sent from the Camel - Users mailing list archive at Nabble.com.

Duplicate ServletName detected:

2015-11-06 Thread sekaijin
Hello I try to deploy multiple bundles on karaf that define each of the services with Restfull rest dsl. I use camel-servlet. but I did manage to deploy a single bundle at a time. I get the error message javax.servlet.ServletException: Duplicate ServletName detected: CamelServlet. Existing: CamelH

Rest DSL Multipart OSGI multi bundles

2015-12-03 Thread sekaijin
Hi, I have several bundles that implement a subset of Rest Services. I have a bundle that sets the HttpTransport I try to make a service that receives via a method POST a multipart/form-data. I read that he had to use camel-jetty instead of camel-servlet. But I can not make it work. My httpTra

Re: Advice: how to shut down route after specified time

2015-12-04 Thread sekaijin
Hi you can use camel-timer or camel-quartz and controlbus http://camel.apache.org/timer.html http://camel.apache.org/quartz.html http://camel.apache.org/controlbus-component.html something like: from("timer://foo?fixedRate=true&period=6&repeatCount=1"). to("controlbus:route?routeId=foo&actio

camel-jpa 2.15.3 Blueprint openJpa problem

2016-02-05 Thread sekaijin
HI, I'm use camel-jpa version 2.8.1 openjpa 2.1.1 under Karaf 2.2.2 without any Difficulty. I migrates for ServiceMix 5.5.1 camel-jpa 2.15.3 openjpa 2.3.0 karaf 2.4.3 I've added to my pom.xml I've successfully tested my datasource with camel-jdbc in my route. but I obtien the following error:

Re: camel-jpa 2.15.3 Blueprint openJpa problem

2016-02-09 Thread sekaijin
Hi, I've found the solution. In camel-jpa 2.8.1 the datasource name in persistence.xml is osgi:/service/*s*/javax.sql.DataSource/(name=omer) but in camel-jpa 2.15.3 this name is osgi:/service//javax.sql.DataSource/(name=omer) persistence.xml A+JYT -- View this message in context: http://ca