Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

This article is about

Converting applications into Geronimo plugins using GEP

In this section we discuss how to use the Geronimo Eclipse Plugin(GEP) to convert Applications into Geronimo Plugins plugins and install them to back into the server.

We are using use Apache Geronimo V2.1.3 for this tutorial.
We have used an existing tutorial from tutorial section. Refer v2.2 and an existing sample application throughout the tutorial. See Stateless Session Bean for application development and deployment . Once done refer the illustration in this tutorial to export and import JEE artifacts using the Geronimo Eclipse Plugin.

...

of the application.

Creating Geronimo plugins

Prerequisites

In order to convert applications into Geronimo Pluginsplugins, the Geronimo Server must be installed and started. Clicking Note that only a Geronimo configuration with file type .car can be exported from a server.

And you must have installed the sample application on the server's Launch Plugin Manager popup menu item will bring up the Plugin Manager wizard that is shown below.
Image Removed
Enter or create a directory and select the "create Geronimo plugin" radio button. The directory is a temporary place to save the application and will give you a chance to make any manual updates if necessary.
Image Removed
The next page of the dialog contains a drop down list of all the objects running server.

Creating plugins using GEP

Once done, follow the steps below to export Geronimo plugins using GEP.

  1. Double-click the Geronimo server that you defined will display the Server Editor in the main window, and then select Plugin page.
  2. Click Convert Apps to Plugins button will show a wizard named as Plugin Manager.

    Image Added

  3. Enter or create a directory name, and then select create Geronimo plugin radio button. The directory that you defined is a temporary repository to store exported plugins, and you can make any manual updates there if necessary.

    Image Added

  4. The next page of the wizard contains a drop-down list of all the modules that can be converted into Geronimo plugins

...

  1. on the running server. For example, select the console.dbpool/jdbc_userds/1.0/

...

  1. car from the

...

  1. list.

...


  1. Image Added

...


  1. Select your application objects (one at a time) and

...

  1. click Next will bring up pages that

...

  1. allow you to change the attributes in geronimo-plugin.xml file before saving. All the fields on the next two pages are data that will be saved with the plugin and will help with installation.

...


  1. Image Added

    • Name
      A human-readable name that will be displayed for this plugin.
    • id
      The globally unique ID for this plugin. This value is

...

    • defined during installation of the application to be exported. This value also defines the version number for the plugin

...

    • .
    • Download Repos
      A list of repositories to check for any dependencies that need to be downloaded. This should be a list of one URL per line, with values such as http://geronimoplugins.com/repository/

...

...

    • . Note that the repository this plugin is deployed to should typically be the first one listed.
    • Category
      The category this plugin falls into. Plugins in the same category will be listed together. If this plugin is intended to be listed on geronimoplugins.com then you should use one of the category names there if any of them fit. Otherwise, you can select this freely, or according to the categories acceptable to the repository where you plan to post this.
    • Description
      A description of this plugin. You should use plain text only, with blank lines to separate paragraphs.
    • Plugin URL
      A URL to get more information about the plugin (

...

    • for example, the plugin home page).
    • Author
      The author of the

...

    • plugin, which may be a person, company, open source

...

    • community and so on.
    • Geronimo Versions
      An optional list of Geronimo versions supported by this plugin. If no values are listed, the plugin can be installed in any version of Geronimo. Otherwise,

...

    • you can install this plugin in one acceptable Geronimo version

...

    • .
    • JVM Versions
      An optional list of JVM version prefixes supported by this plugin. If no values are listed, the plugin can be installed in Geronimo running in any version of the JVM. Otherwise,

...

    • you can install this plugin in one acceptable JVM version

...

    • .
    • Dependencies
      A list of

...

    • Geronimo configurations that this plugin depends on. These dependencies will be downloaded automatically when this plugin is installed. Normally you shouldn't change this list. However, you can move entries from the dependency list to the prerequisite list if the user must install the dependency manually before installing the plugin (

...

    • for example, for a database pool where a plugin

