On 14/02/2008, Jeff Talley <[EMAIL PROTECTED]> wrote:
>
>  How can I set up Camel when running in the same JVM as a client application
>  so that I can have the client make a call to an interface that is
>  implemented by Camel. I am basically wanting the client to make business
>  calls on an interface and have the implementation of that interface injected
>  into the client by Spring. The implementation would be provided by Camel
>  which could make RMI calls, web service calls, etc. on the client's behalf
>  and have the results returned back to the client on a blocking synchronous
>  call. What would the Java DSL style routing look like?

If using Camel as a kinda remoting implementation you could try the
Spring Remoting feature...
http://activemq.apache.org/camel/spring-remoting.html

>  I would also like to have the client make an asynchronous call into Camel
>  and provide a callback interface. Camel would then communicate with a remote
>  application through queues, correlate the response with the request and
>  provide the results to the client using the provided callback. Is this
>  possible?

It should be :). We implemented something like this on the Lingo
project (http://lingo.codehaus.org/) - we've just not yet made the
client side proxy or server side stub smart enough to deal with
oneways and callbacks yet. It shouldn't be that hard to do btw - as
we've done it before.

-- 
James
-------
http://macstrac.blogspot.com/

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

Reply via email to