You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by huntc <hu...@mac.com> on 2009/02/03 22:24:27 UTC

Removing ProducerTemplate dependencies from a POJO service

Hi there,

I have posted an entry on my blog with regards to removing Camel
ProducerTemplate dependencies from services.

http://christopherhunt-software.blogspot.com/2009/02/using-camel-producertemplate-in-pojo.html

Your feedback is welcome.

Kind regards,
Christopher
-- 
View this message in context: http://www.nabble.com/Removing-ProducerTemplate-dependencies-from-a-POJO-service-tp21819267s22882p21819267.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Removing ProducerTemplate dependencies from a POJO service

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Feb 4, 2009 at 2:21 PM, James Strachan <ja...@gmail.com> wrote:
> 2009/2/3 huntc <hu...@mac.com>:
>>
>> Hi there,
>>
>> I have posted an entry on my blog with regards to removing Camel
>> ProducerTemplate dependencies from services.
>>
>> http://christopherhunt-software.blogspot.com/2009/02/using-camel-producertemplate-in-pojo.html
>
> Great blog post! I tried to post a reply with links in the comments
> but not sure if blogspot gobbled it up or its waiting moderator
> approval :)
>
> See this page - the second section:
> http://cwiki.apache.org/CAMEL/pojo-producing.html
>
> Basically you can get Camel to use any interface you like to hide the
> Camel API - then using the @Produce annotation it will automatically
> inject a smart client proxy bound to the endpoint and do all the
> binding of the message to the method calls.
Why is it that you just get a big smile when you can hide and do so
much with a single annotation and a nice clean client interface.
That is truly hiding the middleware.



> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://fusesource.com/
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Re: Removing ProducerTemplate dependencies from a POJO service

Posted by James Strachan <ja...@gmail.com>.
2009/2/3 huntc <hu...@mac.com>:
>
> Hi there,
>
> I have posted an entry on my blog with regards to removing Camel
> ProducerTemplate dependencies from services.
>
> http://christopherhunt-software.blogspot.com/2009/02/using-camel-producertemplate-in-pojo.html

Great blog post! I tried to post a reply with links in the comments
but not sure if blogspot gobbled it up or its waiting moderator
approval :)

See this page - the second section:
http://cwiki.apache.org/CAMEL/pojo-producing.html

Basically you can get Camel to use any interface you like to hide the
Camel API - then using the @Produce annotation it will automatically
inject a smart client proxy bound to the endpoint and do all the
binding of the message to the method calls.
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Re: Removing ProducerTemplate dependencies from a POJO service

Posted by Claus Ibsen <cl...@gmail.com>.
Hi Christopher

Great blog.

Camel Spring Remote (camel:proxy) could maybe be used as well?
http://camel.apache.org/spring-remoting.html

See this tutorial that uses it:
http://camel.apache.org/tutorial-jmsremoting.html



On Tue, Feb 3, 2009 at 10:24 PM, huntc <hu...@mac.com> wrote:
>
> Hi there,
>
> I have posted an entry on my blog with regards to removing Camel
> ProducerTemplate dependencies from services.
>
> http://christopherhunt-software.blogspot.com/2009/02/using-camel-producertemplate-in-pojo.html
>
> Your feedback is welcome.
>
> Kind regards,
> Christopher
> --
> View this message in context: http://www.nabble.com/Removing-ProducerTemplate-dependencies-from-a-POJO-service-tp21819267s22882p21819267.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/