<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>users@camel.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/camel-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/camel-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/camel-users/</id>
<updated>2009-12-07T02:25:52Z</updated>
<entry>
<title>Re: handled exception in sub-route</title>
<author><name>trivedi kumar b &lt;Trivedi.Bodlapati@ge.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26669550.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26669550-post@talk-nabble-com%3e</id>
<updated>2009-12-06T22:25:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

If I use doTry.. doCatch, with similar route that includes transactions,
will that work as expected? I mean, markRollbackOnly() option inside
doCatch() will rollback the transaction? Pls let me know the behaviour.

Thanks,
Trivedi


Claus Ibsen-2 wrote:
&gt; 
&gt; On Thu, Dec 3, 2009 at 10:45 AM, kyt &lt;kythary@t-online.de&gt; wrote:
&gt;&gt;
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; I need some advice on how to handle an exception in a sub-route and how
&gt;&gt; the
&gt;&gt; calling route can continue processing. It is easier to explain this with
&gt;&gt; a
&gt;&gt; bit of code:
&gt;&gt;
&gt;&gt; Â  Â  Â  Â  Â  Â from("direct:A")
&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â .to("direct:B")
&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â .to("direct:C");
&gt;&gt;
&gt;&gt; Â  Â  Â  Â  Â  Â from("direct:B")
&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â .onException(Exception.class).handled(true).end()
&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â . code that throws an exception
&gt;&gt;
&gt;&gt; Â  Â  Â  Â  Â  Â from("direct:C")
&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â ...
&gt;&gt;
&gt;&gt; Now, if there is an exception in direct:B, direct:C never gets called.
&gt;&gt; Through debugging I found out that the pipeline in direct:A stops
&gt;&gt; processing
&gt;&gt; because it checks an exchange property (Exchange.ERRORHANDLER_HANDLED).
&gt;&gt; I'm
&gt;&gt; using Camel 2.0. Is there a way that the processing in direct:A continues
&gt;&gt; after the exception was handled in direct:B?
&gt;&gt;
&gt; 
&gt; Unfortunately the logic for error handling got a bit complex.
&gt; Something to improve in 2.2. I am currently making the TX based
&gt; simpler in internal logic.
&gt; 
&gt; Back to your use case.
&gt; The doTry .. doCatch will work as regular try .. catch and thus what
&gt; you would expect so route A will continue
&gt; 
&gt; In terms on onException we should improve this over time, adding some
&gt; flag to indicate what you want. As some want to use onException to
&gt; catch that error and create a custom error messages as reply and thus
&gt; not process and further.  And others as you want a kinda try .. catch
&gt; logic and just ignore the damn exception.
&gt; 
&gt; 
&gt;&gt; Thanks,
&gt;&gt; Jens
&gt;&gt; --
&gt;&gt; View this message in context:
&gt;&gt; http://old.nabble.com/handled-exception-in-sub-route-tp26623326p26623326.html
&gt;&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt; 
&gt; 
&gt; 
&gt; -- 
&gt; Claus Ibsen
&gt; Apache Camel Committer
&gt; 
&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt; Open Source Integration: http://fusesource.com
&gt; Blog: http://davsclaus.blogspot.com/
&gt; Twitter: http://twitter.com/davsclaus
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/handled-exception-in-sub-route-tp26623326p26669550.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Group of routes and Synchronization on outputs of the group after  a split</title>
<author><name>Seb- &lt;seba.public@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26668433.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26668433-post@talk-nabble-com%3e</id>
<updated>2009-12-06T20:03:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I think there is a small problem with this solution that will make it
unusable as-is for the case when RecipientList returns dynamic recipient
list.
AggregationStrategy uses a predefined static messagecount while
RecipientList may return a dynamic recipient list at runtime (ie in my
example a certain message might flow out only through o2 and not o1).
So the AggregationStrategy would need to update messagecount for certain
message through all their life in the flow (possibly incrementing when a
RecipientList throws 2 entries or keep as-is when only 1 entry).


Seb- wrote:
&gt; 
&gt; Sounds interesting.
&gt; I'll have a look at this.
&gt; Thanks,
&gt; SÃ©bastien.
&gt; 
&gt; 
&gt; Claus Ibsen-2 wrote:
&gt;&gt; 
&gt;&gt; On Sun, Dec 6, 2009 at 6:53 PM, Seb- &lt;seba.public@gmail.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; Hi,
&gt;&gt;&gt; Let's say I have 3 components, Component1 is a RecipientList sending the
&gt;&gt;&gt; message to both Component2 and Component3.
&gt;&gt;&gt; Is there an easy configuration way for Camel to do a synchronization on
&gt;&gt;&gt; outputs (o2 &amp; o3) of Component2 &amp; Component3 with the original message
&gt;&gt;&gt; coming from Component1.
&gt;&gt;&gt;
&gt;&gt;&gt; Â  Â  Â  Â  Â  Â  /----[]----- o2
&gt;&gt;&gt; i1 --[]--/
&gt;&gt;&gt; Â  Â  Â  Â  Â  \
&gt;&gt;&gt; Â  Â  Â  Â  Â  Â  \-----[]---- o3
&gt;&gt;&gt;
&gt;&gt; 
&gt;&gt; Yes its possible unfortunately we didnt make that possible easily out
&gt;&gt; of the box until Camel 2.2. You may say that slipped our minds.
&gt;&gt; The recipient list in 2.2 supports AggregationStrategy so you can
&gt;&gt; combine the response from o2 and o3 as you like.
&gt;&gt; 
&gt;&gt; Ticket about it
&gt;&gt; https://issues.apache.org/activemq/browse/CAMEL-2223
&gt;&gt; 
&gt;&gt; 
&gt;&gt; See more at, section Using custom AggregationStrategy
&gt;&gt; http://camel.apache.org/recipient-list.html
&gt;&gt; 
&gt;&gt; See this thread for how you may work around and with some custom
&gt;&gt; coding do that in 2.1 or older
&gt;&gt; http://old.nabble.com/recipientList-multithreading-td26635868.html
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt; Regards,
&gt;&gt;&gt; SÃ©bastien.
&gt;&gt;&gt; --
&gt;&gt;&gt; View this message in context:
&gt;&gt;&gt; http://old.nabble.com/Group-of-routes-and-Synchronization-on-outputs-of-the-group-after-a-split-tp26667241p26667241.html
&gt;&gt;&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; -- 
&gt;&gt; Claus Ibsen
&gt;&gt; Apache Camel Committer
&gt;&gt; 
&gt;&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt;&gt; Open Source Integration: http://fusesource.com
&gt;&gt; Blog: http://davsclaus.blogspot.com/
&gt;&gt; Twitter: http://twitter.com/davsclaus
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Group-of-routes-and-Synchronization-on-outputs-of-the-group-after-a-split-tp26667241p26668433.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Group of routes and Synchronization on outputs of the group after  a split</title>
<author><name>Seb- &lt;seba.public@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26668227.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26668227-post@talk-nabble-com%3e</id>
<updated>2009-12-06T19:40:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Sounds interesting.
I'll have a look at this.
Thanks,
SÃ©bastien.


Claus Ibsen-2 wrote:
&gt; 
&gt; On Sun, Dec 6, 2009 at 6:53 PM, Seb- &lt;seba.public@gmail.com&gt; wrote:
&gt;&gt;
&gt;&gt; Hi,
&gt;&gt; Let's say I have 3 components, Component1 is a RecipientList sending the
&gt;&gt; message to both Component2 and Component3.
&gt;&gt; Is there an easy configuration way for Camel to do a synchronization on
&gt;&gt; outputs (o2 &amp; o3) of Component2 &amp; Component3 with the original message
&gt;&gt; coming from Component1.
&gt;&gt;
&gt;&gt; Â  Â  Â  Â  Â  Â  /----[]----- o2
&gt;&gt; i1 --[]--/
&gt;&gt; Â  Â  Â  Â  Â  \
&gt;&gt; Â  Â  Â  Â  Â  Â  \-----[]---- o3
&gt;&gt;
&gt; 
&gt; Yes its possible unfortunately we didnt make that possible easily out
&gt; of the box until Camel 2.2. You may say that slipped our minds.
&gt; The recipient list in 2.2 supports AggregationStrategy so you can
&gt; combine the response from o2 and o3 as you like.
&gt; 
&gt; Ticket about it
&gt; https://issues.apache.org/activemq/browse/CAMEL-2223
&gt; 
&gt; 
&gt; See more at, section Using custom AggregationStrategy
&gt; http://camel.apache.org/recipient-list.html
&gt; 
&gt; See this thread for how you may work around and with some custom
&gt; coding do that in 2.1 or older
&gt; http://old.nabble.com/recipientList-multithreading-td26635868.html
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt;&gt; Thanks,
&gt;&gt; Regards,
&gt;&gt; SÃ©bastien.
&gt;&gt; --
&gt;&gt; View this message in context:
&gt;&gt; http://old.nabble.com/Group-of-routes-and-Synchronization-on-outputs-of-the-group-after-a-split-tp26667241p26667241.html
&gt;&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt; 
&gt; 
&gt; 
&gt; -- 
&gt; Claus Ibsen
&gt; Apache Camel Committer
&gt; 
&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt; Open Source Integration: http://fusesource.com
&gt; Blog: http://davsclaus.blogspot.com/
&gt; Twitter: http://twitter.com/davsclaus
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Group-of-routes-and-Synchronization-on-outputs-of-the-group-after-a-split-tp26667241p26668227.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Group of routes and Synchronization on outputs of the group after	a split</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912061105m4bccb010q3cd620332f3ab51d@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912061105m4bccb010q3cd620332f3ab51d@mail-gmail-com%3e</id>
<updated>2009-12-06T19:05:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sun, Dec 6, 2009 at 6:53 PM, Seb- &lt;seba.public@gmail.com&gt; wrote:
&gt;
&gt; Hi,
&gt; Let's say I have 3 components, Component1 is a RecipientList sending the
&gt; message to both Component2 and Component3.
&gt; Is there an easy configuration way for Camel to do a synchronization on
&gt; outputs (o2 &amp; o3) of Component2 &amp; Component3 with the original message
&gt; coming from Component1.
&gt;
&gt;             /----[]----- o2
&gt; i1 --[]--/
&gt;           \
&gt;             \-----[]---- o3
&gt;

Yes its possible unfortunately we didnt make that possible easily out
of the box until Camel 2.2. You may say that slipped our minds.
The recipient list in 2.2 supports AggregationStrategy so you can
combine the response from o2 and o3 as you like.

Ticket about it
https://issues.apache.org/activemq/browse/CAMEL-2223


See more at, section Using custom AggregationStrategy
http://camel.apache.org/recipient-list.html

See this thread for how you may work around and with some custom
coding do that in 2.1 or older
http://old.nabble.com/recipientList-multithreading-td26635868.html





&gt; Thanks,
&gt; Regards,
&gt; Sébastien.
&gt; --
&gt; View this message in context: http://old.nabble.com/Group-of-routes-and-Synchronization-on-outputs-of-the-group-after-a-split-tp26667241p26667241.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Group of routes and Synchronization on outputs of the group after a split</title>
<author><name>Seb- &lt;seba.public@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26667241.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26667241-post@talk-nabble-com%3e</id>
<updated>2009-12-06T17:53:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,
Let's say I have 3 components, Component1 is a RecipientList sending the
message to both Component2 and Component3.
Is there an easy configuration way for Camel to do a synchronization on
outputs (o2 &amp; o3) of Component2 &amp; Component3 with the original message
coming from Component1.

             /----[]----- o2
i1 --[]--/
           \
             \-----[]---- o3

