The gbean-sample-1.0.jar
can be packaged in a WAR file or EAR file, and the GBean declaration XML can be added to the deployment plan of those applications. We will deploy a service module with four instances of the MySampleGBean
. Before deploying the service module, upload the gbean-sample-1.0.jar
to the server repository by using the Repository portlet. Select the file for upload. This will populate the artifactId, version, and type fields. Enter packt-samples for the groupId, and click on Install to upload the JAR.
Use the Deploy New portlet to deploy the service module with the plan file provided under the samples. The same deployment plan is given below:
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2"> <environment> <moduleId> <groupId>packt-samples</groupId> <artifactId>mygbean</artifactId> <version>1.0</version> <type>car</type> </moduleId> <dependencies> <dependency...