Just declare the bean via java code. Refer to the spring docs for
@Configuration. Though if you already have the spring xml, it’s easier to just
simply add it there.
On 6 Dec 2014, at 5:17 am, Colm O hEigeartaigh wrote:
> Hi all,
>
> Fairly basic question here. According to the following link
Ok, thanks Claus.
So, the correct way to do this should be the following:
Is that correct ? Is there another solution ?
Thanks for your help,
Best,
Nicolas.
--
View this message in context:
http://camel.465427.n5.nabble.com/ftp-component-RemoteFile-to-a-classic-File-tp5760227p5760232.html
S
The type converter ends up looking for a type Thingwithbrackets, the quotes and
brackets don't make it easy.
I really don't know if it's meant to work that way, when Simple gets tricky I
reach for something like Groovy or Java.
> On 05 Dec 2014, at 09:08, welshstew wrote:
>
> Thanks for your
Hi
When using Camel with Spring it uses the spring app context as
registry, so you need to use that, eg the spring way.
I guess you can grab somehow the spring app context, and use its api
to bind. And if that is possible, maybe we can add a bind operation to
the spring main as a facade for that.
Hi
A remote file is not a java.io.File. Its an instance of the file type
the ftp client library uses.
On Fri, Dec 5, 2014 at 6:16 PM, Nicolas74 wrote:
> Hi all,
>
> I'm a little bit confused about ow to use RemoteFile in a processor with the
> ftp component.
>
> I have the following route :
>
>
Hi all,
Fairly basic question here. According to the following link, the Main class
has a "bind" method to add classes to the registry:
http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html
// bind MyBean into the registery
main.bind("foo", new MyBean());
However this i
Hi all,
I'm a little bit confused about ow to use RemoteFile in a processor with the
ftp component.
I have the following route :
In my processor, I really don't know how to proceed to convert, in my
processor, the RemoteFile to a classic File object.
Any idea ?
Best regards,
Nicolas.
--
Hi, can you tell me bean class to read xsd as well so that I will call that
logic in camel and then I copy the router you provided. Please
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Array-tp5760111p5760226.html
Sent from the Camel - Users mailing list archive at N
Do a route that will simply grab the file and store it locally, check the
difference between what you really get, and what you want to treat.
ftp://user:pass@host/
postalBox/inBox?fileName=simpleTextData.txt&localWorkDirectory=temp&binary=true"/>
initial.txt
after_text_conversion.txt
Thanks Francois for your suggestions.
I forced binary and changed tokenize pattern to ";" (semicolon), but
problem remains:
ftp://user:pass@host/
postalBox/inBox?fileName=simpleTextData.txt&localWorkDirectory=temp&binary=true"/>
I haven't solved this issue yet, but I have got a workaround which I would
like to share with you here.
By adding the failover protocol to the borkerUrl see below, the failover
protocol seems to handle connection failure well.
activemq.brokerURL=failover:(nio://activemq:61616) instead of simply
n
Hi Claus,
Aries JTA is the name of the JTA implementation given with Karaf.
Regards,
Charlie
2014-12-05 13:56 GMT+01:00 Jakub Korab :
> I can't speak for the Camel In Action guys, but we picked Atomikos
> fundamentally because the license for TransactionEssentials is Apache
> 2.0, all of the JA
Hi, in this where can I take input file to read . And seems to be this is
test class. Will I have to convert to bean . Please can you clarify the
steps to create one by one.
Please don't mind. Help me
On Friday, December 5, 2014, smilevasu6 [via Camel] <
ml-node+s465427n5760214...@n5.nabble.com> w
Your issue is probably due to the fact you use "\n" as separator.
Use binary ftp option, to guaranty you will receive the very same encoded ascii
stream as it could be hosted remote side, and test other fragrances of CRLF
("\r\n", "\n"...).
Noam Ramonet a écrit :
>Hi all,
>
>I’m getting an s
Hi,
first i read the XSD file with bean in camel
Then if i am able to fetch the elements from XSD in camel like i said
.setHeader("tablename", simple("${body[0]"))
then i am having the data in .txt file to load the data.
like
.setBody(simple("load data local inpath '/sri/add
I can't speak for the Camel In Action guys, but we picked Atomikos
fundamentally because the license for TransactionEssentials is Apache
2.0, all of the JARs are available in Maven global and the documentation
is outstanding. The guys were also really helpful in working through issues.
You can fin
I created JIRA issues for this too
https://issues.apache.org/jira/browse/CAMEL-8125
- for the exception setting a field value
https://issues.apache.org/jira/browse/CAMEL-8126
- for the setter method on RouteBuilder not setting the value
On 05/12/14 13:35, Daniel Pocock wrote:
> On 05/12/
Maybe this helps
Jan
public class ArrayTest extends CamelTestSupport {
@EndpointInject(uri="mock:end")
MockEndpoint mockEndpoint;
@Test
public void stringArray() throws InterruptedException {
mockEndpoint.expectedMessageCount(1);
// Access to arry information
For XML you can use xpath to grab data from xml.
http://camel.apache.org/xpath
But mind that xpath is not always so easy, especially if the xml has
namespaces, as then you must use namespace mappings.
But if you already loaded the data from XML into some Java objects
with XSDToCamel then you can
On 05/12/14 13:24, Claus Ibsen wrote:
> Hi
>
> How are you guys running Camel? standalone, WAR in Tomcat, OSGi or
> something else?
>
> And if you have a new stacktrace on Camel 2.14 or even 2.15-SNAPSHOT
> then that is lovely as that's faster to find the code lines that has
> the NPE
Mine is stan
Its about xsd file. I created bean in java and calling from camel like
.bean(XSDToCamel.class,"parseXSD(/home/cloudera/Desktop/Sample.xsd)")
then i need to fetch the tags like,
.setHeader("tablename", simple("${body[0]"))
Here i am expecting the tag value
My XSD:
http://www.
Hi all,
I’m getting an strange behaviour splitting a message body coming from a ftp
consumer. Below route works perfectly when I use a local file consumer
(line commented). I get a log message per file input line, and I can
process the content later correctly.
But when I change to the ftp I get
Hi
How are you guys running Camel? standalone, WAR in Tomcat, OSGi or
something else?
And if you have a new stacktrace on Camel 2.14 or even 2.15-SNAPSHOT
then that is lovely as that's faster to find the code lines that has
the NPE
On Fri, Dec 5, 2014 at 12:43 PM, Daniel Pocock wrote:
> On 04/1
Hi
If you spend 2 days and cannot figure it out, then just write what you
would do in plain java. And then call the java code from the Camel
route using the bean component / method call expression or a Camel
processor.
On Fri, Dec 5, 2014 at 11:59 AM, smilevasu6 wrote:
> Hi,
>
> I am not bother
The simple language will invoke the getName() method on the message body object
if your are doing a ${body.name} or ${body.getName}. What kind of data is your
message body?
-Original Message-
From: smilevasu6 [mailto:srinivas.thu...@gmail.com]
Sent: Freitag, 5. Dezember 2014 11:59
To: u
On 04/11/14 14:10, arnoldmad wrote:
> Hi !
>
> I'm using Camel 2.12.1 and I have an issue using the @PropertyInject
> annotation like this:
>
> private @PropertyInject(value = "node") String node
>class="org.apache.camel.component.properties.PropertiesComponent">
>value="f
Hi,
I am not bother about the size.
I need to fetch the element name like if it is
i need to get "name" but not hard coded ex:
setHeader("size",simple("${body.getName}")) it should returns me Address. so
that i can use the value later.
Please do let help me. I am browsing from past 2 days.
Hi,
There is no generic way to determine the size of a message body (and there is
even no generic definition of what the size of a message body means). If the
body is a String (which has a length() method), your simple expression below
might even work, if it is a List (${body.size} might help).
On 04/12/14 16:48, Claus Ibsen wrote:
> Hi
>
> Both the Camel books - Camel in Action and the cookbook has JTA
> examples using atomikos as the TX manager. And the examples are
> standalone and can run from unit tests etc.
I'm a bit wary of examples using Atomikos in free software projects,
they s
Any please help on the below
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Array-tp5760111p5760193.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I totally missed that option - thanks for pointing it out :-D
-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com]
Sent: 5. december 2014 09:45
To: users@camel.apache.org
Subject: Re: File component execute once per day (Quartz)
Yes see the scheduler option
http://camel.ap
Yes see the scheduler option
http://camel.apache.org/file2
And the link from that option for more details.
On Fri, Dec 5, 2014 at 9:41 AM, Svend-Ole Nielsen
wrote:
> Hi all
>
> Is it possible to get the file component to execute once per day at a given
> time eg. Midnight or Is it only possible
Hi all
Is it possible to get the file component to execute once per day at a given
time eg. Midnight or Is it only possible at given intervals ??
Regards,
Svend
Hi
Yeah transactions can do that, read more at
http://camel.apache.org/transactional-client.html
http://camel.apache.org/jms
And if you want to read from a book, then both the Camel cookbook and
Camel in Action has a full chapter devoted to transactions
On Fri, Dec 5, 2014 at 2:29 AM, Madhu Nair
Hi,
Thanks for your response.
.setHeader("size",simple("${body.length}"))
instead of length what is the method to fetch the element.
can you please tell me with example
I want to know the method in camel to fetch the element.
I don't want to put it into list.
${body[0]} ..
--
View this me
35 matches
Mail list logo