Hi,

I am new to Akka os I apologise in advance if this is too simple.

I starting to write an application that is supposed to handle incoming 
events from a 3rd party server. The connection is proprietary and I need to 
use their library in Java in order to communicate with it. The way it works 
is that you are supposed to create a new 'Client' object, 'open' connection 
to the server with params and then call the Client.run(MyHandler) which 
loops endlessly inside until exit. The 'MyHandler' is extending their 
abstract class while I'm implementing a 'OnEvent' type of method.
My question is, how is it best to handle this when using Akka? Should I 
spawn a new Thread from my main Actor's 'preStart' method that would do all 
the setup and call the their run method? or should I write my own 
ActorSystem and do it from there? Maybe a different way?

Thanks,

Shooali  

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      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/groups/opt_out.

Reply via email to