geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Geronimo v2.2 > Converting applications into plugins using the Administration Console
Date Mon, 17 May 2010 03:35:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=GMOxDOC22&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Converting+applications+into+plugins+using+the+Administration+Console">Converting
applications into plugins using the Administration Console</a></h2>
    <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~chirunhua@gmail.com">Runhua
Chi</a>
    </h4>
        <br/>
                         <h4>Changes (8)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >{info:title=Clarification} <br>Application
client referred in this tutorial is actually a Web Application Client. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Starting
from Geronimo V2.2, only car packages will be listed for export. <br></td></tr>
            <tr><td class="diff-unchanged" >{info} <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >            &lt;module-id&gt;
<br>                &lt;groupId&gt;console.dbpool&lt;/groupId&gt; <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">&lt;artifactId&gt;jdbc%2Fuserds&lt;/artifactId&gt;</span>
<span class="diff-added-words"style="background-color: #dfd;">&lt;artifactId&gt;jdbc_userds&lt;/artifactId&gt;</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >                &lt;version&gt;1.0&lt;/version&gt;
<br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">&lt;type&gt;<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">r</span><span
class="diff-added-chars"style="background-color: #dfd;">c</span>ar&lt;/type&gt;</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >            &lt;/module-id&gt;
<br>        &lt;dependency&gt; <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >        &lt;obsoletes&gt;
<br>            &lt;groupId&gt;console.dbpool&lt;/groupId&gt; <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">&lt;artifactId&gt;jdbc%2Fuserds&lt;/artifactId&gt;</span>
<span class="diff-added-words"style="background-color: #dfd;">&lt;artifactId&gt;jdbc_userds&lt;/artifactId&gt;</span>
<br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">&lt;type&gt;<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">r</span><span
class="diff-added-chars"style="background-color: #dfd;">c</span>ar&lt;/type&gt;</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >        &lt;/obsoletes&gt;
<br>        &lt;/plugin-artifact&gt; <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >        &lt;dependency&gt;
<br>            &lt;groupId&gt;console.dbpool&lt;/groupId&gt; <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">&lt;artifactId&gt;jdbc%2Fuserds&lt;/artifactId&gt;</span>
<span class="diff-added-words"style="background-color: #dfd;">&lt;artifactId&gt;jdbc_userds&lt;/artifactId&gt;</span>
<br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">&lt;type&gt;<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">r</span><span
class="diff-added-chars"style="background-color: #dfd;">c</span>ar&lt;/type&gt;</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >        &lt;/dependency&gt;
<br>        &lt;dependency&gt; <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >&lt;/geronimo-plugin-list&gt;
<br>{code} <br></td></tr>
            <tr><td class="diff-changed-lines" ># Once this is done place the
plugins in the *myplugins* repository similar to geronimo repository. For example place <span
class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">*jdbc%2Fuserds-1.0.rar*</span>
<span class="diff-added-words"style="background-color: #dfd;">*jdbc_userds-1.0.car*</span>
in <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">C:\myplugins\console\dbpool\jdbc%2Fuserds\1.0,</span>
<span class="diff-added-words"style="background-color: #dfd;">C:\myplugins\console\dbpool\jdbc_userds\1.0,</span>
*ApplicationClient-1.0.car* in C:\myplugins\default\ApplicationClient\1.0 and StatelessSessionEJB-1.0.car
in C:\myplugins\default\StatelessSessionEJB\1.0 <br></td></tr>
            <tr><td class="diff-unchanged" ># 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.\\ \\ \\ <br>!import1.png!\\
\\ \\ <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <style type='text/css'>/*<![CDATA[*/
table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color:
#f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}

/*]]>*/</style><div class="Scrollbar"><table class='ScrollbarTable'><tr><td
class='ScrollbarPrevIcon'><a href="/confluence/display/GMOxDOC22/Administering+plugins"><img
border='0' align='middle' src='/confluence/images/icons/back_16.gif' width='16' height='16'></a></td><td
width='33%' class='ScrollbarPrevName'><a href="/confluence/display/GMOxDOC22/Administering+plugins">Administering
plugins</a>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a
href="/confluence/display/GMOxDOC22/Deploying+and+administering+plugins"><img border='0'
align='middle' src='/confluence/images/icons/up_16.gif' width='8' height='8'></a></sup><a
href="/confluence/display/GMOxDOC22/Deploying+and+administering+plugins">Deploying and
administering plugins</a></td><td width='33%' class='ScrollbarNextName'>&nbsp;</td></tr></table></div>

