Hi Anders,

Akka Remoting is a peer-to-peer system and remote class loading was
implemented as a part of a GSoC project a few years ago.
However, it was never merged due to infeasibility in practice. If you
design your application properly you can use your own self-describing
serialization.

Cheers,
V
On Apr 21, 2014 6:19 PM, "Anders Bech Mellson" <[email protected]>
wrote:

> I am very new to Akka and still just playing around with it.
>
> I wonder if it is possible to use Akka to do dynamic class loading.
> The scenario is a server / client setup where the server is never rebooted.
>
> At compile time the server knows about a trait which I can pattern match
> against.
> This trait is implemented in a test case class which the server knows.
>
> I start the server and afterwards the client.
> When I send the test case class to an actor on the server everything works
> ok.
>
> But if I add another case class implementing the same trait and send that
> to the server (which don't have the class file for the new case class),
> then I get "java.lang.ClassNotFoundException".
> This is not a big surprise - but I wonder if Akka makes it possible to
> send new class files to the server?
>
> clientcode: http://pastebin.com/avAdBBwg
> servercode with simple actor: http://pastebin.com/G0sxW31K
>
> Hopefully this question makes sense.
>
> Happy easter!
>
> --
> >>>>>>>>>> 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.
>

-- 
>>>>>>>>>>      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.

Reply via email to