db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/xdocs deployment.xml
Date Wed, 19 Mar 2003 01:09:22 GMT
arminw      2003/03/18 17:09:22

  Modified:    src/test/org/apache/ojb OJB.properties
               xdocs    deployment.xml
  Log:
  add section to make OJB re-deployable
  in jboss, fix TransactionManagerFactory
  paths in OJB.properties
  
  Revision  Changes    Path
  1.43      +4 -4      db-ojb/src/test/org/apache/ojb/OJB.properties
  
  Index: OJB.properties
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/OJB.properties,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- OJB.properties	15 Mar 2003 08:51:19 -0000	1.42
  +++ OJB.properties	19 Mar 2003 01:09:21 -0000	1.43
  @@ -335,13 +335,13 @@
   # (org.apache.ojb.odmg.JTATxManager)
   #
   # JBoss Transaction Manager Factory
  -JTATransactionManagerClass=org.apache.ojb.odmg.transaction.factory.JBossTransactionManagerFactory
  +JTATransactionManagerClass=org.apache.ojb.odmg.transaction.JBossTransactionManagerFactory
   # Weblogic Transaction Manager Factory
  -#JTATransactionManagerClass=org.apache.ojb.odmg.transaction.factory.WeblogicTransactionManagerFactory
  +#JTATransactionManagerClass=org.apache.ojb.odmg.transaction.WeblogicTransactionManagerFactory
   # WebSphere transaction manager factory
  -#JTATransactionManagerClass=org.apache.ojb.odmg.transaction.factory.WebSphereTransactionManagerFactory
  +#JTATransactionManagerClass=org.apache.ojb.odmg.transaction.WebSphereTransactionManagerFactory
   # Orion transaction manager factory
  -#JTATransactionManagerClass=org.apache.ojb.odmg.transaction.factory.OrionTransactionManagerFactory
  +#JTATransactionManagerClass=org.apache.ojb.odmg.transaction.OrionTransactionManagerFactory
   #
   #
   #----------------------------------------------------------------------------------------
  
  
  
  1.17      +30 -7     db-ojb/xdocs/deployment.xml
  
  Index: deployment.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/xdocs/deployment.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- deployment.xml	14 Mar 2003 21:04:16 -0000	1.16
  +++ deployment.xml	19 Mar 2003 01:09:22 -0000	1.17
  @@ -241,7 +241,9 @@
   
   
   <subsection name="Instructions for JBoss" anchor="31">
  -
  +<br/>
  +<i>The eight step guide to felicity</i>
  +<br/>
   <p>
   <b>1. Get the missed jar files</b>
   <br/>
  @@ -258,6 +260,7 @@
   Put these jar files in the <code>lib</code> directory of OJB.
   </p>
   
  +
   <p>
   <b>2. Make a .sar directory</b>
   <br/>
  @@ -290,8 +293,22 @@
   This entries make OJB accessible via JNDI.
   </p>
   
  +
  +<p>
  +<b>3. Put libraries to .sar-directory</b>
  +<br/>
  +To make OJB run and (re-)deployable you have to put the
  +jars OJB depend on to the <code>ojb.sar</code> directory:
  +<ul>
  +<li>The jakarta commons libraries files (all commons-xxx.jar)</li>
  +<li>The antlr jar files (all antlrxxx.jar)</li>
  +</ul>
  +(This was tested with jboss 3.0.6)
  +</p>
   <p>
  -<b>3. Prepare OJB code base</b>
  +
  +
  +<b>4. Prepare OJB code base</b>
   <br/>
   With <code>bin\build.bat prepare-jboss jar</code>
   using windows or<br/>
  @@ -307,8 +324,9 @@
   Copy the <code>db-ojb-xxx.jar</code> file into the <code>ojb.sar</code>
directory.
   </p>
   
  +
   <p>
  -<b>4. Copy OJB configuration files into the <code>ojb.sar</code> directory</b>
  +<b>5. Copy OJB configuration files into the <code>ojb.sar</code> directory</b>
   <br/>
   OJB.properties, repository.xml, repository_internal.xml, repository_database.xml,
   repository_ejb.xml (if you want to run the ejb examples). The repository.xml
  @@ -346,8 +364,9 @@
   ]]></source>
   </p>
   
  +
   <p>
  -<b>5. Adapt OJB.properties file</b>
  +<b>6. Adapt OJB.properties file</b>
   <br/>
   Your OJB.properties file need the following settings:
   <source><![CDATA[
  @@ -361,8 +380,10 @@
   ]]></source>
   </p>
   
  +
   <p>
  -<b>5. Declare datasources in the repository (repository_database) file</b>
  +<b>7. Declare datasources in the repository (repository_database) file</b>
  +<br/>
   Do only use <code>DataSource</code> from the application server to connect
your databases.
   <source><![CDATA[
   <!-- Datasource example -->
  @@ -395,7 +416,7 @@
   </p>
   
   <p>
  -<b>4a. Inside your EJB's you can get a handle on the ODMG like this:</b>
  +<b>8a. Inside your EJB's you can get a handle on the ODMG like this:</b>
   <source><![CDATA[
   ODMGFactory factory =
   (ODMGFactory) context.lookup("java:/ojb/defaultODMG");
  @@ -403,8 +424,9 @@
   ]]></source>
   </p>
   
  +
   <p>
  -<b>4b. Inside your EJB's you can get a handle on the PB like this:</b>
  +<b>8b. Inside your EJB's you can get a handle on the PB like this:</b>
   <source><![CDATA[
   context = new InitialContext();
   pbf = ((PBFactoryIF) context.lookup(
  @@ -423,6 +445,7 @@
   </b>
   </p>
   </subsection>
  +
   
   <subsection name="Build the OJB sample session beans" anchor="32">
   <p>
  
  
  

Mime
View raw message