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 ?
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
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.
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
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
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
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
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:
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
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:
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:
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=6=1").
to("controlbus:route?routeId=foo=stop");
Bye
--
View
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
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:
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.
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
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.
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.
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:
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.
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
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
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
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:
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
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:
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
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
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 that
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
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
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:
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 name
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,
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
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:
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:
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
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
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
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:
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.ok
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
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.
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.
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
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.
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
-
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
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
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
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
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
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:
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
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
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()
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
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
english
_
De : Christian Mueller [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
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.
61 matches
Mail list logo