Thanks,
Regards,
SÃ©bastien.
-- 
View this message in context: http://old.nabble.com/Group-of-routes-and-Synchronization-on-outputs-of-the-group-after-a-split-tp26667241p26667241.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Implementing Publish Subscribe Channel</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26667205.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26667205-post@talk-nabble-com%3e</id>
<updated>2009-12-06T17:50:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi Claus,


Claus Ibsen-2 wrote:
&gt; 
&gt; No seda does *not* support multiple consumers. Its meant to be used
&gt; with a single consumer only.
&gt; In 2.1 this is even enforced. Often end users had copy paste mistakes
&gt; and didnt want multiple consumers to the same seda endpoint.
&gt; Hence why we enforced this now in 2.1.
&gt; 
&gt; What is your use case sine you need this? I am interesting in what you
&gt; are trying to solve?
&gt; 
&gt; 
&gt; What you could do is to extend seda, and have support multiple
&gt; consumers and have the Exchange being copied before its handed out to
&gt; every
&gt; consumers.
&gt; 
&gt; Mind that when you copy the Exchange / Message if the body is not a
&gt; simple type such as String then you may only copy a reference to it
&gt; and thus have multiple consumers work on it concurrently, and thus you
&gt; need to be aware of thread safety issues.
&gt; 
&gt; And there is a new interface in Camel 2.1, MultipleConsumersSupport,
&gt; which indicates whether an endpoint supports multiple consumers or
&gt; not.
&gt; You need to implement this and return true in your own component.
&gt; 

I'm not sure if a separate component is needed for this, because from my
experience the &lt;multicast&gt; element works fine. And that's what I'm trying to
get, using the &lt;multicast&gt; functionality in a @Consume'r.

Maybe something like this (proposal):

@Consume(uri="someuri", multicast=true)

My use case is using Camel as event publisher. Exactly like Spring
Application Events.

@EndpointInject(uri="seda:events.form")
ProducerTemplate formEvents;

...
formEvents.sendBody(new FormEvent(...));
...

then there are one or more event Listeners like this:

@Consume(uri="seda:events.form")
public void handleFormEvent(FormEvent event) { ... }

BTW, the producer and consumer URI may not be the same. i.e. the publisher
of the event may route it in some way and there may be multiple producers.
However as far as consumers are concerned, they have this inbox URI (e.g.
"seda:events.form") that all events will come together. Then multiple
consumers can process the messages (it's InOnly, no need to reply).

I can do this with &lt;multicast&gt;, but my "problem" is that I want it to be
"dynamic" i.e. just @Consume annotation is needed, no change in routes.
Because the consumers can be created and disposed dynamically.
-- 
View this message in context: http://old.nabble.com/Implementing-Publish-Subscribe-Channel-tp26654086p26667205.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Implementing Publish Subscribe Channel</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912060813o1189274fm6f1b8f71022a22b8@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912060813o1189274fm6f1b8f71022a22b8@mail-gmail-com%3e</id>
<updated>2009-12-06T16:13:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sun, Dec 6, 2009 at 4:51 PM, Hendy Irawan &lt;hendy@soluvas.com&gt; wrote:
&gt;
&gt;
&gt;
&gt; Claus Ibsen-2 wrote:
&gt;&gt;
&gt;&gt; Maybe spring event can be used also?
&gt;&gt; http://camel.apache.org/event.html
&gt;&gt;
&gt;
&gt; I guess that'd mean my message has to be an ApplicationEvent.
&gt;

Dont know if Spring enforces to implement an interface but I would
envision they did.


&gt;
&gt; Claus Ibsen-2 wrote:
&gt;&gt;
&gt;&gt; You can create you own component that offers topic like functionally.
&gt;&gt; You could extend the seda or direct component and implement the logic
&gt;&gt; missing.
&gt;&gt;
&gt;
&gt; Thanks for the encouragement. :-)
&gt;
&gt;
&gt; Claus Ibsen-2 wrote:
&gt;&gt;
&gt;&gt; I would assume adding @Consume to any POJO does not require any routes
&gt;&gt; to pre existing and cannot see why its not dynamic.
&gt;&gt;
&gt;
&gt; Yes indeed, unfortunately @Consume breaks when there are two @Consume'rs on
&gt; the same endpoint that is not a publish-subscribe channel. It seems like
&gt; it's doing round-robin (?) instead of multicast.
&gt;
&gt; For example, I'd like:
&gt;
&gt; /* bean1 */
&gt; @Consume("seda:mychannel") public void Yeeha(String msg) { }
&gt; /* bean2 */
&gt; @Consume("seda:mychannel") public void Yaahi(String msg) { }
&gt;
&gt; to behave as if an explicit route is specified (with multicast):
&gt;
&gt; &lt;from uri="seda:channel"&gt;
&gt; &lt;multicast&gt;
&gt;  &lt;to uri="bean:bean1" /&gt;
&gt;  &lt;to uri="bean:bean2" /&gt;
&gt; &lt;/multicast&gt;
&gt; &lt;/from&gt;
&gt;
&gt; but right now, it seems messages are being routed round-robin when using the
&gt; @Consumer. That's why I said doing multicast dynamically (with @Consume)
&gt; seem to be not possible.
&gt;

No seda does *not* support multiple consumers. Its meant to be used
with a single consumer only.
In 2.1 this is even enforced. Often end users had copy paste mistakes
and didnt want multiple consumers to the same seda endpoint.
Hence why we enforced this now in 2.1.

What is your use case sine you need this? I am interesting in what you
are trying to solve?


What you could do is to extend seda, and have support multiple
consumers and have the Exchange being copied before its handed out to
every
consumers.

Mind that when you copy the Exchange / Message if the body is not a
simple type such as String then you may only copy a reference to it
and thus have multiple consumers work on it concurrently, and thus you
need to be aware of thread safety issues.

And there is a new interface in Camel 2.1, MultipleConsumersSupport,
which indicates whether an endpoint supports multiple consumers or
not.
You need to implement this and return true in your own component.




&gt; Thank you.
&gt; --
&gt; View this message in context: http://old.nabble.com/Implementing-Publish-Subscribe-Channel-tp26654086p26666101.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Camel source not available -- Re: cometd client connector for	Camel</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912060803m5d0e8a38u4f3978fb2de25172@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912060803m5d0e8a38u4f3978fb2de25172@mail-gmail-com%3e</id>
<updated>2009-12-06T16:03:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sun, Dec 6, 2009 at 4:54 PM, Hendy Irawan &lt;hendy@soluvas.com&gt; wrote:
&gt;
&gt;
&gt; Claus Ibsen-2 wrote:
&gt;&gt;
&gt;&gt; I have no idea. But we love contributions so if you think you can
&gt;&gt; improved the camel-cometd component then that would be great.
&gt;&gt;
&gt;
&gt; Thanks Claus, I guess that's the only logical action I should take.
&gt;
&gt; Trying to download Camel source though gives me 404 error:
&gt;
&gt; http://www.apache.org/dist/camel/apache-camel/2.1.0/apache-camel-2.1.0-src.tar.gz
&gt;
&gt; Brings me:
&gt;
&gt; Not Found
&gt;
&gt; The requested URL
&gt; /dist/camel/apache-camel/2.1.0/apache-camel-2.1.0-src.tar.gz was not found
&gt; on this server.
&gt; Apache/2.3.4 (Unix) mod_fcgid/2.3.2-dev Server at www.apache.org Port 80
&gt;

See this topic
http://old.nabble.com/2.1-release-download-td26658552.html


&gt; --
&gt; View this message in context: http://old.nabble.com/cometd-client-connector-for-Camel-tp26635861p26666122.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Camel source not available -- Re: cometd client connector for Camel</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26666122.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26666122-post@talk-nabble-com%3e</id>
<updated>2009-12-06T15:54:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>


Claus Ibsen-2 wrote:
&gt; 
&gt; I have no idea. But we love contributions so if you think you can
&gt; improved the camel-cometd component then that would be great.
&gt; 

Thanks Claus, I guess that's the only logical action I should take.

Trying to download Camel source though gives me 404 error:

http://www.apache.org/dist/camel/apache-camel/2.1.0/apache-camel-2.1.0-src.tar.gz

Brings me:

Not Found

The requested URL
/dist/camel/apache-camel/2.1.0/apache-camel-2.1.0-src.tar.gz was not found
on this server.
Apache/2.3.4 (Unix) mod_fcgid/2.3.2-dev Server at www.apache.org Port 80

-- 
View this message in context: http://old.nabble.com/cometd-client-connector-for-Camel-tp26635861p26666122.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Implementing Publish Subscribe Channel</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26666101.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26666101-post@talk-nabble-com%3e</id>
<updated>2009-12-06T15:51:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>



Claus Ibsen-2 wrote:
&gt; 
&gt; Maybe spring event can be used also?
&gt; http://camel.apache.org/event.html
&gt; 

I guess that'd mean my message has to be an ApplicationEvent.


Claus Ibsen-2 wrote:
&gt; 
&gt; You can create you own component that offers topic like functionally.
&gt; You could extend the seda or direct component and implement the logic
&gt; missing.
&gt; 

Thanks for the encouragement. :-)


Claus Ibsen-2 wrote:
&gt; 
&gt; I would assume adding @Consume to any POJO does not require any routes
&gt; to pre existing and cannot see why its not dynamic.
&gt; 

Yes indeed, unfortunately @Consume breaks when there are two @Consume'rs on
the same endpoint that is not a publish-subscribe channel. It seems like
it's doing round-robin (?) instead of multicast.

For example, I'd like:

/* bean1 */
@Consume("seda:mychannel") public void Yeeha(String msg) { }
/* bean2 */
@Consume("seda:mychannel") public void Yaahi(String msg) { }

to behave as if an explicit route is specified (with multicast):

&lt;from uri="seda:channel"&gt;
&lt;multicast&gt;
  &lt;to uri="bean:bean1" /&gt;
  &lt;to uri="bean:bean2" /&gt;
&lt;/multicast&gt;
&lt;/from&gt;

but right now, it seems messages are being routed round-robin when using the
@Consumer. That's why I said doing multicast dynamically (with @Consume)
seem to be not possible.

Thank you.
-- 
View this message in context: http://old.nabble.com/Implementing-Publish-Subscribe-Channel-tp26654086p26666101.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Implementing Publish Subscribe Channel</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912060358n674dcb57p6ea96ee0332642e3@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912060358n674dcb57p6ea96ee0332642e3@mail-gmail-com%3e</id>
<updated>2009-12-06T11:58:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, Dec 5, 2009 at 10:31 AM, Hendy Irawan &lt;hendy@soluvas.com&gt; wrote:
&gt;
&gt; Hi,
&gt;
&gt; I was trying to make a publish-subscribe mechanism by using (only)
&gt; @EndpointInject and @Consume, so that I can have somewhat POJO style routing
&gt; with minimal XML configuration.
&gt;
&gt; It turned out that this didn't work because multiple consumers don't work
&gt; with this setup.
&gt;
&gt; After reading http://camel.apache.org/publish-subscribe-channel.html it
&gt; seems that there are only three ways Camel supports Publish Subscribe:
&gt; 1. JMS Topic
&gt; 2. XMPP Room
&gt; 3. Explicit routes via multicast
&gt;
&gt; Option 1 and 2 is overkill because it requires external server.
&gt;

Maybe spring event can be used also?
http://camel.apache.org/event.html


&gt; So the functionality is basically there in Camel (option 3), however, I
&gt; cannot do it dynamically because it involves explicitly setting up the
&gt; routes, instead of doing it dynamically via @Consume.
&gt;

You can create you own component that offers topic like functionally.
You could extend the seda or direct component and implement the logic
missing.


