[jboss-cvs] jboss-docs/adminguide/docbook/en/modules ...

Sam Griffith sam.griffith at jboss.com
Tue Feb 20 02:24:42 EST 2007


  User: sgriffith
  Date: 07/02/20 02:24:42

  Modified:    adminguide/docbook/en/modules  appendix-alternative_DBs.xml
  Log:
  fixed some bugs causing PDF build to fail.
  
  Revision  Changes    Path
  1.3       +9 -11     jboss-docs/adminguide/docbook/en/modules/appendix-alternative_DBs.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: appendix-alternative_DBs.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-docs/adminguide/docbook/en/modules/appendix-alternative_DBs.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- appendix-alternative_DBs.xml	19 Feb 2007 22:30:27 -0000	1.2
  +++ appendix-alternative_DBs.xml	20 Feb 2007 07:24:42 -0000	1.3
  @@ -1,4 +1,5 @@
  -<appendix id="appendix-install">
  +<appendix id="appendix-alternative_DBs">
  +	<title>Usage of Alternative Databases</title>
   	<section>
   		<title>How to Us Alternative Databases</title>
   		<para>
  @@ -41,7 +42,7 @@
   			With that grant command we created a user <literal>sam</literal> with a password <literal>password</literal>. User <literal>sam</literal> has access to everything in the <literal>jboss</literal> database.
   		</para>
   		<para>
  -			We can look at the MySQL user table to see that <listeral>sam</literal> has been added.
  +			We can look at the MySQL user table to see that <literal>sam</literal> has been added.
   			<programlisting>
   				mysql> select user, host, password from mysql.user;
   				+------+-------------------+-------------------------------------------+
  @@ -108,9 +109,8 @@
   		<para>
   			A MySQL datasource definition can be found in <literal>jboss-4.2.0.CR1/docs/examples/jca</literal>.  If you look in there you'll find a file called <literal>mysql-ds.xml</literal>. It looks like this:
   			<programlisting>
  -				<?xml version="1.0" encoding="UTF-8"?>
   
  -				<!-- $Id: appendix-alternative_DBs.xml,v 1.2 2007/02/19 22:30:27 sgriffith Exp $ -->
  +				<!-- $Id: appendix-alternative_DBs.xml,v 1.3 2007/02/20 07:24:42 sgriffith Exp $ -->
   				<!--  Datasource config for MySQL using 3.0.9 available from:
   				http://www.mysql.com/downloads/api-jdbc-stable.html
   				-->
  @@ -144,9 +144,8 @@
   		<para>
   			We need to copy that file to the <literal>deploy</literal> directory for our server. (In our case "default"). Once we do that we need to change the <literal>connection-url</literal> to <literal>jdbc:mysql://localhost:3306/jboss</literal>. For the username put <literal>sam</literal> and for the password put <literal>password</literal>.
   			<programlisting>
  -				<?xml version="1.0" encoding="UTF-8"?>
   
  -				<!-- $Id: appendix-alternative_DBs.xml,v 1.2 2007/02/19 22:30:27 sgriffith Exp $ -->
  +				<!-- $Id: appendix-alternative_DBs.xml,v 1.3 2007/02/20 07:24:42 sgriffith Exp $ -->
   				<!--  Datasource config for MySQL using 3.0.9 available from:
   				http://www.mysql.com/downloads/api-jdbc-stable.html
   				-->
  @@ -193,11 +192,10 @@
   			To configure your application to use MySQL, look for a *jbosscmp-jdbc.xml deployment descriptor. It is located in your servers <literal>conf</literal> directory. 
   			<programlisting>
   				<jbosscmp-jdbc>
  -
   				   <defaults>
   				      <datasource>java:/MySqlDS</datasource>
   				      <!-- optional since 4.0 <datasource-mapping>Hypersonic SQL</datasource-mapping> -->
  -							<datasource>mySQL</datasource-mapping>
  +							<datasource-mapping>mySQL</datasource-mapping>
   				   </defaults>
   				</jbosscmp-jdbc>
   			</programlisting>
  @@ -206,7 +204,7 @@
   		<para>For a full set of defautl datasource mappings look in <literal>jboss-4.2.0.CR1/server/default/conf/standardjbosscmp-jdbc.xml</literal>. In that file you can look for the <literal>mySQL</literal> type mapping.
   		</para>
   		<para>
  -			If you need to change any of the type mappings for mySQL you can put your own custom <literal>jbosscmp-jdbc.xml</literal> file right in your META-INF directory of your EJB JAR with the <literal>ejb-jar.xml</literal> and </literal>jboss.xml</literal> deployment descriptor files. Then you need to add a <literal>-Doptonal.dd=mysql</literal> to your <literal>ant</literal> build commands. When you've done that, your application will now be talking to MySQL. Now when you look at the tables for your MySQL database, you should see some tables that your application deployment created. You can see the tables in a MySQL database by typeing <literal>show tables;</literal>.
  +			If you need to change any of the type mappings for mySQL you can put your own custom <literal>jbosscmp-jdbc.xml</literal> file right in your META-INF directory of your EJB JAR with the <literal>ejb-jar.xml</literal> and <literal>jboss.xml</literal> deployment descriptor files. Then you need to add a <literal>-Doptonal.dd=mysql</literal> to your <literal>ant</literal> build commands. When you've done that, your application will now be talking to MySQL. Now when you look at the tables for your MySQL database, you should see some tables that your application deployment created. You can see the tables in a MySQL database by typeing <literal>show tables;</literal>.
   		</para>
   	</section>
   	
  
  
  



More information about the jboss-cvs-commits mailing list