Hi Shripad, On Wed, Mar 18, 2015 at 2:38 PM, Shripad Agashe <[email protected]> wrote:
> Hello, > I am curious to find out how Akka-Camel and remote actors interact? > > The use case I'm looking at is an Http Consumer accepting request -> > Handing off to a producer -> Transform response from third party -> Return > back the response. > > This is similar to sample given in Akka-sample-camel-scala. I was > wondering in a system with remote actor how will it work? For example if > the transformation actor and the original Consumer actor happen to be on > different JVM, then the client would be blocked on a port on machine with > Consumer Actor, so how does transformation actor know which exact consumer > actor to respond to? > In a Consumer you send the reply to the sender(), i.e. an ActorRef. You can pass this ActorRef to another actor (in a message or as sender) and that actor can send the reply to that ActorRef. This should work also when remoting is involved. The CamelMessage itself is not serializable and cannot be sent in remote messages, but you should be able to grab the content in the Consumer and send that on to another actor. Regards, Patrik > > Regards, > Shripad > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