&gt; Spring Integration seem to support this by allowing to create a
&gt; PublishSubscribeChannel explicitly.
&gt;
&gt; Is it planned to support easy "dynamic" Publish Subscribe Channel via
&gt; annotations (i.e. without explicit configuration)? Thank you.

I would assume adding @Consume to any POJO does not require any routes
to pre existing and cannot see why its not dynamic.


Why dont you create a small sample what you want as its easier to
discuss based on that.

And we love contributions
http://camel.apache.org/contributing.html

Just see Camel 2.1 which have 5 or so new components all contributed by others.


&gt; --
&gt; View this message in context: http://old.nabble.com/Implementing-Publish-Subscribe-Channel-tp26654086p26654086.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Webdav or Apache VFS components?</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912060353mcd2fcc9h3adbdfb093707555@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912060353mcd2fcc9h3adbdfb093707555@mail-gmail-com%3e</id>
<updated>2009-12-06T11:53:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, Dec 5, 2009 at 12:37 AM, boden &lt;boden.larson@gmail.com&gt; wrote:
&gt;
&gt; It doesn't look like there is a WebDAV component or more advanced file system
&gt; component such as VFS.
&gt;
&gt; If I want to talk to WebDAV or arbitrary network shares, what are my options
&gt; with Camel?
&gt;

No a commons-vfs was in the works but it got stalled. I wonder if
commons-vfs is still maintained?
Anyway do you know any good libraries to work with WebDAV?

Otherwise Camel only has the regular file and ftp components


&gt; Thanks!
&gt; --
&gt; View this message in context: http://old.nabble.com/Webdav-or-Apache-VFS-components--tp26648008p26648008.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: cometd client connector for Camel</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912060352t37f81ecfn6021555fd6b27c42@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912060352t37f81ecfn6021555fd6b27c42@mail-gmail-com%3e</id>
<updated>2009-12-06T11:52:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

On Fri, Dec 4, 2009 at 12:42 PM, Hendy Irawan &lt;hendy@soluvas.com&gt; wrote:
&gt;
&gt; I'm working with cometd on my current project and tried to use Camel-cometd.
&gt;
&gt; However, it seems that Camel sets up its own cometd server.
&gt;
&gt; What I'd like to do is connect to an existing cometd server, so the Camel
&gt; app acts as a cometd/Bayeux client. Now I'm doing this with cometd.org's
&gt; java-client and doing pretty well.
&gt;
&gt; But if anyone has any ideas how to make integration for this with Camel I'd
&gt; be more than happy to know. I don't know how to create a Camel connector.
&gt;

I have no idea. But we love contributions so if you think you can
improved the camel-cometd component then that would be great.


&gt; Thank you.
&gt; --
&gt; View this message in context: http://old.nabble.com/cometd-client-connector-for-Camel-tp26635861p26635861.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: 2.1 release download</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912052326ua17a91etfcd6c0646d2f2a61@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912052326ua17a91etfcd6c0646d2f2a61@mail-gmail-com%3e</id>
<updated>2009-12-06T07:26:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, Dec 5, 2009 at 8:41 PM, lujan99 &lt;lujan99@gmail.com&gt; wrote:
&gt;
&gt; I can't found any link with the distribution.
&gt; (I checked many mirrors)

Yeah I guess it takes time for Apache mirrors to sync.

You can find it in the central maven repo
http://repo1.maven.org/maven2/org/apache/camel/apache-camel/2.1.0/


&gt; --
&gt; View this message in context: http://old.nabble.com/2.1-release-download-tp26658552p26658552.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>2.1 release download</title>
<author><name>lujan99 &lt;lujan99@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26658552.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26658552-post@talk-nabble-com%3e</id>
<updated>2009-12-05T19:41:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I can't found any link with the distribution.
(I checked many mirrors)
-- 
View this message in context: http://old.nabble.com/2.1-release-download-tp26658552p26658552.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Implementing Publish Subscribe Channel</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26654086.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26654086-post@talk-nabble-com%3e</id>
<updated>2009-12-05T09:31:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I was trying to make a publish-subscribe mechanism by using (only)
@EndpointInject and @Consume, so that I can have somewhat POJO style routing
with minimal XML configuration.

It turned out that this didn't work because multiple consumers don't work
with this setup.

After reading http://camel.apache.org/publish-subscribe-channel.html it
seems that there are only three ways Camel supports Publish Subscribe:
1. JMS Topic
2. XMPP Room
3. Explicit routes via multicast

Option 1 and 2 is overkill because it requires external server.

So the functionality is basically there in Camel (option 3), however, I
cannot do it dynamically because it involves explicitly setting up the
routes, instead of doing it dynamically via @Consume.

Spring Integration seem to support this by allowing to create a
PublishSubscribeChannel explicitly.

Is it planned to support easy "dynamic" Publish Subscribe Channel via
annotations (i.e. without explicit configuration)? Thank you.
-- 
View this message in context: http://old.nabble.com/Implementing-Publish-Subscribe-Channel-tp26654086p26654086.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [ANNOUNCE] Apache Camel 2.1.0 Release</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26654057.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26654057-post@talk-nabble-com%3e</id>
<updated>2009-12-05T09:26:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Thank you Hadrian!

Sorry for the simple message, but I'm really proud of you guys for your
excellent work.

Hendy


hzbarcea wrote:
&gt; 
&gt; After a bit over three months of hard work we are pleased to introduce  
&gt; the Apache Camel 2.1.0 Release [1]. This is another major effort  
&gt; featuring an impressive 303 issues resolved. The Camel community is  
&gt; growing at a faster pace and we see a lot of involvement and  
&gt; contributions.
&gt; ...
&gt; [1] http://camel.apache.org/camel-210-release.html
&gt; 
-- 
View this message in context: http://old.nabble.com/-ANNOUNCE--Apache-Camel-2.1.0-Release-tp26647803p26654057.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: recipientList multithreading</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912050026v7a5e3eees1b9ca61a92968f90@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912050026v7a5e3eees1b9ca61a92968f90@mail-gmail-com%3e</id>
<updated>2009-12-05T08:26:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, Dec 5, 2009 at 9:20 AM, mcrive &lt;mcrive@optasportsdata.com&gt; wrote:
&gt;
&gt; Nice one.
&gt; Can you suggest a way to achieve what I need to do with Camel 2.1?
&gt;
&gt;

1)
Yeah you could send them message yourself from a processor / bean and
use the producerTemplate which has an async variation

See more at
http://camel.apache.org/async


2)
Or create your own recipient list processor which is inspired by the
code changes committed.
You just extend the existing recipient list, override the method that
leverages the MulticastProcessor where you indicate true for parallel.

And then use it just as a regular processor

from(x).to(new MyPrallelRecipientList());




&gt;
&gt; Claus Ibsen-2 wrote:
&gt;&gt;
&gt;&gt; No but we got a ticket for it
&gt;&gt; https://issues.apache.org/activemq/browse/CAMEL-2223
&gt;&gt;
&gt;&gt; And its possible to implement as the underlying logic supports it - so
&gt;&gt; its merely just to expose the settings.
&gt;&gt; We should get that into Camel 2.2 then :)
&gt;&gt;
&gt;
&gt; --
&gt; View this message in context: http://old.nabble.com/recipientList-multithreading-tp26635868p26653717.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: recipientList multithreading</title>
<author><name>mcrive &lt;mcrive@optasportsdata.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26653717.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26653717-post@talk-nabble-com%3e</id>
<updated>2009-12-05T08:20:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Nice one.
Can you suggest a way to achieve what I need to do with Camel 2.1?



Claus Ibsen-2 wrote:
&gt; 
&gt; No but we got a ticket for it
&gt; https://issues.apache.org/activemq/browse/CAMEL-2223
&gt; 
&gt; And its possible to implement as the underlying logic supports it - so
&gt; its merely just to expose the settings.
&gt; We should get that into Camel 2.2 then :)
&gt; 

-- 
View this message in context: http://old.nabble.com/recipientList-multithreading-tp26635868p26653717.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Webdav or Apache VFS components?</title>
<author><name>boden &lt;boden.larson@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26648008.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26648008-post@talk-nabble-com%3e</id>
<updated>2009-12-04T23:37:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

It doesn't look like there is a WebDAV component or more advanced file system
component such as VFS.

If I want to talk to WebDAV or arbitrary network shares, what are my options
with Camel?

Thanks!
-- 
View this message in context: http://old.nabble.com/Webdav-or-Apache-VFS-components--tp26648008p26648008.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Errors parsing camel-context.xml</title>
<author><name>Pete Mueller &lt;pete@routecloud.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26646469.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26646469-post@talk-nabble-com%3e</id>
<updated>2009-12-04T23:14:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

@william, @Claus
Thank you for these tips.  I have solved part of this issue.  I did need to
change the element to &lt;camel:json&gt;

However, I am still getting the same type of error on the
&lt;context:property-placeholder&gt; element.  I took this example from the camel
tutorial (pt 2).

&lt;context:property-placeholder properties-ref="camelProps"
placeholderPrefix="#{" placeholderSuffix="}" /&gt;

