Skip to end of metadata
Go to start of metadata

Overview

There are 2 stages of using Chronon:

  1. Record
  2. Playback
1. Record Stage

For the Record stage, you have 2 options:

  1. Use the Chronon Recording Server for recording your application.
  2. Use the Chronon Eclipse plugin's integrated mechanism for recording from within Eclipse.
2. Playback Stage

For the Playback stage, your only option is to use the Chronon Eclipse Debugger plugin.
Since you are using Intellij for most of your development, you can think of Eclipse and the Chronon Eclipse plugin as a separate, standalone viewer for playing back and debugging your recordings

Does this mean I need to switch to Eclipse as my main IDE?

No.
The following steps don't assume that you will need to switch to Eclipse as your main IDE. You can still continue using Intellij for all your needs and only open Eclipse when you need to use Chronon.
The instructions below only amount to telling eclipse where your source files reside, which is a one time operation. After that you only need to switch to an eclipse window when you need to use Chronon specific functionality and keep using Intellij as your main IDE.

As an analogy, this is the same as telling say, salesforce.com, your gmail password so that it can pull in gmail emails into salesforce. You don't need to switch to salesforce to send your emails, you continue using gmail for that. Its only that when you use salesforce you see your gmail emails in there.

Steps for using Chronon with Intellij

1. Install Eclipse and the Chronon Eclipse Plugin

  1. Download Eclipse (you probably want 'Eclipse IDE for JavaEE developers')
  2. Unzip the eclipse archive to any folder and thats all you need to do to install Eclipse
  3. Follow the instruction here to install Chronon in your eclipse installation. Use the 'Update Site' method to do the installation.
  4. If you will be using the Chronon Recording Server for doing the recording, now is a good time to download and install that too.

2. Convert Intellij Projects into Eclipse compatible format

Intellij IDEA has an excellent export feature which allows you to convert your Intellij projects/modules in a format readable by Eclipse.
Don't worry you can still edit/makes changes to your code in Intellij and the changes will reflect themselves when you open the project in Eclipse. In fact you can even do the opposite, ie, edit the project in Eclipse and see changes in Intellij. 

1. Export Intellij Projects
Inside Intellij:

  1. Select File > Export to Eclipse

  2. In the dialog box that pops up, check the projects you would like to export.
  3. Make sure 'Switch selected projects to Eclipse Compatible Format' is checked.
  4. Click OK.

2. Import Into Eclipse
Inside Eclipse:

  1. Click File > Import.
  2. In the dialog box select General > Existing Projects into Workspace. Click Next.
  3. Select the directory containing the relevant projects. Make sure the checkbox saying 'Copy projects into workspace' in unchecked.
  4. Click Finish.

3. Recording and Playback

Using Eclipse for Recording 

1. Record

  • Click the blue 'Record' button at the top for recording from within Eclipse


  • You can also right click on a class file with a  main()method and select Record As > <application type> to record

2. Playback

Click the arrow next to the Browse Last Recording button, and select the top most recording to playback the recording you just made

Use Recording Server for Recording

1. Record

Use the Recording Server Web UI to do the recording.

2. Playback

Follow instructions to open a recording made from the Recording Server within Eclipse.

Labels: