camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Camel TCP receiver endpoint
Date Tue, 12 Feb 2008 12:31:30 GMT
On 12/02/2008, georgiosgeorgiadis <georgiosgeorgiadis@yahoo.co.uk> wrote:
>
> Thanks again James,
>
> I will give it a try and will keep posted.
>
> One last thing:
>
> Are there any MINA-Camel examples that I can look through somewhere?

There's a bunch of test cases here...
https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-mina/

in here...
https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/

though these all use the default Codecs and don't configure their own.

To ease the configuration of your codec, you could create an extension
of the MinaComponent that customizes the Codec to use and then bind
that new component to some URI scheme of your choosing.

e.g. if you chose 'foo' as your new protocol scheme you could then
route in Camel via...

from("foo://localhost:1234").to("something");

See
http://activemq.apache.org/camel/writing-components.html
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message