Akka에서 ActorSystem을 정의할 때, 영어 대소문자, 숫자와 -,_만 된다.(-와 _는 앞에 있으면 안된다)



Exception 나는 경우

val system = ActorSystem("MonitoringTest ")
val system = ActorSystem("-MonitoringTest-")


Exception 내용이다. 


java.lang.IllegalArgumentException: invalid ActorSystem name [MonitoringTest ], must contain only word characters (i.e. [a-zA-Z0-9] plus non-leading '-' or '_')




문제가 발생하지 않는 경우의 예

val system = ActorSystem("MonitoringTest")


val system = ActorSystem("MonitoringTest1-")



Posted by '김용환'
,