...

    • does not know what server to connect to). Each entry in this list should use the Unique ID format like the one that is used for this plugin above. You may remove the version number if you

...

    • want the plugin to work with any version of the dependency, though that may be risky. Each value should be on a separate line.
    • Obsoletes
      A list of module IDs that this plugin replaces. Those plugins or modules will be removed when this one is installed. That may include previous versions of this plugin if you want installing it to "upgrade" rather than just offering an additional alternative. This should be a list with one module ID per line.
  1. The next page has 2 tables.

...

  1. You can update the data in both the License table and Prerequisite table

...

  1. using the Add, Edit, and Remove buttons.

...


  1. Image Added

    • Licenses
      The name of the license that this plugin is covered by. Ideally, it would be prefixed by the class of license, like "BSD – (name)" or "GPL – (name)". Specify whether the license is an OSI-approved open source license

...

...

    • for more information about open source licenses.
    • Prerequisites
      The module IDs of prerequisites for this plugin. These are modules that must be present in the server before the plugin

...

    • is installed. They may be something like a specific web container for a web application (geronimo/jetty/1.0/car) or something like a database pool or security realm that the user must install because the plugin author can't create a value that will be valid in the destination server. You may want to leave out as many segments of the module ID as possible in order to accommodate more users.

...

    • For example, use /mypool/

...

    • /*

...

    • rather

...

    • than

...

    • myapp/mypool/1.2/car

...

    • .

...

  1. Click Next on

...

  1. the page

...

  1. , and the plugin

...

  1. is saved together with a geronimo-plugin.xml file

...

  1. . The wizard goes back to the first page for user to export another plugin.

...

  1. (Optional)To export multiple plugins, repeat the steps above

...

  1. . For example,

...

  1. export ApplicationClient and StatelessSessionEJB

...

  1. plugins using the same procedure by selecting them from the

...

  1. list.
  2. (Optional) Click Cancel to quit the wizard.

The above process creates a maven-like repository with the name specified in The above process creates an appropriate directory structure in the directory specified by the Local Plugin Repository field of at the first page of the wizard. A geronimo-plugin.xml files have been file is created for each plugin and the under its /META-INF directory. The top directory of the repository includes a geronimo-plugins.xml that file which keeps track of all the plugins that have been created. The values in these files came from data from fields in the last two pages in of the Plugin Managerwizard. If you need to update the

...

Installing Geronimo Plugins

Prerequisites

If you intend to install plugins into the same server that is used to export the plugins, you have to remove the projects and relevant resources from the server firstly.

  • To remove the projects, use Add and Remove item on the right-click list of the server in Eclipse;
  • To remove the resources, the database pool in this tutorial, you can use undeploy command as followed;
    #000000solid ./deploy.sh --user system --password manager undeploy console.dbpool/jdbc_userds/1.0/car Using GERONIMO_HOME: /home/jeffchi/Geronimo/g2.2-tomcat6 Using GERONIMO_TMPDIR: var/temp Using JRE_HOME: /opt/ibm/java-i386-60/jre Module console.dbpool/jdbc_userds/1.0/car unloaded. Module console.dbpool/jdbc_userds/1.0/car uninstalled. Undeployed console.dbpool/jdbc_userds/1.0/car

Installing the plugins

To install the plugins back into a Geronimo server, follow the steps below:

  1. Select Plugin page and then click Convert Apps to Plugins button.
  2. Enter the name of the plugin repository, and then select install Geronimo plugins radio button.

    Image Added

  3. Click Next to select

Installing Geronimo Plugins

...

  1. the Geronimo plugins that you want to install on the server.

    Image Added

    • If Installable is false,

...

    • the plugin cannot be selected. The most common

...

    • reason that a plugin cannot be installed

...

    • is that the version of

...

    • this plugin is already installed on the server or

...

    • its prerequisites are not

...

    • met.

...

  1. Click Next to install all selected plugins

...

  1. . After that, a confirmation page

...

  1. comes up showing that the plugins have been installed successfully.