
23.4.2 Deploying the Resource Adaptor
The Ant build script
$EXAMPLES/build.xml
contains build targets for deploying and undeploying the JCC RA.
To deploy the JCC RA, first ensure that the SLEE is running. Go to the JCC examples directory, and then execute the Ant target
deployjccra
as shown:
user@host:~/rhino/examples/jcc$ ant deployjccra
Buildfile: build.xml
management-init:
[echo] OpenCloud Rhino SLEE Management tasks defined
login:
[slee-management] establishing new connection to : 127.0.0.1:1199/admin
buildjccra:
[mkdir] Created dir: /home/user/rhino/examples/jcc/library
[copy] Copying 2 files to /home/user/rhino/examples/jcc/library
[jar] Building jar: /home/user/rhino/examples/jcc/jars/jcc-1.1-local-ra.jar
[delete] Deleting directory /home/user/rhino/examples/jcc/library
deployjccra:
[slee-management] Install deployable unit file:/home/user/rhino/examples/jcc/lib/jcc-1.1-ra-ty
pe.jar
[slee-management] Install deployable unit file:/home/user/rhino/examples/jcc/jars/jcc-1.1-loca
l-ra.jar
[slee-management] Create resource adaptor entity jccra from JCC 1.1-Local 1.0, Open Cloud Ltd.
[slee-management] Activate RA entity jccra
BUILD SUCCESSFUL
Total time: 18 seconds
This compiles the JCC resource adaptor, assembles the RA jar file, deploys it into the SLEE, creates an instance of the JCC
Resource Adaptor and finally activates it.
Please ensure Rhino SLEE is in the
RUNNING
state before the deployment.
user@host:~/rhino$ ./client/bin/rhino-console
Interactive Rhino Management Shell
Rhino management console, enter ’help’ for a list of commands
[Rhino@localhost (#0)] state
SLEE is in the Running state
The JCC RA can similarly be uninstalled using the Ant target
undeployjccra
, as shown below:
Open Cloud Rhino 1.4.3 Administration Manual v1.1 155
Komentarze do niniejszej Instrukcji