...
Note |
---|
The reference to resource archive file is provided using the following xml elements in the above plan. Code Block |
---|
| JAVA |
---|
| JAVA |
---|
borderStyle | solid |
---|
title | Referencing Libraries |
---|
|
<external-path> |
org.apache.geronimo.modules |
<sys:version>2.1</sys:version> |
The above pattern is the way how geronimo references various libraries available in the server repository. Any external libraries can also be uploaded to server repository using admin console portlet. After starting the server, click on Console Navigation => Services => Repository to display Repository Viewer portlet. In this portlet, users can upload required third party libraries by providing proper groupId, artifactId and version values for the libraries being uploaded. The activeMQ rar file is also available in the repository as org.apache.geronimo.modules/geronimo-activemq-ra/2.1/rar . Click on this link to get the usage instructions on how to reference this library in other modules. |
...
When the above servlet is accessed on a browser window as http://localhost:8080/MDBSampleWEB/Test?CustomerId=10&CustomerName=Phani
, the following output is displayed in the server console.
No Format |
---|
bgColor | #000000 |
---|
borderStyle | solid |
---|
|
-------------------------------------------
Received new message in TextMessageBean1 : Customer Info
CustomerId : 10
CustomerName : Phani
-------------------------------------------
-------------------------------------------
Received new message in TextMessageBean2 : Customer Info
CustomerId : 10
CustomerName : Phani
-------------------------------------------
|