I have done this by using filter. Filter returns the boolean and on that
basis Camel moves the file.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-XML-DSL-for-File-transfer-to-endpoint-on-Condition-tp5793651p5793759.html
Sent from the Camel - Users mailing list
Hi Jayanta,
Unless you are not making a connection to the Database from your processor
code, you can try setting a property in the camel exchange and validating
the result of that property with the result returned from the DB.
So, something like this,
from(file://someEndpoint).
Ok, more actual progress on this one...
The issue running locally wasnt' the java version after all. It was due to
us running Camel via maven (mvn camel:run).
When running Camel as a standalone java process, the initiation of the
Weblogic Helper class works fine!
Finally!
--
View this message
No, I guess it is not a proper solution after all, just a hint on going
forward.
@Claus: I'm not sure what you mean by "try to create the POJO up front".
Outside the Camel route somehow?
Thankful for hints on moving this forward after all.
Cannot get it working using open jdk 8 either.
--
Not sure if it is a good thing that it runs only with jdk 1.6. Isn't that
out of support?
On Tue, Jul 12, 2016 at 10:04 PM, jlidholm [via Camel] <
ml-node+s465427n5785056...@n5.nabble.com> wrote:
> Success!
>
> For any future readers stumbling upon this.
> Tried other JDK and it works as a
Success!
For any future readers stumbling upon this.
Tried other JDK and it works as a charm.
Didn't get it working using
*java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-2~deb8u1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
*
But it works when
Ok, no luck separating the logic and using init-method.
However - this is the same stack trace I get, and this also relates to my
suspicion that it is somehow thread/concurrency related (as I am not sure
how Camel/Spring handles these static bean references).
The last part of the first answer in
You can also try to create the POJO up front if you say you can get
that working.
Then from Camel you can call this instance.
Also if its in the ctr there is an issue, you can try move that logic
to an init method, and have that called. If you use spring xml, you
can do that init-method thingy.
Ok, I'll try that.
Just thought since the POJO instantiates fine when not defined as a bean in
a camel route that there was a generic pitfall involved that someone might
recognize.
Thanks for the swift response!
/Johnny
--
View this message in context:
Hi
Its usually harder for us to help when using commercial products like
WebLogic as its not something we can get hands on to reproduce the
issue.
And your problem seems more related to using WebLogic and not as much
about Apache Camel.
Maybe you need to ask on at Oracle WL user forum / report
Hi
Try upgrading Camel.
On Mon, Jun 29, 2015 at 1:00 PM, rory rory.tor...@intel.com wrote:
I'm using Camel 2.10.
I'm using org.apache.camel.model.RouteDefinition.
I can set the body of my request fine using the variables described in the
docs:
http://camel.apache.org/simple.html
For
/row/EMPNO/text()), String.class is really not a valid XPath. You probably
want to terminate the String before the comma...
-Original Message-
From: smilevasu6 [mailto:srinivas.thu...@gmail.com]
Sent: Mittwoch, 26. November 2014 08:21
To: users@camel.apache.org
Subject: camel - xml
Hi,
Thanks Christian,
I completed the basic enrichment with a data from a text file which is
inserted into a tag in the xml message.
I used jaxb to create an element
from uri=file:input/
unmarshal
jaxb prettyPrint=true contextPath=org.apache.camel.example/
This is a typical Content Enricher EIP scenario. Have a look at [1]. At [2]
you can find some tests which show how to use it.
For the Java - XML - Mapping I recommend to have a look at the Camel
JAXBDataFormat [3].
If you are new, you should start at [4].
And I really recommend to Camel in Action
Thanks Christian and Santoshi...i will work on it and will get back...
thanks,
Naveen
--
View this message in context:
http://camel.465427.n5.nabble.com/HELP-required-Camel-XML-Message-Enrichment-tp5718525p5718576.html
Sent from the Camel - Users mailing list archive at Nabble.com.
On 09/12/2011 02:21 PM, atouret.nos...@free.fr wrote:
Hello,
I'm trying to inject a value in bean trough an xpath injection as following :
public void audit(@XPath(/Envelope/Body/getToken/username/text())
String id, @Body String body) {
logger.info(Id :+id );
16 matches
Mail list logo