geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Geronimo v3.0 > Import database pools from WebLogic 8.1
Date Sun, 30 Jan 2011 01:56:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2036/9/4/_/styles/combined.css?spaceKey=GMOxDOC30&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="https://cwiki.apache.org/confluence/display/GMOxDOC30/Import+database+pools+from+WebLogic+8.1">Import
database pools from WebLogic 8.1</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~maojia508">maojia</a>
    </h4>
        <br/>
                         <h4>Changes (15)</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" >* The second alternative is feasible
if you have both Apache Geronimo and BEA WebLogic servers installed on the same machine. You
can directly specify the WebLogic installation path and domain directories. This alternative
has the advantage of being able to directly read the database passwords. <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >Apart from the alternative you
choose, you are still required to tell Geronimo where the database driver jars are. For this
particular example, <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">we
will use</span> the *Repository* portlet <span class="diff-added-words"style="background-color:
#dfd;"> is used</span> to install the PointBase driver <span class="diff-changed-words">jar<span
class="diff-added-chars"style="background-color: #dfd;"> </span>.</span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-changed-lines" >Here are the steps of installing
the PointBase database driver jar in <span class="diff-changed-words">Geronimo<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">.</span><span
class="diff-added-chars"style="background-color: #dfd;">:</span></span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br># Locate the PointBase
client driver jar {{pbclient44.jar}}. This file is located in the {{&lt;bea_home&gt;weblogic81\common\eval\pointbase\lib}}
directory. Make a copy of this file and rename it {{pbclient-4.4.0.jar}}. <br></td></tr>
            <tr><td class="diff-changed-lines" ># Use the *Repository* portlet
to install the PointBase driver jar. From the Administration Console click *JAR Repository*
to access the <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">portlet,
click</span> <span class="diff-added-words"style="background-color: #dfd;">portlet.
Click</span> *Browse* and point to the database driver jar. Change the *Group:* to *PointBase*,
<span class="diff-added-words"style="background-color: #dfd;">and</span> leave
the remaining fields by <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">default
and</span> <span class="diff-added-words"style="background-color: #dfd;">default.
Then</span> click *Install*. You will see {{PointBase/pbclient/4.4.0/jar}} listed near
the top of the repository entries list. <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-changed-lines" >From the Geronimo Administration
<span class="diff-changed-words">Console<span class="diff-added-chars"style="background-color:
#dfd;">,</span></span> click the *Database Pools* link. From the *Database
Pools* <span class="diff-changed-words">portlet<span class="diff-added-chars"style="background-color:
#dfd;">,</span></span> click *Import from WebLogic 8.1*. The following figure
illustrates the import wizard. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>!bea_import1.jpg! <br>
<br></td></tr>
            <tr><td class="diff-changed-lines" >For this particular example, the
focus is the second <span class="diff-changed-words">alternative<span class="diff-added-chars"style="background-color:
#dfd;"> for importing existing BEA WebLogic database pools</span>.</span> A
default *example* domain was created in the WebLogic server with all the sample applications
also included by default. This domain is located in the &lt;bea_home&gt;\user_projects\domains\examples
directory. <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">In
the first screen of the import wizard (illustrated in the above figure) enter *Domain directory
path:* and *weblogic81/server/lib path:* and click *Next*. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">On
the first screen of the import wizard (illustrated in the above figure), enter the following
values for the *Domain directory path:* and the *weblogic81/server/lib path:*, and click *Next*.
<br></td></tr>
            <tr><td class="diff-unchanged" > <br>* Domain directory path:
{{&lt;bea_home&gt;\user_projects\domains\examples}} <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >* weblogic81/server/lib path: {{&lt;bea_home&gt;\weblogic81\server\lib}}
<br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">The
Step 2 illustrated in the following figure shows a list of recognized database pools from
the WebLogic domain you specified that can be imported to Apache Geronimo. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Step
2, illustrated in the following figure, shows a list of recognized database pools from the
WebLogic domain you specified. These database pools can be imported to Apache Geronimo. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>!bea_import2.jpg! <br>
<br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">Note
that the WebLogic domain you are trying to import the database pool from must be running if
you want to successfully test the connection. For this example click the second *Confirm and
Deploy* from the list, the one corresponding to *examples-dataSource-demoPool*. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Note
that the WebLogic domain that you are trying to import the database pools from must be running
if you want to successfully test the connection. For this example, click the *Confirm and
Deploy* link for the second database pool in the list, the one corresponding to *examples-dataSource-demoPool*.
<br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-changed-lines" >In the following <span class="diff-changed-words">step<span
class="diff-added-chars"style="background-color: #dfd;">,</span></span> select
the *Driver JAR:* <span class="diff-added-words"style="background-color: #dfd;">that</span>
you just created in the Geronimo repository. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>!bea_import3.jpg! <br>
<br></td></tr>
            <tr><td class="diff-changed-lines" >Note that the database password