Looking at the online XSD
(http://www.springframework.org/schema/context/spring-context.xsd) There is
no listing for "placeholderPrefix"or "placeholderSuffix".  Which leads me to
the belief the tutorial is using a different schema.  Any idea which one?

I am using Karaf 1.0.0, Camel 2.0, Spring 2.5.6.SEC01

-pete

p.s. I am guessing that the tutorial assumed a ServiceMix 4.0 installation.
I have successfully gotten Camel/ActiveMQ/Hibernate/etc working in
out-of-box Karaf 1.0 and my feature file looks fairly different than the
tutorial.   I'd be happy to share it with those interested, or attach it to
the tutorial, if someone would enlighten me on the best way to do that.



Claus Ibsen-2 wrote:
&gt; 
&gt; On Fri, Dec 4, 2009 at 2:25 AM, Willem Jiang &lt;willem.jiang@gmail.com&gt;
&gt; wrote:
&gt;&gt; Which version of ServiceMix are you using?
&gt;&gt; Can you past your camel-context file?
&gt;&gt;
&gt;&gt; Maybe you are not using a right version of camel-spring schema ?
&gt;&gt;
&gt; 
&gt; Yeah I think some of the data formats got cleaned up in 2.1. And json
&gt; could very well be one of them.
&gt; So make sure to use the XSD version that matches the version of Camel.
&gt; 
&gt; And beware some IDE tools will use the online XSD which is SNAPSHOT based.
&gt; You should really use the XSD which is located in camel-spring.jar you
&gt; are using.
&gt; 
&gt; 
&gt; What you can always do is to declare the data format in the top
&gt; 
&gt; &lt;dataFormats&gt;
&gt;    &lt;json id="myJson" .../&gt;
&gt; &lt;/dataFormat&gt;
&gt; 
&gt; And then refer to it in the route
&gt; 
&gt; &lt;marshal id="myJson"/&gt;
&gt; 
&gt; 
&gt;&gt; Willem
&gt;&gt;
&gt;&gt; Pete Mueller wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; Hello,
&gt;&gt;&gt; I am receiving the following error trying to start up my camel routing
&gt;&gt;&gt; bundle with a camel-context.xml in it.
&gt;&gt;&gt; The error is:
&gt;&gt;&gt; org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
&gt;&gt;&gt; Line
&gt;&gt;&gt; 16 in XML document from URL
&gt;&gt;&gt; [bundle://135.0:0/META-INF/spring/camel-context.xml] is invalid; nested
&gt;&gt;&gt; exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:
&gt;&gt;&gt; Invalid
&gt;&gt;&gt; content was found starting with element 'json'. One of
&gt;&gt;&gt; '{"http://camel.apache.org/schema/spring":artixDS,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":bindy,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":csv,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":flatpack,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":gzip,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":hl7,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":jaxb,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":json,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":rss,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":secureXML,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":serialization,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":string,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":tidyMarkup,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":xmlBeans,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":xstream,
&gt;&gt;&gt; "http://camel.apache.org/schema/spring":zip}' is expected.
&gt;&gt;&gt;
&gt;&gt;&gt; Clearly from the error, it shows that "json" is an allowed element. but
&gt;&gt;&gt; SAX
&gt;&gt;&gt; says otherwise. Â Any idea how to reconcile this? Â I have a similar error
&gt;&gt;&gt; with using the placeholderPrefix attribute inside a property-placeholder
&gt;&gt;&gt; element.
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt; -p
&gt;&gt;&gt;
&gt;&gt;&gt; Here are relevant portions of my camel-context.xml if it helps. Â I
&gt;&gt;&gt; thought
&gt;&gt;&gt; perhaps I'm using the wrong schema.
&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt;&gt;&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans"
&gt;&gt;&gt; Â  Â  Â  Â xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;&gt;&gt; xmlns:context="http://www.springframework.org/schema/context"
&gt;&gt;&gt; Â  Â  Â  Â xmlns:osgi="http://www.springframework.org/schema/osgi"
&gt;&gt;&gt; xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
&gt;&gt;&gt; Â  Â  Â  Â xmlns:camel="http://camel.apache.org/schema/spring"
&gt;&gt;&gt;
&gt;&gt;&gt; Â  Â  Â  Â xsi:schemaLocation="http://www.springframework.org/schema/beans
&gt;&gt;&gt; http://www.springframework.org/schema/beans/spring-beans.xsd
&gt;&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â http://www.springframework.org/schema/context
&gt;&gt;&gt; http://www.springframework.org/schema/context/spring-context.xsd
&gt;&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â http://www.springframework.org/schema/osgi
&gt;&gt;&gt; http://www.springframework.org/schema/osgi/spring-osgi.xsd
&gt;&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â http://www.springframework.org/schema/osgi-compendium
&gt;&gt;&gt;
&gt;&gt;&gt; http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
&gt;&gt;&gt; Â  Â  Â  Â  Â  Â  Â  Â http://camel.apache.org/schema/spring
&gt;&gt;&gt; http://camel.apache.org/schema/spring/camel-spring.xsd"&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Â  Â  Â  Â &lt;context:property-placeholder properties-ref="camelProps"
&gt;&gt;&gt; placeholderPrefix="#{" placeholderSuffix="}" /&gt;
&gt;&gt;&gt; Â  Â  Â  Â &lt;camel:dataFormats&gt; Â  Â  Â  Â  Â &lt;json id="jsonMessage"
&gt;&gt;&gt; library="Jackson"
&gt;&gt;&gt; unmarshalTypeName="com.routecloud.bean.Message" /&gt;
&gt;&gt;&gt; Â &lt;/camel:dataFormats&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ...
&gt;&gt;
&gt;&gt;
&gt; 
&gt; 
&gt; 
&gt; -- 
&gt; Claus Ibsen
&gt; Apache Camel Committer
&gt; 
&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt; Open Source Integration: http://fusesource.com
&gt; Blog: http://davsclaus.blogspot.com/
&gt; Twitter: http://twitter.com/davsclaus
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Errors-parsing-camel-context.xml-tp26635732p26646469.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Best Practices for Triggering Routes from Code</title>
<author><name>rgavlin &lt;rgavlin@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26642545.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26642545-post@talk-nabble-com%3e</id>
<updated>2009-12-04T22:21:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Actually, I wanted to know how to start it from the same jvm using OSGi. Any
thoughts on this?

/Ron


Claus Ibsen-2 wrote:
&gt; 
&gt; On Fri, Dec 4, 2009 at 5:45 AM, rgavlin &lt;rgavlin@yahoo.com&gt; wrote:
&gt;&gt;
&gt;&gt; Hi Claus,
&gt;&gt;
&gt;&gt; Let's say I have a camel route that begins with from("nmr:...") deployed
&gt;&gt; as
&gt;&gt; an OSGi bundle in the upcoming SMX 4.1. Within a Camel route in another
&gt;&gt; OSGi
&gt;&gt; bundle I would like to lookup and then start the first route. Is it
&gt;&gt; possible
&gt;&gt; to use the OSGi Registry to perform such a lookup? If yes, do you have
&gt;&gt; any
&gt;&gt; examples of doing so?
&gt;&gt;
&gt; 
&gt; Not out of the box as staring a route is done from the CamelContext
&gt; and thus you need to do that using the CamelContext which owns the
&gt; route.
&gt; So starting from another JVM is not possible.
&gt; 
&gt; You can however use JMX to do this as you can invoke operations from
&gt; one JVM to another.
&gt; 
&gt; You could use a JMS topic that each CamelContext has a build in route
&gt; who listen on and then you can send "commands" to all or specific
&gt; camel contexts.
&gt; And maybe in the future we could add such a feature to Camel itself.
&gt; As it probably makes sense to manage such routes / flows more dynamic
&gt; and without the hazzle from JMX.
&gt; 
&gt; 
&gt; 
&gt;&gt; Thanks,
&gt;&gt;
&gt;&gt; /Ron
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Claus Ibsen-2 wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; On Thu, Dec 3, 2009 at 1:32 AM, mumbly &lt;mcnerney@gmail.com&gt; wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I'm talking about on demand triggering. Basically, I want to be able to
&gt;&gt;&gt;&gt; trigger a route programatically from within my code. I'm using quartz
&gt;&gt;&gt;&gt; already for certain batch processing. I'm just trying to understand how
&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt; items I listed differ, whether they are the set you'd want to use for
&gt;&gt;&gt;&gt; on
&gt;&gt;&gt;&gt; demand triggering and whether the ProducerTemplate is the right way to
&gt;&gt;&gt;&gt; go
&gt;&gt;&gt;&gt; about that.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Its easier in 2.1 as you can create routes which aren't started when
&gt;&gt;&gt; Camel starts
&gt;&gt;&gt; http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html
&gt;&gt;&gt;
&gt;&gt;&gt; And you can assign the route an id using .routeId in Java DSL or just
&gt;&gt;&gt; "id" attribute in XML.
&gt;&gt;&gt;
&gt;&gt;&gt; Then you can manually start that route from JMX, Java code etc.
&gt;&gt;&gt;
&gt;&gt;&gt; CamelContext context = ...
&gt;&gt;&gt;
&gt;&gt;&gt; context.startRoute("theIdOfYourRoute");
&gt;&gt;&gt;
&gt;&gt;&gt; context.stopRoute("theIdOfYourRoute");
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; --Tim
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Dragisa Krsmanovic wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; It depends what you mean by 'triggering'.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; If you want to automatically send a message to a queue at specific
&gt;&gt;&gt;&gt;&gt; intervals you can use Quartz component.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; For example, to send a "Hello World" message every 3 minutes:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; from("quartz://myCron?cron=0+0/3+*+*+*+?")
&gt;&gt;&gt;&gt;&gt; .setBody(constant("Hello World"))
&gt;&gt;&gt;&gt;&gt; .to(destination);
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Where destination can be anything ("direct:myQueue",
&gt;&gt;&gt;&gt;&gt; "activemq:myQueue"
&gt;&gt;&gt;&gt;&gt; etc.)
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Wed, 2009-12-02 at 14:00 -0800, mumbly wrote:
&gt;&gt;&gt;&gt;&gt;&gt; While many of our processes are triggered by some external event
&gt;&gt;&gt;&gt;&gt;&gt; (timer,
&gt;&gt;&gt;&gt;&gt;&gt; file
&gt;&gt;&gt;&gt;&gt;&gt; transfers, emails, web/REST/SOAP requests), there are a number of
&gt;&gt;&gt;&gt;&gt;&gt; instances
&gt;&gt;&gt;&gt;&gt;&gt; where we want to trigger a route from within our code. I'm trying
to
&gt;&gt;&gt;&gt;&gt;&gt; understand how Camel allows me to do this and what the recommended
&gt;&gt;&gt;&gt;&gt;&gt; practices/patterns for this type of interaction are.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; I see a handful of components which seem like they would meet the
&gt;&gt;&gt;&gt;&gt;&gt; criteria
&gt;&gt;&gt;&gt;&gt;&gt; for trigger, but I'm not clear on which I should use. Basically I'm
&gt;&gt;&gt;&gt;&gt;&gt; looking
&gt;&gt;&gt;&gt;&gt;&gt; at:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; * direct
&gt;&gt;&gt;&gt;&gt;&gt; * jms
&gt;&gt;&gt;&gt;&gt;&gt; * seda
&gt;&gt;&gt;&gt;&gt;&gt; * vm
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; It seems to me like they are similar, but it is unclear which are
&gt;&gt;&gt;&gt;&gt;&gt; best
&gt;&gt;&gt;&gt;&gt;&gt; under
&gt;&gt;&gt;&gt;&gt;&gt; what conditions. Is there some document comparing the pros and cons
&gt;&gt;&gt;&gt;&gt;&gt; and
&gt;&gt;&gt;&gt;&gt;&gt; potential use cases for these transports in non-test circumstances?
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; And is the general pattern of direct triggering to use a
&gt;&gt;&gt;&gt;&gt;&gt; ProducerTemplate?
&gt;&gt;&gt;&gt;&gt;&gt; It felt a bit like this was mainly for testing, but I don't see other
&gt;&gt;&gt;&gt;&gt;&gt; methods used in the examples (or for that matter, I don't recall
&gt;&gt;&gt;&gt;&gt;&gt; seeing
&gt;&gt;&gt;&gt;&gt;&gt; ProducerTemplate in non-test code, though I haven't searched too
&gt;&gt;&gt;&gt;&gt;&gt; closely).
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Basically, just trying to get some guidance as to the recommended
&gt;&gt;&gt;&gt;&gt;&gt; practice.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Thanks.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; --Tim
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; --
&gt;&gt;&gt;&gt;&gt; Dragisa Krsmanovic
&gt;&gt;&gt;&gt;&gt; Java Developer
&gt;&gt;&gt;&gt;&gt; Public Library of Science
&gt;&gt;&gt;&gt;&gt; http://www.plos.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
&gt;&gt;&gt;&gt;&gt; This email is confidential to the intended recipient. If you have
&gt;&gt;&gt;&gt;&gt; received
&gt;&gt;&gt;&gt;&gt; it in error, please notify the sender and delete it from your system.
&gt;&gt;&gt;&gt;&gt; Any
&gt;&gt;&gt;&gt;&gt; unauthorized use, disclosure or copying is not permitted. The views or
&gt;&gt;&gt;&gt;&gt; opinions presented are solely those of the sender and do not
&gt;&gt;&gt;&gt;&gt; necessarily
&gt;&gt;&gt;&gt;&gt; represent those of Public Library of Science unless otherwise
&gt;&gt;&gt;&gt;&gt; specifically
&gt;&gt;&gt;&gt;&gt; stated. Please note that neither Public Library of Science nor any of
&gt;&gt;&gt;&gt;&gt; its
&gt;&gt;&gt;&gt;&gt; agents accept any responsibility for any viruses that may be contained
&gt;&gt;&gt;&gt;&gt; in
&gt;&gt;&gt;&gt;&gt; this e-mail or its attachments and it is your responsibility to scan
&gt;&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt;&gt; e-mail and attachments (if any).
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; --
&gt;&gt;&gt;&gt; View this message in context:
&gt;&gt;&gt;&gt; http://old.nabble.com/Best-Practices-for-Triggering-Routes-from-Code-tp26617252p26619145.html
&gt;&gt;&gt;&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; --
&gt;&gt;&gt; Claus Ibsen
&gt;&gt;&gt; Apache Camel Committer
&gt;&gt;&gt;
&gt;&gt;&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt;&gt;&gt; Open Source Integration: http://fusesource.com
&gt;&gt;&gt; Blog: http://davsclaus.blogspot.com/
&gt;&gt;&gt; Twitter: http://twitter.com/davsclaus
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt; View this message in context:
&gt;&gt; http://old.nabble.com/Best-Practices-for-Triggering-Routes-from-Code-tp26617252p26635764.html
&gt;&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt; 
&gt; 
&gt; 
&gt; -- 
&gt; Claus Ibsen
&gt; Apache Camel Committer
&gt; 
&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt; Open Source Integration: http://fusesource.com
&gt; Blog: http://davsclaus.blogspot.com/
&gt; Twitter: http://twitter.com/davsclaus
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Best-Practices-for-Triggering-Routes-from-Code-tp26617252p26642545.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>[ANNOUNCE] Apache Camel 2.1.0 Release</title>
<author><name>Hadrian Zbarcea &lt;hzbarcea@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3cF35B6FF5-8D0B-408F-BAED-EAF982E36CE4@gmail.com%3e"/>
<id>urn:uuid:%3cF35B6FF5-8D0B-408F-BAED-EAF982E36CE4@gmail-com%3e</id>
<updated>2009-12-04T19:20:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
After a bit over three months of hard work we are pleased to introduce  
the Apache Camel 2.1.0 Release [1]. This is another major effort  
featuring an impressive 303 issues resolved. The Camel community is  
growing at a faster pace and we see a lot of involvement and  
contributions.

The feature and improvements list is too large to fit here, so please  
check out the release notes. Most notable changes are:

	• Claus was very busy with a serious Camel JMX overhaul, including a  
pluggable management API to allow 3rd party tools.
	• Improvements for using Camel in OSGi environments
	• A bunch of new components contributed by the community such as
		• Printer very handy to batch print those reports overnight
		• SNMP gives you the capability to poll SNMP capable devices or  
receive traps.
		• GAE provides connectivity to the cloud computing services provided  
by Googls's App Engine
	• Improvements in error handling
	• As usual, a lot of fixes and enhancement of the 70+ Components
Many thanks and our gratitude to all the contributors who made this  
release possible. Download Camel now and enjoy the ride!

The Camel Riders


[1] http://camel.apache.org/camel-210-release.html

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Free Fuse day - talks on Apache ActiveMQ, ServiceMix and Camel</title>
<author><name>Hiram Chirino &lt;hiram@hiramchirino.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3caf2843cd0912041004i5f14c4f3ye7a9dbee7c342097@mail.gmail.com%3e"/>
<id>urn:uuid:%3caf2843cd0912041004i5f14c4f3ye7a9dbee7c342097@mail-gmail-com%3e</id>
<updated>2009-12-04T18:04:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yay!  Just found out I'll be attending the San Francisco event!

Anyone else able to make it out?


On Mon, Nov 30, 2009 at 7:24 AM, Rob Davies &lt;rajdavies@gmail.com&gt; wrote:
&gt;
&gt; If any folks are in New York on December 8th or near San Francisco on
&gt; December 10th - there is a free Community day sponsored by Fuse Source -
&gt; with talks on Apache ServiceMix, ActiveMQ and Camel.
&gt; If you'd like to attend - you need to register - its all free and includes
&gt; lunch. If you can't make it - James Strachan and myself will no doubt be
&gt; found in a local bar afterwards - so why not pop by for a chat and a beer.
&gt; Not being local, suggestions are welcome :)
&gt;
&gt; To register for the New York  event (Hyatt Hotel next to Grand Central) on
&gt; December 8th - go here: http://form.fusesource.com/forms/registerny2009
&gt; To register for the San Francisco event (Hyatt Hotel next to the er, Airport
&gt; :( )  on December 10th - go here:
&gt; http://form.fusesource.com/forms/registersf2009
&gt;
&gt; cheers,
&gt;
&gt; Rob
&gt;
&gt; Rob Davies
&gt; http://twitter.com/rajdavies
&gt; I work here: http://fusesource.com
&gt; My Blog: http://rajdavies.blogspot.com/
&gt; I'm writing this: http://www.manning.com/snyder/
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: NullPointerException in FileComponent</title>
<author><name>erh &lt;EHASZLA@transunion.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26636156.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26636156-post@talk-nabble-com%3e</id>
<updated>2009-12-04T17:23:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>


Claus Ibsen-2 wrote:
&gt; 
&gt; And you are sure your bean does not throw a NPE exception?
&gt; 
&gt; But yeah without a stacktrace or any more detailed logging its hard to
&gt; work out.
&gt; 

I actually got a stack trace this time:

[2009-12-04 01:46:53,105][WARN][Thread: 1
org.apache.camel.component.file.FileComponent@1c04f13][camel.impl.ScheduledPollConsumer(ScheduledPollConsumer)-run(68)]:
An exception occured while polling:
Endpoint[file:data/input?consumer.recursive=false&amp;lock=true&amp;consumer.exclusiveReadLock=true&amp;noop=true]:
null
java.lang.NullPointerException
    at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:99)
    at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:66)
    at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
    at etc...