<p>This topic will take you through plugin transform,export and import using Apache
Geronimo administration console. We have used an existing tutorial from tutorial section.
Refer <a href="/confluence/display/GMOxDOC22/Stateless+Session+Bean" title="Stateless Session
Bean">Stateless Session Bean</a> tutorial for application development and deployment.
Once done refer the illustration in this tutorial to export and import Java EE artifacts from
Apache Geronimo administration console. </p>

<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td><b>Clarification</b><br
/>Application client referred in this tutorial is actually a Web Application Client.<br/>
Starting from Geronimo V2.2, only car packages will be listed for export.</td></tr></table></div>

<div>
<ul>
    <li><a href='#ConvertingapplicationsintopluginsusingtheAdministrationConsole-Convertingtheapplicationintoapluginviaconsole'>Converting
the application into a plugin via console</a></li>
    <li><a href='#ConvertingapplicationsintopluginsusingtheAdministrationConsole-Exportingandimportingpluginsviaconsole'>Exporting
and importing plugins via console</a></li>
<ul>
    <li><a href='#ConvertingapplicationsintopluginsusingtheAdministrationConsole-Exportingtheapplicationasaplugin'>Exporting
the application as a plugin</a></li>
    <li><a href='#ConvertingapplicationsintopluginsusingtheAdministrationConsole-CreateacustomrepositoryfromGeronimoAdministrativeConsole'>Create
a custom repository from Geronimo Administrative Console</a></li>
    <li><a href='#ConvertingapplicationsintopluginsusingtheAdministrationConsole-Importingtheplugin'>Importing
the plugin</a></li>
</ul>
</ul></div>

<h1><a name="ConvertingapplicationsintopluginsusingtheAdministrationConsole-Convertingtheapplicationintoapluginviaconsole"></a>Converting
the application into a plugin via console</h1>
<p>In this section, we will convert an existing applications into a plugin directly
via console.</p>
<ol>
	<li>Launch the Administrative console and Select <b>Plugin</b> portlet
under <b>Applications</b>.<br class="atl-forced-newline" /> <br class="atl-forced-newline"
/> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export1.png?version=1&amp;modificationDate=1212989166000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Under <b>Create Geronimo Plugin</b> select <b>jdbc/userds</b>
database pool from the drop-down menu.<br class="atl-forced-newline" /> <br class="atl-forced-newline"
/> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export2.png?version=1&amp;modificationDate=1212989166000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Once done select <b>Export Plugin</b>.<br class="atl-forced-newline"
/> <br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export3.png?version=1&amp;modificationDate=1212989166000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>On the next page keep all the values default and Select <b>Saving Plugin
Data</b>.<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export4.png?version=1&amp;modificationDate=1212989166000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>On the next screen select <b>Done</b> to convert the resource pool
archive into a plugin directly.<br class="atl-forced-newline" /> <br class="atl-forced-newline"
/> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export5.png?version=1&amp;modificationDate=1231028916000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Similarly convert <b>ApplicationClient</b> and <b>StatelessSessionEJB</b>
into plugins.<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<br class="atl-forced-newline" /></li>
</ol>


<h1><a name="ConvertingapplicationsintopluginsusingtheAdministrationConsole-Exportingandimportingpluginsviaconsole"></a>Exporting
and importing plugins via console</h1>

<p>We are using Apache Geronimo V2.2 for this tutorial.</p>

<h2><a name="ConvertingapplicationsintopluginsusingtheAdministrationConsole-Exportingtheapplicationasaplugin"></a>Exporting
the application as a plugin</h2>
<ol>
	<li>Launch the Administration console and Select <b>Plugin</b> portlet
