Connect to Play Framework

 

Play 2.2+ - Production mode

To connect OverOps to Play 2.2+ in Production mode:

  1. Locate the run script of your play application. It will generally be at {app_folder}/bin/{app_name}
  2. Locate the line: declare -a java_args
  3. Add the following immediately after it:
    java_args=( "${java_args[@]}" "-agentlib:TakipiAgent" )
  4. Restart the application.
  5. Test the installation: From the OverOps web application dashboard, click Add Server and then, from the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  6. Test that your application throws exceptions.

 

Play 2.2 - Debug mode (Linux/macOS)

To connect OverOps to Play 2.2 in Debug mode from Linux/macOS:

  1. Locate build under {play dir}/bin.
  2. Add the following line just before the java execution line:
    PLAY_OPTS="$PLAY_OPTS -agentlib:TakipiAgent"
  3. Run play in debug mode - play run
  4. Test the installation: From the OverOps web application dashboard, click Add Server and then, from the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  5. Test that your application throws exceptions.

 

Play 2.2 - Debug mode (Windows)

To connect OverOps to Play 2.2 in Debug mode from Windows:

  1. Locate build.bat under {play dir}\bin.
  2. Add the following line just before the java execution line:
    set PLAY_OPTS=%PLAY_OPTS% -agentlib:TakipiAgent
  3. Run play in debug mode - play run
  4. Test the installation: From the OverOps web application dashboard, click Add Server and then, from the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  5. Test that your application throws exceptions.

 

Play 2.0 - Debug mode (Linux / macOS)

To connect OverOps to Play 2.0 in Debug mode from Linux/macOS:

  1. Locate build under {play dir}/bin.
  2. Add the following line just before the java execution line:
    JAVA_OPTS="$JAVA_OPTS -agentlib:TakipiAgent"
  3. Run play in debug mode - play run
  4. Test the installation: From the OverOps web application dashboard, click Add Server and then, from the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  5. Test that your application throws exceptions.

 

Play 2.0 - Debug mode (Windows)

To connect OverOps to Play 2.0 in Debug mode from Windows:

  1. Locate the build.bat file under {play dir}\bin.
  2. Add the following line just before the java execution line: 
    set JAVA_OPTS=%JAVA_OPTS% -agentlib:TakipiAgent
  3. Run play in debug mode - play run
  4. Test the installation: From the OverOps web application dashboard, click Add Server and then, from the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  5. Test that your application throws exceptions.

 

Play 2.3 - Debug mode

To connect OverOps to Play 2.3 in Debug mode:

  1. Run Play in debug mode - activator run -J-agentlib:TakipiAgent
  2. Test the installation: From the OverOps web application dashboard, click Add Server and then, from the dialog box, click Next and then click Test Installation.

    When the connection is established, the JVM status is 'Monitoring'.

  3. Test that your application throws exceptions.

 

Have more questions? Submit a request