Configuration Console Configuration for Java Application

I have an application using a game built using Java. I want to use the Configure Console for my Akka monitoring application, but I cannot configure it, since I cannot find the configuration details for Java. In addition, links to the available SafeSafe console for the Java application could not be found.

I googled and found a sample showing the Configure console configuration for a Scala application. I tried to follow the same recommendations for java, but did not give any results.

I downloaded the binary distribution and wrote a sample Java application. Made changes to build.scala by accessing the Scala sample application, and then started Atmos (bin / typesafe-console atmos) and Console UI (bin / typesafe-console ui). I get an error message:

 [info] Running com.typesafe.atmos.sample.GreetingApplication [error] No such file or class on classpath: com.typesafe.atmos.sample.GreetingApplication java.lang.RuntimeException: Nonzero exit code returned from runner: 1 at scala.sys.package$.error(package.scala:27) 

Any help on configuring build.scala for a Java application would be greatly appreciated.

+4
source share
1 answer

Received response from " Peter Vlugter " in another forum on the same issue.

I am deeply grateful to him for his valuable contribution.

The configuration for Java is the same as for Scala.

Project playback uses sbt, whether they are Scala or Java projects, and the sbt configuration is always in Scala.

I created a sample project that adds the Security Console to the Play Java Project:

https://github.com/pvlugter/hello-atmos-play-java

I started with the java hello world sample project:

https://github.com/playframework/playframework/tree/2.1.3/samples/java/helloworld

I added a simple actor to this pattern to be traced. I assume that you have the Akka acting system to track in your Play application.

Adding a developer to the configuration panel using sbt-atmos in this commit:

https://github.com/pvlugter/hello-atmos-play-java/commit/b9d6e5590e10b2ac8cbbb6254b3298a73e356799

Greetings
Peter Ulgter

+3
source

Source: https://habr.com/ru/post/1494195/


All Articles