under <b>Applications</b>.<br class="atl-forced-newline" /> <br class="atl-forced-newline"
/> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export1.png?version=1&amp;modificationDate=1212989166000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Under <b>Create Geronimo Plugin</b> select <b>jdbc/userds</b>
database pool from the drop down menu as shown in the figure.<br class="atl-forced-newline"
/> <br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export2.png?version=1&amp;modificationDate=1212989166000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Once done select <b>Export Plugin</b>.<br class="atl-forced-newline"
/> <br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export3.png?version=1&amp;modificationDate=1212989166000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>On the next page keep all the values default and Select <b>Saving Plugin
Data</b>.<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export4.png?version=1&amp;modificationDate=1212989166000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>On the next screen select <b>Export Plugin</b>.<br class="atl-forced-newline"
/> <br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export5.png?version=1&amp;modificationDate=1231028916000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>A window will pop-up suggesting to save the plugin. Select <b>OK</b>.<br
class="atl-forced-newline" /> <br class="atl-forced-newline" /> <br class="atl-forced-newline"
/>
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export6.png?version=1&amp;modificationDate=1212989188000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Similarly export <b>ApplicationClient</b> and <b>StatelessSessionEJB</b>
as a plugin.<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export7.png?version=1&amp;modificationDate=1212989188000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/export8.png?version=1&amp;modificationDate=1212989188000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
</ol>


<h2><a name="ConvertingapplicationsintopluginsusingtheAdministrationConsole-CreateacustomrepositoryfromGeronimoAdministrativeConsole"></a>Create
a custom repository from Geronimo Administrative Console</h2>
<ol>
	<li>Create a folder say <tt>myplugins</tt> in your hard drive.</li>
	<li>Copy the exported plugins to this directory.</li>
	<li>Next create a geronimo-plugins.xml which will enlist all the plugins in our repository.
<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader
panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>geronimo-plugins.xml</b></div><div
class="codeContent panelContent">
<pre class="code-java">
&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"UTF-8"</span>
standalone=<span class="code-quote">"yes"</span>?&gt;
&lt;!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    <span class="code-keyword">this</span> work <span class="code-keyword">for</span>
additional information regarding copyright ownership.
    The ASF licenses <span class="code-keyword">this</span> file to You under
the Apache License, Version 2.0
    (the <span class="code-quote">"License"</span>); you may not use <span
class="code-keyword">this</span> file except in compliance with
    the License.  You may obtain a copy of the License at

       http:<span class="code-comment">//www.apache.org/licenses/LICENSE-2.0
</span>
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an <span class="code-quote">"AS
IS"</span> BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License <span class="code-keyword">for</span> the specific language
governing permissions and
    limitations under the License.
--&gt;
&lt;geronimo-plugin-list xmlns:ns2=<span class="code-quote">"http:<span class="code-comment">//geronimo.apache.org/xml/ns/attributes-1.2"</span>
xmlns=<span class="code-quote">"http://geronimo.apache.org/xml/ns/plugins-1.3"</span>&gt;
</span>            &lt;plugin&gt;
        &lt;name&gt;DBPool Database Plugin&lt;/name&gt;
        &lt;category&gt;Sample&lt;/category&gt;
        &lt;description&gt;This plugin sets up a Derby database pool&lt;/description&gt;
        &lt;url&gt;http:<span class="code-comment">//www.apache.org&lt;/url&gt;
</span>        &lt;author&gt;Ashish Jain&lt;/author&gt;
        &lt;license osi-approved=<span class="code-quote">"<span class="code-keyword">true</span>"</span>&gt;The
Apache Software License, Version 2.0&lt;/license&gt;

        &lt;plugin-artifact&gt;
            &lt;module-id&gt;
                &lt;groupId&gt;console.dbpool&lt;/groupId&gt;
                &lt;artifactId&gt;jdbc_userds&lt;/artifactId&gt;
                &lt;version&gt;1.0&lt;/version&gt;
                &lt;type&gt;car&lt;/type&gt;
            &lt;/module-id&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;system-database&lt;/artifactId&gt;
            &lt;version&gt;2.1.1&lt;/version&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;transaction&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;j2ee-server&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;source-repository&gt;http:<span class="code-comment">//repo1.maven.org/maven2/&lt;/source-repository&gt;