however, a few lines before that, I got a:
Caused by: java.io.IOException: Too many open files

from a different exception.  So, it's not really a camel bug, although the
error from camel is a bit misleading.

btw, the code around line 99 is
            if (isValidFile(fileOrDirectory)) {
                if (LOG.isTraceEnabled()) {
                    LOG.trace("Polling directory " + fileOrDirectory);
                }
                File[] files = fileOrDirectory.listFiles();
                for (File file : files) {                         &lt;------
line 99
                    rc += pollFileOrDirectory(file, isRecursive()); //
self-recursion
                }
            }

listFiles() is defined to return null is some cases.  Camel 2.0 has an
explicit check for that, and just silently returns.

eric
-- 
View this message in context: http://old.nabble.com/NullPointerException-in-FileComponent-tp26594231p26636156.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: recipientList multithreading</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912040849j2b470175odddb1308d11da3c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912040849j2b470175odddb1308d11da3c@mail-gmail-com%3e</id>
<updated>2009-12-04T16:49:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, Dec 4, 2009 at 1:09 PM, Claus Ibsen &lt;claus.ibsen@gmail.com&gt; wrote:
&gt; On Fri, Dec 4, 2009 at 1:02 PM, mcrive &lt;mcrive@optasportsdata.com&gt; wrote:
&gt;&gt;
&gt;&gt; Is there a way to make the recipientList to send to endpoint in a multi
&gt;&gt; thread manner?
&gt;&gt; for instance if it contains a list of FTP endpoint (producer) I would like
&gt;&gt; to deploy files at the same time.
&gt;&gt; as it is implemented now it starts producing the 2nd as the 1st is completed
&gt;&gt; --
&gt;
&gt; No but we got a ticket for it
&gt; https://issues.apache.org/activemq/browse/CAMEL-2223
&gt;

Hi

I have implemented this and committed to trunk.
Will thus be included in Camel 2.2.
svn rev: 887262.


The wiki page
http://camel.apache.org/recipient-list.html

Has been updated but it takes a couple of hours for it to be synced.

You are welcome to try 2.2-SNAPSHOT and see for yourself.
http://camel.apache.org/download.html




&gt; And its possible to implement as the underlying logic supports it - so
&gt; its merely just to expose the settings.
&gt; We should get that into Camel 2.2 then :)
&gt;
&gt;
&gt;&gt; View this message in context: http://old.nabble.com/recipientList-multithreading-tp26635868p26635868.html
&gt;&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt;
&gt; --
&gt; Claus Ibsen
&gt; Apache Camel Committer
&gt;
&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt; Open Source Integration: http://fusesource.com
&gt; Blog: http://davsclaus.blogspot.com/
&gt; Twitter: http://twitter.com/davsclaus
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Jersey No Longer Supported?</title>
<author><name>Charles Moulliard &lt;cmoulliard@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3ca364c40b0912040839p5081c305y4496d6c799fa031d@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca364c40b0912040839p5081c305y4496d6c799fa031d@mail-gmail-com%3e</id>
<updated>2009-12-04T16:39:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The component http://camel.apache.org/web-console.html has been designed
around jersey implementation of JAX-RS

As you mention camel-cxf is based on CXF and camel-restlet on RESTlet

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&amp;gid=2447439&amp;trk=anet_ug_hm


On Fri, Dec 4, 2009 at 5:29 PM, mumbly &lt;mcnerney@gmail.com&gt; wrote:

&gt;
&gt; I'm a bit confused as to whether Jersey is currently supported for REST.
&gt; I've
&gt; seen indications that it was supported at some point from searches I've
&gt; made, but it looks like there are only camel-cxf and camel-restlet
&gt; components currently in the lineup. Did Jersey support get deprecated? Was
&gt; it never really there?
&gt;
&gt; Thanks.
&gt;
&gt; --Tim
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Jersey-No-Longer-Supported--tp26635942p26635942.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Jersey No Longer Supported?</title>
<author><name>mumbly &lt;mcnerney@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26635942.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635942-post@talk-nabble-com%3e</id>
<updated>2009-12-04T16:29:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I'm a bit confused as to whether Jersey is currently supported for REST. I've
seen indications that it was supported at some point from searches I've
made, but it looks like there are only camel-cxf and camel-restlet
components currently in the lineup. Did Jersey support get deprecated? Was
it never really there?

Thanks.

--Tim
-- 
View this message in context: http://old.nabble.com/Jersey-No-Longer-Supported--tp26635942p26635942.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Question about camel-jpa and camel-etl</title>
<author><name>Charles Moulliard &lt;cmoulliard@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3ca364c40b0912040420w3651c0b0wf6816f5c78736064@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca364c40b0912040420w3651c0b0wf6816f5c78736064@mail-gmail-com%3e</id>
<updated>2009-12-04T12:20:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have found a workaround by adding this in the spring config file, it works

    &lt;!--  Added for OSGI platform to allow to retrieve entityManagerFactory
--&gt;
    &lt;bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent"&gt;
           &lt;property name="entityManagerFactory"
ref="entityManagerFactory"/&gt;
    &lt;/bean&gt;


Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&amp;gid=2447439&amp;trk=anet_ug_hm


On Fri, Dec 4, 2009 at 1:11 PM, Claus Ibsen &lt;claus.ibsen@gmail.com&gt; wrote:

