Servlet and Actor

25 views
Skip to first unread message

Joseph Mansigian

unread,
Oct 17, 2015, 5:27:07 PM10/17/15
to Akka User List
Is it possible for the same Java class to be both a servlet ( in my case a servlet interacting with embedded Jetty ) and an Akka actor.  Is there example code for making such a class ?   Thank you.

Viktor Klang

unread,
Oct 17, 2015, 5:30:46 PM10/17/15
to Akka User List
Hi Joseph,

that would not make sense as it would violate encapsulation of the Actor.
What you can do however is to write a Servlet that sends messages to an Actor.

On Sat, Oct 17, 2015 at 11:27 PM, Joseph Mansigian <aed.proj...@gmail.com> wrote:
Is it possible for the same Java class to be both a servlet ( in my case a servlet interacting with embedded Jetty ) and an Akka actor.  Is there example code for making such a class ?   Thank you.

--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,
Reply all
Reply to author
Forward
0 new messages