Child pages
  • Convert your current applications into plugins
Skip to end of metadata
Go to start of metadata

This application will take you through plugin export and import using Apache Geronimo.

We are using Apache Geronimo V2.1.1 for this tutorial.
We have used an existing tutorial from tutorial section. Refer Stateless Session Bean tutorial for application development and deployment. Once done refer the illustration in this tutorial to export and import JEE artifacts from Apache Geronimo administration console.


Application client referred in this tutorial is actually a Web Application Client.

Exporting the application as a plugin

  1. Launch the Administrative console and Select Plugin portlet under Applications.

  2. Under Create Geronimo Plugin select jdbc/userds database pool from the drop down menu as shown in the figure.

  3. Once done select Export Plugin.

  4. On the next page keep all the values default and Select Saving Plugin Data.

  5. On the next screen select Export Plugin.

  6. A window will pop-up suggesting to save the plugin. Select Ok.

  7. Similarly export ApplicationClient and StatelessSessionEJB as a plugin.

Create a custom repository from Geronimo Administrative Console

  1. Create a folder say myplugins in your hard drive.
  2. Copy the exported plugins to this directory.
  3. Next create a geronimo-plugins.xml which will enlist all the plugins in our repository.
  4. Once this is done place the plugins in the myplugins repository similar to geronimo repository. For example place jdbc%2Fuserds-1.0.rar in C:\myplugins\console\dbpool\jdbc%2Fuserds\1.0, in C:\myplugins\default\ApplicationClient\1.0 and in C:\myplugins\default\StatelessSessionEJB\1.0
  5. This completes our initial set up to create a custom repository using Geronimo Administrative console. Next Select the Plugin portlet and Select Add Repository as shown in the figure.

  6. Name the repository as myplugins and give the complete name as file:/C:/myplugins/*. Select *Add Repository.

    This completes the addition of repository in geronimo.

Importing the plugin

  1. Before we start importing our exported plugins we should un-install the EJB jar, Application Client WAR and database pool from server. This can be down as shown in the subsequent figures.

  2. Once done select myplugins repository from the drop down list.

  3. Select Show plugins in selected repository.

  4. Now if we have observerd earlier that Application Client has StatelessSessionEJB as a dependency which in turn has a dependency on the database pool. So if we import our Application Client plugin. All the plugins should be imported automatically. Check the Application Client plugin and Select Install.

  5. Next screen will suggest the various artifacts associated with our Application Client plugin. Select Install.

  6. Once done the acknowledgement suggests that Databasepool as well as Stateless session EJB has been successfully installed.

    Once this is done you can re-test the application functionality as suggested in Deploy and Run section.
  • No labels