Ubik Batch Server Environment Setup

From UbikWiki

(Difference between revisions)
(Deploying a BAR for Other environments:)
(Batch development:)

Line 1:

Line 1:

[[Category:Ubik Batch Server]]
[[Category:Ubik Batch Server]]
-
= Batch development: =
+
= Creating a batch project: =
-
== Creating a batch project: ==
+
* Checkout from CVS/SVN the projects:
* Checkout from CVS/SVN the projects:
* m2repository (MAVEN2 Repository)
* m2repository (MAVEN2 Repository)

Line 40:

Line 39:

* Refresh root of project
* Refresh root of project
-
== Running a Local Batch server: ==
+
= Running a Local Batch server: =
To test your batches you will need to start a local batch server, to do this:
To test your batches you will need to start a local batch server, to do this:

Line 53:

Line 52:

# Use it to connect to Batch Server with MC4J
# Use it to connect to Batch Server with MC4J
-
== Deploying a BAR during development: ==
+
= Deploying a BAR during development: =
* Ensure you use ECLIPSE 3.1 or above
* Ensure you use ECLIPSE 3.1 or above
* Right click on project > Properties > UbikBatcherPlugin Classpath
* Right click on project > Properties > UbikBatcherPlugin Classpath

Line 62:

Line 61:

* Start Batch Server
* Start Batch Server
-
== Deploying a BAR for Other environments: ==
+
= Deploying a BAR for Other environments: =
* Ensure you only reference libraries through M2_REPO Variable (Libraries are added through “Add Variable”):
* Ensure you only reference libraries through M2_REPO Variable (Libraries are added through “Add Variable”):
[[Image:ECLIPSE_CLASSPATH.png]]
[[Image:ECLIPSE_CLASSPATH.png]]
* Run ANT Target “generate-bar”
* Run ANT Target “generate-bar”

Revision as of 13:22, 2 May 2009

Contents

Creating a batch project:

  • Checkout from CVS/SVN the projects:
  • m2repository (MAVEN2 Repository)
  • Declare in Eclipse a new classpath variable (M2_REPO) that references this folder, Window > Preferences > Java > Build Path > Classpath Variables:
Image:ECLIPSE_M2REPO.png


  • Create a new Project
  • Add a folder called build and copy to this folder:
    • M2_REPO\com\ubikingenierie\ubik-batch-server-builder\scripts\build-bar.xml
    • M2_REPO\com\ubikingenierie\ubik-batch-server-builder\scripts\build-batch.properties
  • Edit build-batch.properties:


Property name Description
project.name Name of the project without spaces (will be the ID of the BAR)
build.target JDK Target (1.4 or 1.5)
console.version 5.0.1.1
M2_REPO Full path to MAVEN2 Repository (use / instead of \)
  • Run ANT Target “create-project”
  • Refresh root of project

Running a Local Batch server:

To test your batches you will need to start a local batch server, to do this:

  1. Checkout from CVS the project “batchserver-runner”
  2. Open config/config.properties and modify:
    1. CONSOLE_ID to ensure it is unique (use for example BATCH_<YOUR ACRONYM>)
    2. INSTALL_DIR to point to the folder of batchserver-runner (use “/” and not “\”)
  3. Open config/datasource.xml and modify connection to DB configuration
  4. Choose Debug Perspective and click on BatchServer-Runner: Image:ECLIPSE_DEBUG.png
  5. Batch server is successfully started when the following message appears:
    Console started at 09/10/2008 09:37:38
  6. JMX URL is written in file config\jmx-service-url.txt
  7. Use it to connect to Batch Server with MC4J

Deploying a BAR during development:

  • Ensure you use ECLIPSE 3.1 or above
  • Right click on project > Properties > UbikBatcherPlugin Classpath
  • Check activate
  • Click on Check ALL Image:ECLIPSE_UBIKBATCH_PLUGIN.png
  • Run ANT Target “generate-bar-dev”
  • Copy dist\<Name of project>.bar to <LOCAL BATCH SERVER>/batches-cold-deploy
  • Start Batch Server

Deploying a BAR for Other environments:

  • Ensure you only reference libraries through M2_REPO Variable (Libraries are added through “Add Variable”):

Image:ECLIPSE_CLASSPATH.png

  • Run ANT Target “generate-bar”
Personal tools