Author: mmcallis
Date: 2008-02-05 22:23:05 -0500 (Tue, 05 Feb 2008)
New Revision: 9794
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/configuration.xml
Log:
revising 3.3.2. DB Dialect Settings for the CMS Component
Modified:
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/configuration.xml
===================================================================
---
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/configuration.xml 2008-02-06
02:43:45 UTC (rev 9793)
+++
docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/configuration.xml 2008-02-06
03:23:05 UTC (rev 9794)
@@ -130,11 +130,11 @@
context-root other than <emphasis>/</emphasis>, under the
<filename>$JBOSS_HOME/server/default/deploy/jboss-web.deployer/ROOT.war/WEB-INF/</filename>
directory, for the above changes to take affect. The following is an example
<filename>jboss-web.xml</filename> file, which changes the Tomcat context path
to <computeroutput>/tomcat-root</computeroutput>:
</para>
<para>
-<programlisting><![CDATA[
+<screen><![CDATA[
<?xml version="1.0"?>
<jboss-web>
<context-root>/tomcat-root</context-root>
-</jboss-web>]]></programlisting>
+</jboss-web>]]></screen>
</para>
</note>
</para>
@@ -150,44 +150,47 @@
All <filename>hibernate.cfg.xml</filename> files in all JBoss Portal
modules you intend to use need to be modified. The
<filename>hibernate.cfg.xml</filename> files are found in the
<filename>jboss-portal.sar/<replaceable>module</replaceable>/conf/hibernate/<replaceable>directory</replaceable>/</filename>
directory, where <replaceable>module</replaceable> is the module name, and
<replaceable>directory</replaceable> is a directory that, depending on the
module, may or may not exist.
</para>
<para>
- To modify these files to force the DB dialect, un-comment the following line from each
<filename>hibernate.cfg.xml</filename> file in each JBoss Portal module you
intend to use:
+ To modify these files to force the DB dialect, un-comment the following line from each
<filename>hibernate.cfg.xml</filename> file in each JBoss Portal module you
intend to use, so that it looks like the following:
</para>
<para>
<screen><![CDATA[
<!-- Force the dialect instead of using autodetection -->
-<!--
<property
name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
--->
-]]>
-</screen>
+]]></screen>
</para>
<para>
- After un-commenting, the <filename>hibernate.cfg.xml</filename> will look
as follows:
+ Note: this example is for a PostgreSQL database. If you use another database, you will
need to modify
<computeroutput>org.hibernate.dialect.PostgreSQLDialect</computeroutput> to
reflect the correct database. For a list of supported dialects, refer to the <ulink
url="http://www.hibernate.org/hib_docs/v3/reference/en/html/session-...
list on the Hibernate website</ulink>.
</para>
- <para>
+ </sect2>
+ <sect2>
+ <title>DB Dialect Settings for the CMS Component</title>
+ <para>
+ To modify the DB dialect setting for the JBoss Portal CMS component:
+ </para>
+ <para>
+ <orderedlist>
+ <listitem>
+ <para>
+ Open the
<filename>jboss-portal.sar/portal-cms.sar/conf/hibernate/cms/hibernate.cfg.xml</filename>
file.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Un-comment the following line, so that it looks like the following:
+ </para>
+ <para>
<screen><![CDATA[
<!-- Force the dialect instead of using autodetection -->
<property
name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
-]]>
-</screen>
+]]></screen>
+ </para>
+ </listitem>
+ </orderedlist>
</para>
<para>
- Note: these examples are for a PostgreSQL database. If you use another database, you
will need to modify
<computeroutput>org.hibernate.dialect.PostgreSQLDialect</computeroutput> to
reflect the correct database.
+ Note: this example is for a PostgreSQL database. If you use another database, you will
need to modify
<computeroutput>org.hibernate.dialect.PostgreSQLDialect</computeroutput> to
reflect the correct database. For a list of supported dialects, refer to the <ulink
url="http://www.hibernate.org/hib_docs/v3/reference/en/html/session-...
list on the Hibernate website</ulink>.
</para>
</sect2>
- <sect2>
- <title>DB Dialect settings for the CMS component</title>
- <para>Modify
<literal>jboss-portal.sar/portal-cms.sar/conf/hibernate/cms/hibernate.cfg.xml</literal>
by
- uncommenting the following line in these files and using the appropriate
dialect (see
- <ulink
url="http://www.hibernate.org/hib_docs/v3/reference/en/html/session-...
- </ulink> for a list of supported dialects in Hibernate 3):
- <programlisting><![CDATA[
-<!-- Force the dialect instead of using autodetection -->
-<!--
-<property
name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
--->]]></programlisting>
- </para>
- </sect2>
</sect1>
<sect1 id="emailConfiguration">
<title>Setting up the email service</title>