has been recognized. Click *Test Connection*, <span class="diff-added-words"style="background-color:
#dfd;">and</span> you will see a confirmation similar to the following figure. Click
*Deploy*. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>!bea_import4.jpg! <br>
<br></td></tr>
            <tr><td class="diff-changed-lines" >The following page goes back to
the Step <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">2,
this</span> <span class="diff-added-words"style="background-color: #dfd;">2. This</span>
time it will display the remaining database pools available for import and will also show
the import status of the database pool <span class="diff-added-words"style="background-color:
#dfd;">that</span> you just imported. At this <span class="diff-changed-words">point<span
class="diff-added-chars"style="background-color: #dfd;">,</span></span> you
can click *Skip Remaining Pools* to leave the import wizard. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>!bea_import5.jpg! <br>
<br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">You
now</span> <span class="diff-added-words"style="background-color: #dfd;">Now you
can</span> see the database pool <span class="diff-added-words"style="background-color:
#dfd;">that</span> you just imported listed in the database pool portlet. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>!bea_import6.jpg! <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/GMOxDOC30/Import+database+pools+from+JBoss+4"><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/GMOxDOC30/Import+database+pools+from+JBoss+4">Import
database pools from JBoss 4</a>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a
href="/confluence/display/GMOxDOC30/Configuring+datasource"><img border='0' align='middle'
src='/confluence/images/icons/up_16.gif' width='8' height='8'></a></sup><a
href="/confluence/display/GMOxDOC30/Configuring+datasource">Configuring datasource</a></td><td
width='33%' class='ScrollbarNextName'>&nbsp;<a href="/confluence/display/GMOxDOC30/Removing+database+pools">Removing
database pools</a></td><td class='ScrollbarNextIcon'><a href="/confluence/display/GMOxDOC30/Removing+database+pools"><img
border='0' align='middle' src='/confluence/images/icons/forwd_16.gif' width='16' height='16'></a></td></tr></table></div>

<p>(Note: Console screenshots are from Geronimo 2.0. Current console varies slightly.)</p>

<p>This wizard offers two different alternatives for importing existing BEA WebLogic
database pools:</p>
<ul>
	<li>The first one is by providing a configuration file (fro example, <tt>config.xml</tt>).
If you choose this option, the wizard will convert as many fields as it can and then will
ask you to manually enter those failed to be converted. One of the values that you must manually
input is the database password.</li>
	<li>The second alternative is feasible if you have both Apache Geronimo and BEA WebLogic
servers installed on the same machine. You can directly specify the WebLogic installation
path and domain directories. This alternative has the advantage of being able to directly
read the database passwords.</li>
</ul>


<p>Apart from the alternative you choose, you are still required to tell Geronimo where
the database driver jars are. For this particular example, the <b>Repository</b>
portlet  is used to install the PointBase driver jar .</p>

<p>Here are the steps of installing the PointBase database driver jar in Geronimo:</p>

<ol>
	<li>Locate the PointBase client driver jar <tt>pbclient44.jar</tt>. This
