Injecting Commands to a Standalone Akka System via the Command Line

50 views
Skip to first unread message

Bruce

unread,
Nov 1, 2012, 9:19:57 AM11/1/12
to akka...@googlegroups.com
Hi,

I have an Akka system running in standalone mode.  I'd like to be able to inject commands to it via the command line, and I'm wondering what the fastest / simplest way to do this is.  Even though it would be on the same server, would I create some kind of utility that uses remoting since it would be running in a separate VM?  Is there a better way?

Thanks,
Bruce

√iktor Ҡlang

unread,
Nov 1, 2012, 9:31:37 AM11/1/12
to akka...@googlegroups.com
Hi Bruce,

Easiest way is probably to start your application in SBTs console, and then you can do whatever at runtime:

sbt console
> val as = ActorSystem(...)
... time passes ...
> as.actorFor(...) ! "Dance puppet! DANCE!"
 

Cheers,


Thanks,
Bruce

--
>>>>>>>>>> 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 post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
 
 



--
Viktor Klang

Akka Tech Lead
Typesafe - The software stack for applications that scale

Twitter: @viktorklang

Bruce

unread,
Nov 1, 2012, 9:40:09 AM11/1/12
to akka...@googlegroups.com
Thanks for helping again Viktor.

Cheers,
Bruce

On Thursday, 1 November 2012 09:31:39 UTC-4, √ wrote:
Hi Bruce,

√iktor Ҡlang

unread,
Nov 1, 2012, 9:41:39 AM11/1/12
to akka...@googlegroups.com
You're welcome Bruce

Happy hAkking!

Cheers,
Reply all
Reply to author
Forward
0 new messages