</span>	&lt;source-repository&gt;file:/C:/myplugins&lt;/source-repository&gt;
        &lt;obsoletes&gt;
            &lt;groupId&gt;console.dbpool&lt;/groupId&gt;
            &lt;artifactId&gt;jdbc_userds&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/obsoletes&gt;
        &lt;/plugin-artifact&gt;
    &lt;/plugin&gt;
&lt;plugin&gt;
        &lt;name&gt;Stateless EJB Sample Plugin&lt;/name&gt;
        &lt;category&gt;Sample&lt;/category&gt;
        &lt;description&gt;This plugin installs an EJB Sample&lt;/description&gt;
        &lt;url&gt;http:<span class="code-comment">//www.apache.org&lt;/url&gt;
</span>        &lt;author&gt;Ashish Jain&lt;/author&gt;
        &lt;license osi-approved=<span class="code-quote">"<span class="code-keyword">true</span>"</span>&gt;The
Apache Software License, Version 2.0&lt;/license&gt;
    &lt;plugin-artifact&gt;
        &lt;module-id&gt;
            &lt;groupId&gt;<span class="code-keyword">default</span>&lt;/groupId&gt;
            &lt;artifactId&gt;StatelessSessionEJB&lt;/artifactId&gt;
            &lt;version&gt;1.0&lt;/version&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/module-id&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;console.dbpool&lt;/groupId&gt;
            &lt;artifactId&gt;jdbc_userds&lt;/artifactId&gt;
	    &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;openejb&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;system-database&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;tomcat6&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;axis&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;axis2&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;j2ee-corba-yoko&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;openjpa&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
	&lt;source-repository&gt;file:/C:/myplugins&lt;/source-repository&gt;
	&lt;source-repository&gt;http:<span class="code-comment">//repo1.maven.org/maven2/&lt;/source-repository&gt;
</span>        &lt;obsoletes&gt;
            &lt;groupId&gt;<span class="code-keyword">default</span>&lt;/groupId&gt;
            &lt;artifactId&gt;StatelessSessionEJB&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/obsoletes&gt;
    &lt;/plugin-artifact&gt;
    &lt;/plugin&gt;
&lt;plugin&gt;
        &lt;name&gt;Application Client&lt;/name&gt;
        &lt;category&gt;Sample&lt;/category&gt;
        &lt;description&gt;This plugin installs an App Client Sample&lt;/description&gt;
        &lt;url&gt;http:<span class="code-comment">//www.apache.org&lt;/url&gt;
</span>        &lt;author&gt;Ashish Jain&lt;/author&gt;
        &lt;license osi-approved=<span class="code-quote">"<span class="code-keyword">true</span>"</span>&gt;The
Apache Software License, Version 2.0&lt;/license&gt;
	&lt;plugin-artifact&gt;
        &lt;module-id&gt;
            &lt;groupId&gt;<span class="code-keyword">default</span>&lt;/groupId&gt;
            &lt;artifactId&gt;ApplicationClient&lt;/artifactId&gt;
            &lt;version&gt;1.0&lt;/version&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/module-id&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;<span class="code-keyword">default</span>&lt;/groupId&gt;
            &lt;artifactId&gt;StatelessSessionEJB&lt;/artifactId&gt;
            &lt;version&gt;1.0&lt;/version&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;tomcat6&lt;/artifactId&gt;
            &lt;version&gt;2.1.1&lt;/version&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;axis&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;axis2&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;openejb&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;j2ee-corba-yoko&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;openjpa&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.apache.geronimo.configs&lt;/groupId&gt;
            &lt;artifactId&gt;jasper&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/dependency&gt;
	&lt;source-repository&gt;file:/C:/myplugins&lt;/source-repository&gt;
	&lt;source-repository&gt;http:<span class="code-comment">//repo1.maven.org/maven2/&lt;/source-repository&gt;