file is located in the <tt>&lt;bea_home&gt;weblogic81\common\eval\pointbase\lib</tt>
directory. Make a copy of this file and rename it <tt>pbclient-4.4.0.jar</tt>.</li>
	<li>Use the <b>Repository</b> portlet to install the PointBase driver jar.
From the Administration Console click <b>JAR Repository</b> to access the portlet.
Click <b>Browse</b> and point to the database driver jar. Change the <b>Group:</b>
to <b>PointBase</b>, and leave the remaining fields by default. Then click <b>Install</b>.
You will see <tt>PointBase/pbclient/4.4.0/jar</tt> listed near the top of the
repository entries list.</li>
</ol>


<p>From the Geronimo Administration Console, click the <b>Database Pools</b>
link. From the <b>Database Pools</b> portlet, click <b>Import from WebLogic
8.1</b>. The following figure illustrates the import wizard.</p>

<p><span class="image-wrap" style=""><img src="/confluence/download/attachments/20645325/bea_import1.jpg?version=1&amp;modificationDate=1203704845000"
style="border: 0px solid black" /></span></p>

<p>For this particular example, the focus is the second alternative for importing existing
BEA WebLogic database pools. A default <b>example</b> domain was created in the
WebLogic server with all the sample applications also included by default. This domain is
located in the &lt;bea_home&gt;\user_projects\domains\examples directory.</p>

<p>On the first screen of the import wizard (illustrated in the above figure), enter
the following values for the <b>Domain directory path:</b> and the <b>weblogic81/server/lib
path:</b>, and click <b>Next</b>.</p>

<ul>
	<li>Domain directory path: <tt>&lt;bea_home&gt;\user_projects\domains\examples</tt></li>
</ul>


<ul>
	<li>weblogic81/server/lib path: <tt>&lt;bea_home&gt;\weblogic81\server\lib</tt></li>
</ul>


<p>Step 2, illustrated in the following figure, shows a list of recognized database
pools from the WebLogic domain you specified. These database pools can be imported to Apache
Geronimo.</p>

<p><span class="image-wrap" style=""><img src="/confluence/download/attachments/20645325/bea_import2.jpg?version=1&amp;modificationDate=1203704845000"
style="border: 0px solid black" /></span></p>

<p>Note that the WebLogic domain that you are trying to import the database pools from
must be running if you want to successfully test the connection. For this example, click the
<b>Confirm and Deploy</b> link for the second database pool in the list, the one
corresponding to <b>examples-dataSource-demoPool</b>.</p>

<p>In the following step, select the <b>Driver JAR:</b> that you just created
in the Geronimo repository.</p>

<p><span class="image-wrap" style=""><img src="/confluence/download/attachments/20645325/bea_import3.jpg?version=1&amp;modificationDate=1203704845000"
style="border: 0px solid black" /></span></p>

<p>Note that the database password has been recognized. Click <b>Test Connection</b>,
and you will see a confirmation similar to the following figure. Click <b>Deploy</b>.</p>

<p><span class="image-wrap" style=""><img src="/confluence/download/attachments/20645325/bea_import4.jpg?version=1&amp;modificationDate=1203704845000"
style="border: 0px solid black" /></span></p>

<p>The following page goes back to the Step 2. This time it will display the remaining
database pools available for import and will also show the import status of the database pool
that you just imported. At this point, you can click <b>Skip Remaining Pools</b>
to leave the import wizard.</p>

<p><span class="image-wrap" style=""><img src="/confluence/download/attachments/20645325/bea_import5.jpg?version=1&amp;modificationDate=1203704845000"
style="border: 0px solid black" /></span></p>

<p>Now you can see the database pool that you just imported listed in the database pool
portlet.</p>

<p><span class="image-wrap" style=""><img src="/confluence/download/attachments/20645325/bea_import6.jpg?version=1&amp;modificationDate=1203704852000"
style="border: 0px solid black" /></span></p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/Import+database+pools+from+WebLogic+8.1">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=20645325&revisedVersion=3&originalVersion=2">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/GMOxDOC30/Import+database+pools+from+WebLogic+8.1?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message