&gt; Hi
&gt;
&gt; Why dont you try to fix it yourself? Maybe its just a matter of adding
&gt; that factory to the configuration.
&gt;
&gt;
&gt; On Fri, Dec 4, 2009 at 11:05 AM, Charles Moulliard &lt;cmoulliard@gmail.com&gt;
&gt; wrote:
&gt; &gt; In the wiki page of camel-jpa component, it is mentioned that a
&gt; &gt; entityManagerFactory must be specified like this :
&gt; &gt;
&gt; &gt; &lt;bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent"&gt;
&gt; &gt;   &lt;property name="entityManagerFactory" ref="myEMFactory"/&gt;
&gt; &gt; &lt;/bean&gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; Surprisingly, I don't see this in the camel-example-etl example.
&gt; &gt;
&gt; &gt; When deploying camel-example-etl on Apache Felix Karaf, felix complains
&gt; that
&gt; &gt; :
&gt; &gt;
&gt; &gt; Caused by: java.lang.IllegalArgumentException: entityManagerFactory must
&gt; be
&gt; &gt; specified
&gt; &gt;    at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:244)
&gt; &gt;    at
&gt; &gt; org.apache.camel.component.jpa.JpaEndpoint.validate(JpaEndpoint.java:230)
&gt; &gt;    at
&gt; &gt;
&gt; org.apache.camel.component.jpa.JpaEndpoint.createConsumer(JpaEndpoint.java:87)
&gt; &gt;
&gt; &gt; Charles Moulliard
&gt; &gt; Senior Enterprise Architect
&gt; &gt; Apache Camel Committer
&gt; &gt;
&gt; &gt; *****************************
&gt; &gt; blog : http://cmoulliard.blogspot.com
&gt; &gt; twitter : http://twitter.com/cmoulliard
&gt; &gt; Linkedlin : http://www.linkedin.com/in/charlesmoulliard
&gt; &gt;
&gt; &gt; Apache Camel Group :
&gt; &gt; http://www.linkedin.com/groups?home=&amp;gid=2447439&amp;trk=anet_ug_hm
&gt; &gt;
&gt;
&gt;
&gt;
&gt; --
&gt; Claus Ibsen
&gt; Apache Camel Committer
&gt;
&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt; Open Source Integration: http://fusesource.com
&gt; Blog: http://davsclaus.blogspot.com/
&gt; Twitter: http://twitter.com/davsclaus
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Two routes with InOut - jms ??</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912040412s136569e5la334a482246be4fb@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912040412s136569e5la334a482246be4fb@mail-gmail-com%3e</id>
<updated>2009-12-04T12:12:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Use tracer and check what the JMSReplyTo is set to. It should be InOut MEP.

On Wed, Dec 2, 2009 at 5:10 PM, Charles Moulliard &lt;cmoulliard@gmail.com&gt; wrote:
&gt; The following route works fine :
&gt;
&gt;    &lt;bean id="reportIncidentService"
&gt; class="org.apache.camel.example.reportincident.restful.ReportIncidentService"
&gt; /&gt;
&gt;    &lt;bean id="restProcessor"
&gt; class="org.apache.camel.example.reportincident.routing.RestFullProcessor"/&gt;
&gt;
&gt;    &lt;cxf:rsServer id="rsServer" address="/camel-rest-example/"
&gt;
&gt; serviceClass="org.apache.camel.example.reportincident.restful.ReportIncidentService"
&gt; /&gt;
&gt;
&gt;    &lt;camel:camelContext trace="true"
&gt;        xmlns="http://camel.apache.org/schema/osgi"&gt;
&gt;
&gt;        &lt;camel:route&gt;
&gt;            &lt;camel:from uri="cxfrs:bean:rsServer" /&gt;
&gt;            &lt;camel:bean ref="restProcessor" method="processRequest"/&gt;
&gt;        &lt;/camel:route&gt;
&gt;    &lt;/camel:camelContext&gt;
&gt;
&gt; but when I try to use in between a jms queue the exchange.getOut().setBody()
&gt; defined in the method processRequest is never returned to the camel cxfrs
&gt; endpoint
&gt;
&gt;        &lt;camel:route&gt;
&gt;            &lt;camel:from uri="cxfrs:bean:rsServer" /&gt;
&gt;            &lt;camel:to uri="jms:queue:in" /&gt;
&gt;        &lt;/camel:route&gt;
&gt;
&gt;        &lt;camel:route&gt;
&gt;            &lt;camel:from uri="jms:queue:in"/&gt;
&gt;            &lt;camel:bean ref="restProcessor" method="processRequest"/&gt;
&gt;        &lt;/camel:route&gt;
&gt;
&gt; Regards,
&gt;
&gt; Charles Moulliard
&gt; Senior Enterprise Architect
&gt; Apache Camel Committer
&gt;
&gt; *****************************
&gt; blog : http://cmoulliard.blogspot.com
&gt; twitter : http://twitter.com/cmoulliard
&gt; Linkedlin : http://www.linkedin.com/in/charlesmoulliard
&gt;
&gt; Apache Camel Group :
&gt; http://www.linkedin.com/groups?home=&amp;gid=2447439&amp;trk=anet_ug_hm
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Question about camel-jpa and camel-etl</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912040411r201d2795p8b92d5d15c6f382a@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912040411r201d2795p8b92d5d15c6f382a@mail-gmail-com%3e</id>
<updated>2009-12-04T12:11:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

Why dont you try to fix it yourself? Maybe its just a matter of adding
that factory to the configuration.


On Fri, Dec 4, 2009 at 11:05 AM, Charles Moulliard &lt;cmoulliard@gmail.com&gt; wrote:
&gt; In the wiki page of camel-jpa component, it is mentioned that a
&gt; entityManagerFactory must be specified like this :
&gt;
&gt; &lt;bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent"&gt;
&gt;   &lt;property name="entityManagerFactory" ref="myEMFactory"/&gt;
&gt; &lt;/bean&gt;
&gt;
&gt;
&gt; Surprisingly, I don't see this in the camel-example-etl example.
&gt;
&gt; When deploying camel-example-etl on Apache Felix Karaf, felix complains that
&gt; :
&gt;
&gt; Caused by: java.lang.IllegalArgumentException: entityManagerFactory must be
&gt; specified
&gt;    at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:244)
&gt;    at
&gt; org.apache.camel.component.jpa.JpaEndpoint.validate(JpaEndpoint.java:230)
&gt;    at
&gt; org.apache.camel.component.jpa.JpaEndpoint.createConsumer(JpaEndpoint.java:87)
&gt;
&gt; Charles Moulliard
&gt; Senior Enterprise Architect
&gt; Apache Camel Committer
&gt;
&gt; *****************************
&gt; blog : http://cmoulliard.blogspot.com
&gt; twitter : http://twitter.com/cmoulliard
&gt; Linkedlin : http://www.linkedin.com/in/charlesmoulliard
&gt;
&gt; Apache Camel Group :
&gt; http://www.linkedin.com/groups?home=&amp;gid=2447439&amp;trk=anet_ug_hm
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: recipientList multithreading</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912040409j6627feecv1e36e67ac78260dd@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912040409j6627feecv1e36e67ac78260dd@mail-gmail-com%3e</id>
<updated>2009-12-04T12:09:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, Dec 4, 2009 at 1:02 PM, mcrive &lt;mcrive@optasportsdata.com&gt; wrote:
&gt;
&gt; Is there a way to make the recipientList to send to endpoint in a multi
&gt; thread manner?
&gt; for instance if it contains a list of FTP endpoint (producer) I would like
&gt; to deploy files at the same time.
&gt; as it is implemented now it starts producing the 2nd as the 1st is completed
&gt; --

No but we got a ticket for it
https://issues.apache.org/activemq/browse/CAMEL-2223

And its possible to implement as the underlying logic supports it - so
its merely just to expose the settings.
We should get that into Camel 2.2 then :)


&gt; View this message in context: http://old.nabble.com/recipientList-multithreading-tp26635868p26635868.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>recipientList multithreading</title>
<author><name>mcrive &lt;mcrive@optasportsdata.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26635868.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635868-post@talk-nabble-com%3e</id>
<updated>2009-12-04T12:02:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Is there a way to make the recipientList to send to endpoint in a multi
thread manner?
for instance if it contains a list of FTP endpoint (producer) I would like
to deploy files at the same time.
as it is implemented now it starts producing the 2nd as the 1st is completed
-- 
View this message in context: http://old.nabble.com/recipientList-multithreading-tp26635868p26635868.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>cometd client connector for Camel</title>
<author><name>Hendy Irawan &lt;hendy@soluvas.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26635861.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635861-post@talk-nabble-com%3e</id>
<updated>2009-12-04T11:42:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I'm working with cometd on my current project and tried to use Camel-cometd.

However, it seems that Camel sets up its own cometd server.

What I'd like to do is connect to an existing cometd server, so the Camel
app acts as a cometd/Bayeux client. Now I'm doing this with cometd.org's
java-client and doing pretty well.

But if anyone has any ideas how to make integration for this with Camel I'd
be more than happy to know. I don't know how to create a Camel connector.

Thank you.
-- 
View this message in context: http://old.nabble.com/cometd-client-connector-for-Camel-tp26635861p26635861.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Testing Camel with a Groovy script</title>
<author><name>Claus Ibsen &lt;claus.ibsen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c5380c69c0912040213y3d0b597ve4fae67d18e61fb9@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5380c69c0912040213y3d0b597ve4fae67d18e61fb9@mail-gmail-com%3e</id>
<updated>2009-12-04T10:13:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, Dec 4, 2009 at 9:37 AM, bgoetzmann &lt;bgoetzmann@sophia.symag.com&gt; wrote:
&gt;
&gt; Hello,
&gt;
&gt; I would liket just point out this article on Groovy and Camel:
&gt; http://groovy.dzone.com/articles/groovy-ride-camel
&gt;
&gt; What is very interesting with Groovy and its GRAPE system is that you can
&gt; easily test Camel with a simple Groovy script even used in the Groovy
&gt; console!
&gt; Perhaps, this can be useful for some introduction to Camel in the coming
&gt; book "Camel in action"!!
&gt;

Yeah its a great article and nice that you can have all in a single
file and dont need to battle with maven poms.
However for some people getting groovy installed and ready to use is
also a challenge.

For the book we have though of a section about alternative languages
such as Scala, Groovy, Ruby etc. to use with Camel.
But there is just so many things to talk about with Camel that we have
to make a decision what to include.

Feedback and ideas what you want in the book is welcome and preferred
to be discussed at the book forum
http://www.manning-sandbox.com/forum.jspa?forumID=601




&gt; Cheers,
&gt;
&gt; Bertrand.
&gt; --
&gt; View this message in context: http://old.nabble.com/Testing-Camel-with-a-Groovy-script-tp26635810p26635810.html
&gt; Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus


</pre>
</div>
</content>
</entry>
<entry>
<title>Question about camel-jpa and camel-etl</title>
<author><name>Charles Moulliard &lt;cmoulliard@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3ca364c40b0912040205l33584056lc91f9872ee45fc5f@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca364c40b0912040205l33584056lc91f9872ee45fc5f@mail-gmail-com%3e</id>
<updated>2009-12-04T10:05:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In the wiki page of camel-jpa component, it is mentioned that a
entityManagerFactory must be specified like this :

&lt;bean id="jpa" class="org.apache.camel.component.jpa.JpaComponent"&gt;
   &lt;property name="entityManagerFactory" ref="myEMFactory"/&gt;
&lt;/bean&gt;


Surprisingly, I don't see this in the camel-example-etl example.

When deploying camel-example-etl on Apache Felix Karaf, felix complains that
:

Caused by: java.lang.IllegalArgumentException: entityManagerFactory must be
specified
    at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:244)
    at
org.apache.camel.component.jpa.JpaEndpoint.validate(JpaEndpoint.java:230)
    at
org.apache.camel.component.jpa.JpaEndpoint.createConsumer(JpaEndpoint.java:87)

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&amp;gid=2447439&amp;trk=anet_ug_hm


</pre>
</div>
</content>
</entry>
<entry>
<title>Getting error when using Apache camel inside servicemix.</title>
<author><name>Harbeer Kadian &lt;harbeer.kadian@altair.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26635824.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635824-post@talk-nabble-com%3e</id>
<updated>2009-12-04T09:36:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I created one webservice in the OSGI format and installed it in the
servicemix.
The webservice worked fine and i was able to send and receive requests
through SoapUI software.

I tried to add some apache camel code inside this so that i can send a
string to a file.

The implementation is as follows
This is my webservice implementation class.

package com.webservice.calculator;

import java.util.logging.Logger;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

import org.apache.camel.CamelContext;
import org.apache.camel.Component;
import org.apache.camel.Endpoint;
import org.apache.camel.Exchange;
import org.apache.camel.Producer;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.component.file.FileComponent;
import org.apache.camel.component.log.LogComponent;
import org.apache.camel.impl.DefaultCamelContext;

