Ubik Batch Server Eclipse plugin

From UbikWiki

Revision as of 22:25, 9 December 2007 by Pmouawad (Talk | contribs)

Contents

Features

The Eclipse plugin enables:

  • Project Model creation
  • Batch skeleton configuration creation
  • Tomcat DevLoader equivalent for Batch Server

Plugin configuration

Image:configuration.jpg

Project Creation

Right click in Navigator panel and select New > Project:

Image:project_creation_step1.jpg

Image:project_creation_step2.jpg

Image:project_creation_step3.jpg

Image:project_creation_success.jpg

This will create a project that has the following layout:

Image:project_layout.jpg

It also creates an Eclipse Launch, to launch the server go to Debug Perspective and click on the created launch (The launch requires a JDK 5):

Image:project_run.jpg

Using DevClassLoader during development

In most of the case you will at least have 2 projects:

  • Business project (It contains no batch but rather the objects that are also used by Web Applications)
  • Batch project
  • Maybe common library used across your company

During development, you need to make change to the code of one of the 3 libraries, and you want you changes to be taken into account immediately. Without the Plugin, you would have to recreate the JARs of the dependent projects:

  • Business project (It contains no batch but rather the objects that are also used by Web Applications)
  • Maybe common library used across your company

And recreate the BAR, and finally redeploy it.

To avoid this, the plugin enables referencing external projects like:

  • Business project (It contains no batch but rather the objects that are also used by Web Applications)
  • Maybe common library used across your company

And also the Batch project. To do it, right click on your project and click on UbikBatchPlugin classpath and check the librairies and class paths that must be added to your BAR:

Image:DevClassLoader.jpg


In this example, we have:

  • businessLibrary that contains our business objects used accross Webapp and batches
  • project-batch that depends on businessLibrary project
Personal tools