</span>        &lt;obsoletes&gt;
            &lt;groupId&gt;<span class="code-keyword">default</span>&lt;/groupId&gt;
            &lt;artifactId&gt;ApplicationClient&lt;/artifactId&gt;
            &lt;type&gt;car&lt;/type&gt;
        &lt;/obsoletes&gt;
     &lt;/plugin-artifact&gt;
&lt;/plugin&gt;
    &lt;<span class="code-keyword">default</span>-repository&gt;http:<span
class="code-comment">//geronimo.apache.org/plugins/geronimo-2.1/&lt;/<span class="code-keyword">default</span>-repository&gt;
</span>&lt;/geronimo-plugin-list&gt;
</pre>
</div></div></li>
	<li>Once this is done place the plugins in the <b>myplugins</b> repository
similar to geronimo repository. For example place <b>jdbc_userds-1.0.car</b> in
C:\myplugins\console\dbpool\jdbc_userds\1.0, <b>ApplicationClient-1.0.car</b>
in C:\myplugins\default\ApplicationClient\1.0 and StatelessSessionEJB-1.0.car in C:\myplugins\default\StatelessSessionEJB\1.0</li>
	<li>This completes our initial set up to create a custom repository using Geronimo
Administrative console. Next Select the <b>Plugin</b> portlet and Select <b>Add
Repository</b> as shown in the figure.<br class="atl-forced-newline" /> <br
class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import1.png?version=1&amp;modificationDate=1212994275000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Name the repository as myplugins and give the complete name as <b><a href="file:/C:/myplugins/*"
class="external-link" rel="nofollow">file:/C:/myplugins/*</a>. Select *Add Repository</b>.<br
class="atl-forced-newline" /> <br class="atl-forced-newline" /> <br class="atl-forced-newline"
/>
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import2.png?version=1&amp;modificationDate=1212994275000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
This completes the addition of repository in geronimo.</li>
</ol>


<h2><a name="ConvertingapplicationsintopluginsusingtheAdministrationConsole-Importingtheplugin"></a>Importing
the plugin </h2>
<ol>
	<li>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.<br class="atl-forced-newline" /> <br class="atl-forced-newline" /> <br
class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import5.png?version=1&amp;modificationDate=1212994275000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import6.png?version=1&amp;modificationDate=1212994320000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import7.png?version=1&amp;modificationDate=1212994320000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Once done select <b>myplugins</b> repository from the drop down list.<br
class="atl-forced-newline" /> <br class="atl-forced-newline" /> <br class="atl-forced-newline"
/>
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import3.png?version=1&amp;modificationDate=1212994275000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Select <b>Show plugins in selected repository</b>.<br class="atl-forced-newline"
/> <br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import4.png?version=1&amp;modificationDate=1212994275000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>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 <b>Application
Client</b> plugin. All the plugins should be imported automatically. Check the <b>Application
Client</b> plugin and Select <b>Install</b>.<br class="atl-forced-newline"
/> <br class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import9.png?version=1&amp;modificationDate=1212994320000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Next screen will suggest the various artifacts associated with our Application
Client plugin. Select <b>Install</b>.<br class="atl-forced-newline" /> <br
class="atl-forced-newline" /> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import10.png?version=1&amp;modificationDate=1212994320000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" /></li>
	<li>Once done the acknowledgement suggests that Databasepool as well as Stateless session
EJB has been successfully installed.<br class="atl-forced-newline" /> <br class="atl-forced-newline"
/> <br class="atl-forced-newline" />
<span class="image-wrap" style=""><img src="/confluence/download/attachments/93268/import12.png?version=1&amp;modificationDate=1212994337000"
style="border: 0px solid black" /></span><br class="atl-forced-newline" />
<br class="atl-forced-newline" /> <br class="atl-forced-newline" />
Once this is done you can re-test the application functionality as suggested in <b>Deploy
and Run</b> section.</li>
</ol>

    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Converting+applications+into+plugins+using+the+Administration+Console">View
Online</a>
        |
        <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=93268&revisedVersion=25&originalVersion=24">View
Changes</a>
                |
        <a href="http://cwiki.apache.org/confluence/display/GMOxDOC22/Converting+applications+into+plugins+using+the+Administration+Console?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message