import com.progress.pso.payments_api.PaymentsApi;

/**
 * This class was generated by Apache CXF 2.2.5
 * Tue Dec 01 17:46:59 IST 2009
 * Generated source version: 2.2.5
 * 
 */

@javax.jws.WebService(
                      serviceName = "CalculatorService",
                      portName = "CalculatorSoapPort",
                      targetNamespace = "http://calculator.webservice.com",
                      wsdlLocation =
"file:/D:/harbeer/Maven_Project/payment-web-service-osgi/src/main/resources/wsdl/Calculator.wsdl",
                      endpointInterface =
"com.webservice.calculator.CalculatorPortType")
                      
public class CalculatorPortTypeImpl implements CalculatorPortType {

    private static final Logger LOG =
Logger.getLogger(CalculatorPortTypeImpl.class.getName());
    private PaymentsApi paymentApi;
    private CamelContext camel;
    private ProducerTemplate template;

    
    public CalculatorPortTypeImpl() throws Exception {
    	camel = new DefaultCamelContext();
    	template = camel.createProducerTemplate();
    	camel.addComponent("file", new FileComponent());
    	camel.start();
    }
    
    public void setPaymentApi(PaymentsApi paymentApi) {
    	this.paymentApi = paymentApi;
    }

    /* (non-Javadoc)
     * @see
com.webservice.calculator.CalculatorPortType#subtractNumbers(java.math.BigInteger 
inputOne ,)java.math.BigInteger  inputTwo )*
     */
    public java.math.BigInteger subtractNumbers(java.math.BigInteger
inputOne,java.math.BigInteger inputTwo) { 
        try {
        	sendToCamelFile("harbeer");
            return paymentApi.subtractNumbers(inputOne, inputTwo);
        } catch (Exception ex) {
            ex.printStackTrace();
            throw new RuntimeException(ex);
        }
    }

    
    private void sendToCamelFile(String name) {
    	try {
    		
            // get the log component
            Component component = camel.getComponent("file");

            Endpoint endpoint =
component.createEndpoint("file:///D:/harbeer");
            Exchange exchange = endpoint.createExchange();
            exchange.getIn().setBody(name);
            exchange.getIn().setHeader(FileComponent.HEADER_FILE_NAME,
"harbeer.txt");

            // now we want to send the exchange to this endpoint and we then
need a producer
            // for this, so we create and start the producer.
            Producer producer = endpoint.createProducer();
            System.out.println(producer);
            producer.start();
            System.out.println(name);
            producer.process(exchange);
            producer.stop();

        } catch (Exception e) {
            // we ignore any exceptions and just rethrow as runtime
            throw new RuntimeException(e);

        }

    }

}

I installed this new webservice implementation inside servicemix 4 as an
osgi bundle.
I got following exception when i called webservice method subtractNumbers();


Caused by: org.apache.camel.NoTypeConversionAvailableException: No type
converte
r available to convert from type: class
org.apache.camel.component.file.FileMess
age to the required type: java.io.InputStream with value FileMessage:
D:\harbeer

        at
org.apache.camel.impl.converter.DefaultTypeConverter.doConvertTo(Defa
ultTypeConverter.java:147)
        at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(Defaul
tTypeConverter.java:90)
        at
org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(Defaul
tTypeConverter.java:86)
        at
org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:85)
        at
org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)
        at
org.apache.camel.util.ExchangeHelper.getMandatoryInBody(ExchangeHelpe
r.java:130)
        at
org.apache.camel.component.file.FileProducer.process(FileProducer.jav
a:78)
        at
org.apache.camel.component.file.FileProducer.process(FileProducer.jav
a:61)
        at
com.webservice.calculator.CalculatorPortTypeImpl.sendToCamelFile(Calc
ulatorPortTypeImpl.java:129)
        ... 31 more

Please help if i am missing some thing.

With Regards
Harbeer Kadian
-- 
View this message in context: http://old.nabble.com/Getting-error-when-using-Apache-camel-inside-servicemix.-tp26635824p26635824.html
Sent from the Camel - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Errors parsing camel-context.xml</title>
<author><name>Gert Vanthienen &lt;gert.vanthienen@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c67a6ab030912040039i76def49awdd12f8f0e235a3ad@mail.gmail.com%3e"/>
<id>urn:uuid:%3c67a6ab030912040039i76def49awdd12f8f0e235a3ad@mail-gmail-com%3e</id>
<updated>2009-12-04T08:39:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Pete,

I think it's just a matter of adding the camel: prefix before the json
element as well - the way it is written now, the json element is not
using the camel namespace and I suspect that's why you're getting the
parse exception (which says it found element "json" and was expecting
"http://camel.apache.org/schema/spring":json )

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/12/4 Pete Mueller &lt;pete@routecloud.com&gt;:
&gt;
&gt; Hello,
&gt;
&gt; I am receiving the following error trying to start up my camel routing
&gt; bundle with a camel-context.xml in it.
&gt;
&gt; The error is:
&gt; org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
&gt; 16 in XML document from URL
&gt; [bundle://135.0:0/META-INF/spring/camel-context.xml] is invalid; nested
&gt; exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
&gt; content was found starting with element 'json'. One of
&gt; '{"http://camel.apache.org/schema/spring":artixDS,
&gt; "http://camel.apache.org/schema/spring":bindy,
&gt; "http://camel.apache.org/schema/spring":csv,
&gt; "http://camel.apache.org/schema/spring":flatpack,
&gt; "http://camel.apache.org/schema/spring":gzip,
&gt; "http://camel.apache.org/schema/spring":hl7,
&gt; "http://camel.apache.org/schema/spring":jaxb,
&gt; "http://camel.apache.org/schema/spring":json,
&gt; "http://camel.apache.org/schema/spring":rss,
&gt; "http://camel.apache.org/schema/spring":secureXML,
&gt; "http://camel.apache.org/schema/spring":serialization,
&gt; "http://camel.apache.org/schema/spring":string,
&gt; "http://camel.apache.org/schema/spring":tidyMarkup,
&gt; "http://camel.apache.org/schema/spring":xmlBeans,
&gt; "http://camel.apache.org/schema/spring":xstream,
&gt; "http://camel.apache.org/schema/spring":zip}' is expected.
&gt;
&gt; Clearly from the error, it shows that "json" is an allowed element. but SAX
&gt; says otherwise.  Any idea how to reconcile this?  I have a similar error
&gt; with using the placeholderPrefix attribute inside a property-placeholder
&gt; element.
&gt;
&gt; Thanks,
&gt; -p
&gt;
&gt; Here are relevant portions of my camel-context.xml if it helps.  I thought
&gt; perhaps I'm using the wrong schema.
&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans"
&gt;        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt; xmlns:context="http://www.springframework.org/schema/context"
&gt;        xmlns:osgi="http://www.springframework.org/schema/osgi"
&gt; xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
&gt;        xmlns:camel="http://camel.apache.org/schema/spring"
&gt;
&gt;        xsi:schemaLocation="http://www.springframework.org/schema/beans
&gt; http://www.springframework.org/schema/beans/spring-beans.xsd
&gt;                http://www.springframework.org/schema/context
&gt; http://www.springframework.org/schema/context/spring-context.xsd
&gt;                http://www.springframework.org/schema/osgi
&gt; http://www.springframework.org/schema/osgi/spring-osgi.xsd
&gt;                http://www.springframework.org/schema/osgi-compendium
&gt; http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
&gt;                http://camel.apache.org/schema/spring
&gt; http://camel.apache.org/schema/spring/camel-spring.xsd"&gt;
&gt;
&gt;        &lt;context:property-placeholder properties-ref="camelProps"
&gt; placeholderPrefix="#{" placeholderSuffix="}" /&gt;
&gt;        &lt;camel:dataFormats&gt;
&gt;          &lt;json id="jsonMessage" library="Jackson"
&gt; unmarshalTypeName="com.routecloud.bean.Message" /&gt;
&gt;        &lt;/camel:dataFormats&gt;
&gt;
&gt; ...
&gt; --
&gt; View this message in context: http://old.nabble.com/Errors-parsing-camel-context.xml-tp26635732p26635732.html
&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Testing Camel with a Groovy script</title>
<author><name>bgoetzmann &lt;bgoetzmann@sophia.symag.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3c26635810.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26635810-post@talk-nabble-com%3e</id>
<updated>2009-12-04T08:37:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hello,

I would liket just point out this article on Groovy and Camel:
http://groovy.dzone.com/articles/groovy-ride-camel

What is very interesting with Groovy and its GRAPE system is that you can
easily test Camel with a simple Groovy script even used in the Groovy
console!
Perhaps, this can be useful for some introduction to Camel in the coming
book "Camel in action"!!

Cheers,

Bertrand.
-- 
View this message in context: http://old.nabble.com/Testing-Camel-with-a-Groovy-script-tp26635810p26635810.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Classpath problem with camel-cxf and OSGi</title>
<author><name>Charles Moulliard &lt;cmoulliard@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/camel-users/200912.mbox/%3ca364c40b0912040004j368569d6gb3f57af0b1840f51@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca364c40b0912040004j368569d6gb3f57af0b1840f51@mail-gmail-com%3e</id>
<updated>2009-12-04T08:04:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
An alternative possibility mentioned in a previous post is to use Apache
Felix Karaf (kernel of SMX4) if you don't need NMR, JBI components but only
camel

You can install easily the camel-cxf feature. This feature will
automatically install CXF.

http://repository.apache.org/snapshots/org/apache/camel/karaf/features/2.1-SNAPSHOT/features-2.1-SNAPSHOT-features.xml

&lt;feature name="camel-cxf" version="2.1-SNAPSHOT"&gt;
&lt;bundle&gt;mvn:commons-pool/commons-pool/1.4&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1
&lt;/bundle&gt;
&lt;bundle&gt;mvn:org.springframework/spring-jms/2.5.6.SEC01&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.asm/2.2.3_3
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.geronimo.specs/geronimo-servlet_2.5_spec/1.1.2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jetty-bundle/6.1.14_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-codec/1.3_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jdom/1.1_2
&lt;/bundle&gt;
&lt;bundle&gt;mvn:org.codehaus.jettison/jettison/1.1&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.7.0_3
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.bcel/5.2_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan/2.7.1_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.9.1_3
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlbeans/2.4.0_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlsec/1.4.3_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox/3.2.8_1
&lt;/bundle&gt;
&lt;bundle&gt;mvn:org.apache.ws.commons.schema/XmlSchema/1.4.5&lt;/bundle&gt;
&lt;bundle&gt;mvn:commons-lang/commons-lang/2.4&lt;/bundle&gt;
&lt;bundle&gt;mvn:commons-collections/commons-collections/3.2.1&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.oro/2.0.8_3
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity/1.6.2_3
&lt;/bundle&gt;
&lt;bundle&gt;mvn:org.apache.ws.commons.axiom/axiom-impl/1.2.8&lt;/bundle&gt;
&lt;bundle&gt;mvn:org.apache.ws.commons.axiom/axiom-api/1.2.8&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail/1.4.1_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.neethi/2.0.4_1
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera/0.4.0-incubating_3
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.geronimo.specs/geronimo-jaxws_2.1_spec/1.0
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.4.0
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.wsdl4j/1.6.2_2
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.0/1.3.0
&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/1.1.2
&lt;/bundle&gt;
&lt;bundle&gt;mvn:org.apache.cxf/cxf-bundle/2.2.5&lt;/bundle&gt;
-
&lt;bundle&gt;
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-io/1.3.2_3
&lt;/bundle&gt;
&lt;feature version="2.1-SNAPSHOT"&gt;camel-spring-osgi&lt;/feature&gt;
&lt;feature version="1.1.0-SNAPSHOT"&gt;http&lt;/feature&gt;
&lt;bundle&gt;mvn:org.apache.camel/camel-cxf/2.1-SNAPSHOT&lt;/bundle&gt;
&lt;/feature&gt;


Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&amp;gid=2447439&amp;trk=anet_ug_hm


