Hi Chris,

the impact is that mailbox requirements (like that Stash requires 
DequeBasedMessageQueueSemantics) are not picked up. But your question makes me 
worried: “pass instances” is not legal behavior. Actors must be created (and 
re-created) by the ActorCell in order for supervision to make sense. This is 
why Props must be a real factory, it cannot return prefabricated objects. 
Hopefully I misinterpret your question ;-)

Regards,

Roland

3 jun 2014 kl. 00:50 skrev [email protected]:

> 
> 
> On Monday, June 2, 2014 1:03:18 PM UTC-7, Chris Ochs wrote:
> So 2.3 introduced changes that wreck havoc with those of us using Akka from 
> languages like Jruby.  Namely being forced to pass java classes to props 
> instead of being able to pass instances. 
> 
> stack overflow has a question about this that illustrates the problem:
> 
> http://stackoverflow.com/questions/23373819/subclassing-a-java-class-in-jruby-with-generics-information
> 
> 
> I'm  playing around with using IndirectActorProducer, although it looks like 
> actorClass might be a problem there.
> 
> 
> I'm hoping someone has an idea on how to solve this.  This is for an existing 
> project with a large codebase, so I will go to dark places to solve this if I 
> absolutely have to, I just don't want to do that:)
> 
> Chris
> 
> So I have something that runs.  I basically created a class in java that 
> implements IndirectActorProducer and passed it the factory object I have been 
> using up till now.  Then with an additional java interface I can call the 
> ruby factory object to get my actor.
> 
> But actorClass is an issue.  What are the implications of the return value of 
> actorClass not matching the actor's class?  Currently I am returning the java 
> class that the ruby classes inherit from, which usually UntypedActor.
> 
> Chris
> 
> -- 
> >>>>>>>>>> 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.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Reactive apps on the JVM.
twitter: @rolandkuhn


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