2008/10/17 cmoulliard <[EMAIL PROTECTED]>:
>
> Hi,
>
> I would like to know if it is possible to work in a client-server mode with
> Camel ?
> I launch a camelcontext in a standalone mode using a spring-camel.xml file
> using the following code :
>
> public class CamelServer {
>
> /**
> * Start Camel context.
> *
> * @param args
> * the args
> */
> public static void main(String[] args) {
>
> Main starter = new Main();
> // starter.enableDebug();
> // starter.enableTrace();
>
>
> starter.setApplicationContextUri("com/xpectis/test/ProcessEvent-context.xml");
>
> starter.run(args);
> }
>
> }
>
> From another java client that I call "camel client", I would like to
> communicate with the endpoints of my camelContext in order to
> produce/consume messages.
>
> How can I achieve this ?
What kind of endpoints are they? It kinda depends on technology.
e.g. for JMS endpoints, they are already client-server; you send to a
queue on the client and the server can receive it etc.
If you have SEDA or in JVM endpoints in the server you can bridge from
some kind of remoting technology (file/http/jms/JPA/whatever) to your
local in JVM endpoints in the
server.
Or you could use Spring Remoting to invoke arbirary beans in the
server over some transport...
http://activemq.apache.org/camel/spring-remoting.html
Could you give more of an idea of the kind of thing you mean?
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/