On Fri, Dec 4, 2009 at 2:23 AM, Willem Jiang &lt;willem.jiang@gmail.com&gt; wrote:

&gt; As we are in the middle of whole bunch of release.
&gt; CXF 2.2.5 , Camel 2.1.0 , then ServiceMix 4.1.0 ...
&gt;
&gt; If you can wait for a week, you will get what you want :)
&gt;
&gt; If you can't wait, you may need to uninstall the CXF 2.2.4 bundle and
&gt; reinstall CXF 2.2.5 bundle yourself.
&gt;
&gt; Willem
&gt;
&gt;
&gt;
&gt; TheWinch wrote:
&gt;
&gt;&gt; Is there a way to use Camel-cxf  2.1.0 in Servicemix 4.1.0 ?
&gt;&gt;
&gt;&gt; I have downloaded SMX 4.1.0-SNAPSHOT, but I can't install Camel-cxf. I
&gt;&gt; have
&gt;&gt; noted also that SMX uses CXF2.2.4 while Camel uses CXF 2.2.5. Any
&gt;&gt; knowledge
&gt;&gt; on this side ? Should I better ask in the SMX mailing list ?
&gt;&gt;
&gt;&gt;
&gt;&gt; Claus Ibsen-2 wrote:
&gt;&gt;
&gt;&gt;&gt; On Thu, Dec 3, 2009 at 9:09 AM, TheWinch
&gt;&gt;&gt; &lt;vincent.girardreydet@thalesgroup.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Thanks for this answer. Is there a place where I can get a packaged
&gt;&gt;&gt;&gt; snapshot
&gt;&gt;&gt;&gt; version of camel 2.1.0 ? Or should I build it from the SVN ?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;  Yes the download page at Camel have links to .zip of SNAPSHOT and how
&gt;&gt;&gt; to setup maven to use SNAPSHOT
&gt;&gt;&gt; http://camel.apache.org/download.html
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;  willem.jiang wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; This issue is related the get default bus issue[1], and it should be
&gt;&gt;&gt;&gt;&gt; fixed in the coming out Camel 2.1.0.
&gt;&gt;&gt;&gt;&gt; [1]https://issues.apache.org/activemq/browse/CAMEL-2216
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Willem
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; TheWinch wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; I'm trying to deploy dynamically endpoints using camel-cxf. I have
an
&gt;&gt;&gt;&gt;&gt;&gt; example that works perfectly well in camel 2.0.0 standalone, and
that
&gt;&gt;&gt;&gt;&gt;&gt; does
&gt;&gt;&gt;&gt;&gt;&gt; not work in camel 2.0.0 deployed on SMX4 (code provided below).
&gt;&gt;&gt;&gt;&gt;&gt; I have read on forums that this might come from class-path issues.
&gt;&gt;&gt;&gt;&gt;&gt; However I
&gt;&gt;&gt;&gt;&gt;&gt; can't see where it comes from. Could someone help ?
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; To deploy the endpoint I do:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; // in Test:
&gt;&gt;&gt;&gt;&gt;&gt; public void doTest() { builder.deployEndpoint(); }
&gt;&gt;&gt;&gt;&gt;&gt; // in DynamicBuilder:
&gt;&gt;&gt;&gt;&gt;&gt; public void deployEndpoint() {
&gt;&gt;&gt;&gt;&gt;&gt;        CamelContext context = getContext();
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;        final String endpointUri = "cxf:" +
&gt;&gt;&gt;&gt;&gt;&gt; "http://localhost:9000/service"
&gt;&gt;&gt;&gt;&gt;&gt; + "?serviceClass=" + SERVICE_CLASS;
&gt;&gt;&gt;&gt;&gt;&gt;        def = from( endpointUri );
&gt;&gt;&gt;&gt;&gt;&gt;        def.process( new CallbackProcessor() );
&gt;&gt;&gt;&gt;&gt;&gt;        context.addRouteDefinitions( Arrays.asList( def ) );
&gt;&gt;&gt;&gt;&gt;&gt;        context.startRoute( def );
&gt;&gt;&gt;&gt;&gt;&gt; }
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; This works OK in camel standalone, and in SMX4 this generates the
&gt;&gt;&gt;&gt;&gt;&gt; following
&gt;&gt;&gt;&gt;&gt;&gt; error:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.RuntimeCamelException: java.lang.RuntimeException:
&gt;&gt;&gt;&gt;&gt;&gt; Could
&gt;&gt;&gt;&gt;&gt;&gt; not find destination factory for transport
&gt;&gt;&gt;&gt;&gt;&gt; http://schemas.xmlsoap.org/soap/h
&gt;&gt;&gt;&gt;&gt;&gt; ttp
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1011)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:121)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:469)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationCo
&gt;&gt;&gt;&gt;&gt;&gt; ntext.java:380)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.ja
&gt;&gt;&gt;&gt;&gt;&gt; va:346)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplication
&gt;&gt;&gt;&gt;&gt;&gt; Context.java:308)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependen
&gt;&gt;&gt;&gt;&gt;&gt; cyWaiterApplicationContextExecutor.java:138)
&gt;&gt;&gt;&gt;&gt;&gt;        at java.lang.Thread.run(Thread.java:619)
&gt;&gt;&gt;&gt;&gt;&gt; Caused by: java.lang.RuntimeException: Could not find destination
&gt;&gt;&gt;&gt;&gt;&gt; factory
&gt;&gt;&gt;&gt;&gt;&gt; for transport http://schemas.xmlsoap.org/soap/http
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:76)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:90)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.cxf.endpoint.ServerImpl.&lt;init&gt;(ServerImpl.java:69)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:118)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.component.cxf.CxfConsumer.&lt;init&gt;(CxfConsumer.java:108)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:97)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:57)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.impl.DefaultRoute.getServicesForRoute(DefaultRoute.java:81)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.impl.RouteService.doStart(RouteService.java:77)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:825)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:99)
&gt;&gt;&gt;&gt;&gt;&gt;        at
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:119)
&gt;&gt;&gt;&gt;&gt;&gt;        ... 12 more
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; My camel context:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt;&gt;&gt;&gt;&gt;&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans"
&gt;&gt;&gt;&gt;&gt;&gt;       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;&gt;&gt;&gt;&gt;&gt;       xmlns:cxf="http://camel.apache.org/schema/cxf"
&gt;&gt;&gt;&gt;&gt;&gt;       xsi:schemaLocation="
&gt;&gt;&gt;&gt;&gt;&gt;       http://www.springframework.org/schema/beans
&gt;&gt;&gt;&gt;&gt;&gt; http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
&gt;&gt;&gt;&gt;&gt;&gt;       http://camel.apache.org/schema/cxf
&gt;&gt;&gt;&gt;&gt;&gt; http://camel.apache.org/schema/cxf/camel-cxf.xsd
&gt;&gt;&gt;&gt;&gt;&gt;       http://camel.apache.org/schema/spring
&gt;&gt;&gt;&gt;&gt;&gt; http://camel.apache.org/schema/spring/camel-spring.xsd
&gt;&gt;&gt;&gt;&gt;&gt;    "&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   &lt;import resource="classpath:META-INF/cxf/cxf.xml"/&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   &lt;import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"
/&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   &lt;import
&gt;&gt;&gt;&gt;&gt;&gt; resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"
&gt;&gt;&gt;&gt;&gt;&gt; /&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;    &lt;bean id="builder" class="test.DynamicRouteBuilder"/&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   &lt;camelContext id="test_context"
&gt;&gt;&gt;&gt;&gt;&gt; xmlns="http://camel.apache.org/schema/spring"&gt;
&gt;&gt;&gt;&gt;&gt;&gt;       &lt;routeBuilder  ref="builder"/&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   &lt;/camelContext&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   &lt;bean id="test" class="test.Test" init-method="doTest"
&gt;&gt;&gt;&gt;&gt;&gt; destroy-method="tearDown"&gt;
&gt;&gt;&gt;&gt;&gt;&gt;     &lt;property name="builder" ref="builder"/&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   &lt;/bean&gt;
&gt;&gt;&gt;&gt;&gt;&gt; &lt;/beans&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; And my import directives:
&gt;&gt;&gt;&gt;&gt;&gt;                        javax.jws,
&gt;&gt;&gt;&gt;&gt;&gt;                        javax.wsdl,
&gt;&gt;&gt;&gt;&gt;&gt;                        javax.xml.bind,
&gt;&gt;&gt;&gt;&gt;&gt;                        javax.xml.bind.annotation,
&gt;&gt;&gt;&gt;&gt;&gt;                        javax.xml.namespace,
&gt;&gt;&gt;&gt;&gt;&gt;                        javax.xml.soap,
&gt;&gt;&gt;&gt;&gt;&gt;                        javax.xml.ws,
&gt;&gt;&gt;&gt;&gt;&gt;                        META-INF.cxf,
&gt;&gt;&gt;&gt;&gt;&gt;                        META-INF.cxf.osgi,
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.binding,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.binding.soap,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.binding.soap.interceptor,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.binding.soap.model,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.binding.xml,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.bindings.xformat,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.common.classloader,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.common.i18n,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.common.logging,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.common.util,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.configuration,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.configuration.security,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.configuration.spring,
&gt;&gt;&gt;&gt;&gt;&gt;                     org.apache.cxf.databinding,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.endpoint,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.feature,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.frontend,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.headers,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.helpers,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.interceptor,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.io,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.jaxrs,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.jaxrs.client,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.jaxrs.model,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.jaxrs.utils,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.jaxws,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.jaxws.context,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.message,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.phase,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.service,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.service.factory,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.service.invoker,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.service.model,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.staxutils,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.ws.addressing,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.wsdl,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.wsdl11,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.transport,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.transport.http,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.transport.http_jetty,
&gt;&gt;&gt;&gt;&gt;&gt;                             org.apache.cxf.transport.http.policy,
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;                        org.apache.cxf.bus,
&gt;&gt;&gt;&gt;&gt;&gt;                        org.apache.cxf.bus.spring,
&gt;&gt;&gt;&gt;&gt;&gt;                        org.apache.cxf.bus.resource,
&gt;&gt;&gt;&gt;&gt;&gt;                        org.apache.cxf.resource,
&gt;&gt;&gt;&gt;&gt;&gt;                        org.springframework.beans.factory.config,
&gt;&gt;&gt;&gt;&gt;&gt;                        org.apache.servicemix.common.osgi,
&gt;&gt;&gt;&gt;&gt;&gt;                        *
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;  --
&gt;&gt;&gt;&gt; View this message in context:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; http://old.nabble.com/Classpath-problem-with-camel-cxf-and-OSGi-tp26612544p26621724.html
&gt;&gt;&gt;&gt; Sent from the Camel - Users mailing list archive at Nabble.com.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; --
&gt;&gt;&gt; Claus Ibsen
&gt;&gt;&gt; Apache Camel Committer
&gt;&gt;&gt;
&gt;&gt;&gt; Author of Camel in Action: http://www.manning.com/ibsen/
&gt;&gt;&gt; Open Source Integration: http://fusesource.com
&gt;&gt;&gt; Blog: http://davsclaus.blogspot.com/
&gt;&gt;&gt; Twitter: http://twitter.com/davsclaus
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
</feed>
