5 Backend Development

1. Install idea and e-code

Weaver suggest idea as the development IDE, please check www.jetbrains.com for more details.

  1. Install idea follow the official installation guideline

  2. Install latest e-code on e-cology environment

2. Create Project

  1. Create a new project: File->New->Project

  1. select java project

  1. Click Next

  1. Click Next, enter project name, and click finish

3. Configure the SDK

  1. Go to project setting, File->Project Structure

  1. Click SDK->+, to add JDK1.8 into project

  1. Click prject,set Project SDK as 1.8 and Project language level as SDK default 8

4. Configure project dependencies

  1. Go to project setting:File->Project Structure

  1. Add dependency library: Libaries->+->java

  1. Get your demo/testing e-cology environment, and import below file/folder path

  1. After add all library and e-cology path, click apply.

5. Write your testing code now

  1. Right click SRC->New->Package

  1. Right click package->new->Java, please note the package should include impl, then can support non-intrusive development

  1. Testing Code

6. Configuration compilation

  1. Go to project setting: File->Project Structure

  1. Go to Artifacts->+->JAR->Empty

  1. Edit Name, please note if the code need to support non-intrusive development, jar package name must contain an underscore prefix, similar to the example writing

  1. Modify jar output directory as ecology/web-inf/lib

  1. add src output to jar package and then click Apply

  1. Select build->Build Artifacts

  1. Click build, you could complete your build process

  2. Check build result in e-cology system

7. resin remote debug configuration

  1. go to resin configuration file:resin4/config/resin.properties to edit jvm_args

  1. Add middleware connection

  1. ADD +->Resin->Remote Service, input ec server address URL and remote resin debug port

  1. Select configure and select resin home

  1. Add jar package

  1. Select pre-defined Artifacts, and click apply to save

  1. If in the same system, please select

  1. Switch Startup/Connection, modify Debug->port as resin remote debug port

  1. start debug in service

  1. Go to sepecial page to refresh, if breakpoint stop successfully, then debug configure is successfully

Last updated