HI,
For more detail check out the following links
http://camel.apache.org/convertbodyto.html
http://camel.apache.org/convertbodyto.html
http://camel.apache.org/type-converter.html
http://camel.apache.org/type-converter.html
Cheers,
Ashwin...
-
Hi,
Here is how to do it
C08005005472C0
The endpoint mock:out should receive a byte[]...
Hope this helps.
Cheers,
Ashwin...
-
-
Ashwin Karpe
Apache Camel Committer
My route is something like this:
C08005005472C0
..
The message is suppose to be sent as a byte array. Whereas I am sending it
as a string. How can I set the body to the byte array.
Thank you
--
View this message in context:
http://camel.465427.
I've ended up having to do that anyway as I want to split the messages later
and the splitter implementation is expecting a list of messages.
So my solution was to aggregate the Exhange.in message into a List and set
that as the body of the aggregated exchange.
That way split(body()) works as exp
Ah thanks. It's even in the simple documentation that I didn't read...
--
View this message in context:
http://camel.465427.n5.nabble.com/Exchange-body-type-tp5529385p5529430.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I use:
${body} is org.my.SpecificClass
-Original Message-
From: swwyatt [mailto:steven.wy...@sungard.com]
Sent: Thursday, March 01, 2012 2:15 PM
To: users@camel.apache.org
Subject: Exchange body type
Is there a way to determine the type of object in the exchange body
using spring dsl?
Is there a way to determine the type of object in the exchange body using
spring dsl?
I tried,
${body.class.simpleName} == 'MyClass'
but got an exception.
--
View this message in context:
http://camel.465427.n5.nabble.com/Exchange-body-type-tp5529385p5529385.html
Sent from the Camel - Users m
Hi Claus
Thank you for the quick response.
aside from mybatis or velocity , I understand it wouldn't be possible
with the xpath language?
if I had a java bean in my queue I could do it with the in.body language
right?
Thanks.
On 03/01/12 19:52, Claus Ibsen-2 [via Camel] wrote:
> Hi
>
> Just use a
Hi,
I believe, I had seen a submission a few months ago of a Camel RabbitMQ
component and had referred it to be hosted in camel-extras or at git-hub.
Can you please look for it in this forum and in camel-extras/github... The
component was quite compelling and could not be brought into the Apache
Kudos, Bilgin & Babak !!!, Very well deserved... The camel community is the
better for it...
Cheers,
Ashwin...
-
-
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
ht
Hi
Just use a java bean and use java code to build the SQL.
Or a template language such as velocity / freemarker.
But often a java bean can do the trick in 5 lines of code.
For more complicated SQL, then MyBatis have a java based SQL builder
which looks cool.
They also offer a XML templates to b
I'm sure there must something be wrong in your route or test. Could you
please have a look at [1] and [2] and check your code again.
[1]
http://code.google.com/p/camelinaction/source/browse/trunk/chapter9/multiple-routes/src/test/java/camelinaction/TXToTXTest.java
[2]
http://code.google.com/p/came
Two days ago the Camel PMC voted another one of the very active and talented
contributors to become a committer.
Bilgin Ibryam was actively involved with Apache Camel for about 6 month
contributing code and helping other users. Bilgin proactively assigned reported
issues to himself and took the
Hi
I created a route in servicemix that sends pax loging events to a queue and
transforms them to xml into another queue.
now i want a route that builds a sql insert from the xml payloads, but I
can't figure out the way to do that.
I think I want something like that if it was possible:
I don't get exactly your point!
Using the loop() DSL if at the iteration N an exception is thrown then that
iteration is already bail out because of the onException clause being
running and as you do continued(true) at the end of onException() then you
would continue on the iteration N+1.
And reg
Hello everyone,
I am developing a RabbitMQ camel component starting from scratch, using the
RabbitMQ java client as the only basis for the development.
Aside from the RabbitMQ features I am exposing to the users as options in
the route (e.g. ?concurrentConsumers),
I am wondering if there exist
Thank you Mr. Vahdat. Your suggestions are very helpful. But, I do not want
to continue further in that particular iteration after the exception has
occurred. (In other words, bail out when the exception occurred in the
iteration and continue with other iterations.)
Second question: I am unable to
Hi,
I have already looked at shirosecurityinjector source code to find the name
of the header it adds to the message. Here it is:
public ByteSource encrypt() throws Exception {
ByteArrayOutputStream stream = new ByteArrayOutputStream();
ObjectOutput serialStream = new ObjectOutput
On Wed, Feb 29, 2012 at 7:32 PM, Otho wrote:
> Hey all,
>
> I have the following use-case:
>
> Users connect to activemq via stomp over websockets and register with a
> UUID (works).
> Users subscribe to different general topics and get notification by that
> (works).
>
> Now I need the following
Hi,
BTW, while the solution presented in my earlier note is quite nice, there
are even more elegant ways of doing this with the cool new zookeeper
component in Camel 2.9. However this requires that the URLs be stored in
zookeeper and that a route be constructed on the fly based on changes in
Zooke
Hi,
Camel has an ability to deploy routes in a camel context at runtime...
Please check out the unit test below that shows how to do that...
https://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/AddRoutesAtRuntimeTest.java?view=markup
https://svn.apache.org/v
Thanks a lot. I works with setHeader() now, I have chosen a illegal key before.
Regards Michael
--
Michael Szalay
Senior Software Engineer
basis06 AG, Birkenweg 61, CH-3013 Bern - Fon +41 31 311 32 22
http://www.basis06.ch - source of smart business
- Ursprüngliche Mail -
Von: "Ashwin K
Hi Michael,
I have answered this question in more detail against your earlier question
tied to Shiro.
Please check it out. There is indeed a JMS spec limitation around headers
and the kind of values that can be propagated...
Cheers,
Ashwin...
-
-
Hi,
Can you name your quartz consumers uniquely i.e quartz:report1 and
quartz:report2. I wonder if it is complaining about 2 consumers with the
same URI signature...
Cheers,
Ashwin...
-
-
Ashwin Karpe
Apache Camel Committer & Sr Princi
On Thu, Mar 1, 2012 at 11:39 AM, bezudar wrote:
> Any examples where this is explained in more detail. Would appreciate it. :)
>
There are some unit tests, for example
https://svn.apache.org/repos/asf/camel/trunk/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailEndpointTest
On Thu, Mar 1, 2012 at 11:37 AM, Michael Szalay
wrote:
> Hi all
>
> I have a route that sends a file to an activemq queue, which gets consumed
> by another components. This works, but I want to pass a customer property in
> the message.
> I tried the exchange properties and headers, but nothing w
Any examples where this is explained in more detail. Would appreciate it. :)
--
View this message in context:
http://camel.465427.n5.nabble.com/Creating-Components-and-Endpoints-Without-URI-s-tp5527424p5527533.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi all
I have a route that sends a file to an activemq queue, which gets consumed
by another components. This works, but I want to pass a customer property in
the message.
I tried the exchange properties and headers, but nothing works, by property does
just not arrive on the other side...
Is the
Hi
Then use a custom strategy, which can be persisted.
I will add a note on the wiki page about the limitations of
GroupedExchangeAggregationStrategy
On Thu, Mar 1, 2012 at 1:21 AM, wattsc3 wrote:
> I'd been bashing my head against the wall trying to get the default
> aggregator (GroupedExchange
Hi
Yes just use the Java API, and create the endpoint instance directly.
And use the getter/setters to configure it.
Some endpoints needs a reference to a component as well, for example
the jetty endpoint.
Some do not really need a component, for example a log endpoint etc.
On Thu, Mar 1, 2012
Hi
Maybe try with 2 different trigger names, so have
- report
- report2
On Thu, Mar 1, 2012 at 10:32 AM, madhu wrote:
> in my project we are using quartz scheduler and i am getting the below
> error ,when i am running my camel context. pls help me ?
>
>
> java.lang.reflect.InvocationTarget
Hi
on March 22nd 2012 together with James Strachen, I'm gonne give a talk about
Apache Camel
in Zurich/Switzerland. The event is organized through
Java-User-Group-Switzlerand (JUGS).
My talk will be in German but the slides are in English.
If you've never been by a JUGS event before then you coul
I am trying to use Camel to provide Chained/Pipelined queries of my own
workflows, however I do not wish to use URI's for this purpose instead
relying on Objects. Is that possible and is that a correct way to use Apache
Camel. Asked similar question in
http://stackoverflow.com/questions/9513026/c
Hi
Yes, using the onException clause you could make use of continued(true).
Also take a look at [1] for the semantics of "handled" & "continued" DSL
elements.
One possible way would be:
onException(MyIgnoredException.class).process(new
Processor() {
@Override
in my project we are using quartz scheduler and i am getting the below
error ,when i am running my camel context. pls help me ?
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.in
Hi
The thread you're cross-pointing here did *not* claim anything about the
usage of one single Camel context versus using multiple ones.
The only concern of that thread was to make it clear that *even* in the
absence of Camel *routes* you could still benefit from using Camel as it
would still ma
On Wed, Feb 29, 2012 at 6:07 PM, Michael Szalay
wrote:
> Hi all
>
> I'm new to camel. I try to model the following data flow process
>
> 1) Create some objects that all other processors in the route can share
> 2) Load some values from the database
> 3) For each value in the database
> 3a) make
37 matches
Mail list logo