Geronimo Datasource installation using a Deployment Plan
|
|
|
Geronimo provides several administration channels; one of them is the command line administration interface or CLI from now on.
The CLI allows you to manage, administrate, and monitor any applications or modules which application server exposes to the administrators. So we can perform several deployment tasks just by firing up a terminal, navigating to Geronimo bin directory and executing the deploy script which is either a shell script in UNIX based operating systems or a batch file in Windows operating system.
Installing datasource on several developper's machine can be a very annoying tasks you can automate using the deploy shell command. In the following example i will demonstrate how to create a Derby datasource and how to deploy using a simple shell script
The following tutorial is based on Geronimo version 3.0
1) Define your datasource details
Create an xml file named datasource-plan.xml .
2) Create a script to deploy your datasource
In this chapter we will create a script to deploy the datasource using the deploy command available in the bin directory of Geronimo .
In a Linux/Unix or Mac OSX system your script will look like :
deploy_datasource.sh
The first line define the location of your Geronimo installation
On line 2 the connector correponding to Derby Embedded
The last line execute the deploy command passing the datasource plan we just created and the reference to the correponding Derby connector
The same script for Windows :
deploy_datasource.bat
3) Executing the script
To execute the script you need to provide the administration login and password of your Geronimo instance.
If you received the message provided in line 7 your datasource has been deployed in your Geronimo application server.
Tags: deploy , version , /dep , create , geronimo , datasource , name= , line , script , config-property-settingSébastien Dante Ursini
Java/Finance Specialist
17 Years of experience in Java
22 Year in Banking/Finance
Based in Geneva/Switzerland