[jboss-cvs] JBossAS SVN: r105622 - projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jun 3 03:08:00 EDT 2010
Author: misty at redhat.com
Date: 2010-06-03 03:08:00 -0400 (Thu, 03 Jun 2010)
New Revision: 105622
Modified:
projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Websphere.xml
Log:
JBPAPP-4387
Modified: projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Websphere.xml
===================================================================
--- projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Websphere.xml 2010-06-03 07:01:41 UTC (rev 105621)
+++ projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Websphere.xml 2010-06-03 07:08:00 UTC (rev 105622)
@@ -52,7 +52,7 @@
Remove the <literal>/local</literal> string from the <literal>jndi-pattern</literal>, like so:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<core:init jndi-pattern="java:comp/env/jboss-seam-jee5/#{ejbName}"
debug="true"/> ]]>
</programlisting>
@@ -65,7 +65,7 @@
Remove the <literal>/local</literal> string from <literal>ejb-ref-name</literal>, as follows:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<enterprise-beans>
<!-- EJB reference required when one Seam EJB component references
another Seam EJB component using @In -->
@@ -92,7 +92,7 @@
You will also need to alter the EJB reference in <filename>web.xml</filename> so that WebSphere AS can automatically bind EJB3 references in the web module to EJB3 beans in the EAR module. Replace all <literal>/local</literal> strings in <literal>ejb-local-refs</literal> with the values shown here: <!-- #modify: can we get a before/after shot of the code, here? I thought we were removing an appended "/local", but from this programlisting has <local> tags, which could be confusing. -->
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<!-- JEE5 EJB3 names -->
<ejb-local-ref>
<ejb-ref-name>jboss-seam-jee5/AuthenticatorAction</ejb-ref-name>
@@ -141,7 +141,7 @@
<literal>EjbSynchronizations</literal> is a built-in Seam EJB, not part of the Hotel Booking example. If your application specifies <literal>transaction:ejb-transaction</literal> in <filename>components.xml</filename>, you must also include the following in your <filename>web.xml</filename>:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<ejb-local-ref>
<ejb-ref-name>myapp/EjbSynchronizations</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
@@ -153,8 +153,8 @@
If you do not include this, you will encounter the following error:
</para>
-<programlisting>Name comp/env/myapp/EjbSynchronizations not found in context java:
-</programlisting>
+<screen>Name comp/env/myapp/EjbSynchronizations not found in context java:
+</screen>
</note>
</listitem>
</varlistentry>
@@ -165,13 +165,13 @@
This example requires the WebSphere AS's default data source. To use it, change the <literal>jta-data-source</literal> element like so:
</para>
-<programlisting role="XML"><![CDATA[<jta-data-source>DefaultDatasource</jta-data-source> ]]>
+<programlisting language="XML" role="XML"><![CDATA[<jta-data-source>DefaultDatasource</jta-data-source> ]]>
</programlisting>
<para>
We must also adjust some Hibernate properties. First, use comment tags to omit the GlassFish properties and include the following changes:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<!--<property name="hibernate.transaction.flush_before_completion"
value="true"/>-->
<property name="hibernate.cache.provider_class"
@@ -193,9 +193,9 @@
<literal>hibernate.transaction.flush_before_completion</literal> —This has been commented out so that transactions are managed by the container. If this is set to <parameter>true</parameter>, an exception will occur when the WebSphere AS looks up the EJBContext.
</para>
-<programlisting><![CDATA[
+<screen><![CDATA[
com.ibm.wsspi.injectionengine.InjectionException: EJBContext may only be looked up by or injected into an EJB]]>
-</programlisting>
+</screen>
</listitem>
<listitem>
<para>
@@ -213,8 +213,8 @@
Copy <filename>GlassfishDerbyDialect.java</filename> from the JPA example source directory into the <literal>/src</literal> directory with the following command (executed from within the <literal>jee5/booking</literal> directory):
</para>
-<programlisting><![CDATA[ cp ../../jpa/src/GlassfishDerbyDialect.java ./src]]>
-</programlisting>
+<screen><command>[ cp ../../jpa/src/GlassfishDerbyDialect.java ./src</command></screen>
+
<para>
This class will be added to the <filename>jboss-seam-jee5.jar</filename> file.
</para>
@@ -225,8 +225,8 @@
<listitem>
<para>
Copy this file from the JPA example so that changes to the <literal>ID</literal> column are supported. (Column support is the only difference between the files.) Use the following command:
-<programlisting><![CDATA[ cp ../../jpa/resources-websphere7/import.sql ./resources]]>
-</programlisting>
+<screen><command>cp ../../jpa/resources-websphere7/import.sql ./resources</command></screen>
+
</para>
</listitem>
</varlistentry>
@@ -251,7 +251,7 @@
Append the following to <filename>build.xml</filename> to override the default fileset that populates <filename>jboss-seam-jee5.jar</filename>:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<fileset id="jar.resources" dir="${resources.dir}">
<include name="import.sql" />
<include name="seam.properties" />
@@ -274,13 +274,8 @@
<orderedlist>
<listitem>
<para>
- Log in to the administration console through
-<programlisting><![CDATA[https://localhost:9043/admin]]>
-</programlisting>
- or
-<programlisting><![CDATA[http://localhost:9060/admin]]>
-</programlisting>
- .
+ Log in to the administration console through <ulink url="https://localhost:9043/admin" /> or <ulink url="http://localhost:9060/admin" />.
+
</para>
</listitem>
<listitem>
@@ -769,7 +764,7 @@
Add the following properties, or edit existing properties to resemble the following: (Detailed descriptions are available at <xref linkend="jee5-websphere-section" />.)
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<property name="hibernate.dialect" value="GlassfishDerbyDialect"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="true"/>
@@ -786,7 +781,7 @@
Remove the JBoss AS-specific method of exposing the <literal>EntityManagerFactory</literal>:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<property name="jboss.entity.manager.factory.jndi.name"
value="java:/websphere_exampleEntityManagerFactory">]]>
</programlisting>
@@ -831,7 +826,7 @@
<itemizedlist>
<listitem>
<para>
- Enable container-managed transaction integration by adding the <literal><transaction:ejb-transaction /> </literal> component and its namespace declaration <literal>xmlns:transaction="http://jboss.com/products/seam/transaction"</literal>.
+ Enable container-managed transaction integration by adding the <literal><transaction:ejb-transaction /> </literal> component and its namespace declaration <literal>xmlns:transaction="http://jboss.com/products/seam/transaction"</literal>.
</para>
</listitem>
<listitem>
@@ -844,7 +839,7 @@
This example does not require <literal>managed-persistence-context</literal>, so you can delete its entry.
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<persistence:managed-persistence-context name="entityManager" auto-create="true"
persistence-unit-jndi-name=
"java:/websphere_exampleEntityManagerFactory"/>]]>
@@ -860,7 +855,7 @@
Remove the <literal>/local</literal> string in <literal>ejb-ref-name</literal> to mark your EJBs for binding by WebSphere AS. <!-- #modify: Please check; previous version was incoherent. -->
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<ejb-local-ref>
<ejb-ref-name>websphere_example/AuthenticatorAction</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
@@ -906,16 +901,16 @@
</listitem>
</itemizedlist>
-<programlisting role="JAVA"><![CDATA[
+<programlisting language="Java" role="JAVA">
@Name("authenticator")
@Stateless
-public class AuthenticatorAction implements Authenticator {..}]]>
+public class AuthenticatorAction implements Authenticator {..}
</programlisting>
-<programlisting role="JAVA"><![CDATA[
+<programlisting language="Java" role="JAVA">
@Local public interface Authenticator {
public boolean authenticate();
-}]]>
+}
</programlisting>
</listitem>
<listitem>
@@ -937,7 +932,7 @@
Change the default target to "<literal>archive</literal>". (We will not cover automatic deployment to WebSphere AS.)
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<project name="websphere_example" default="archive" basedir=".">]]>
</programlisting>
</listitem>
@@ -946,7 +941,7 @@
Instead of searching in the root of the <filename>websphere_example.jar</filename> for the Drools <filename>/security.drl</filename>, WebSphere searches in the root of the <filename>WAR</filename>. Add the following to the top of the <literal> <![CDATA[<target name="war" depends="compile" description="Build the distribution.war file">]]> </literal> target in <filename>build.xml</filename> to move <filename>/security.drl</filename> to the searched location at build time:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<copy todir="${war.dir}">
<fileset dir="${basedir}/resources" >
<include name="*.drl" />
@@ -959,7 +954,7 @@
Now, add the <filename>JAR</filename>s to <filename>build.xml</filename> by placing them in <literal>include</literal> tags in the task's <literal><![CDATA[<fileset dir="${basedir}">]]></literal> section:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<target name="ear" description="Build the EAR">
<copy todir="${ear.dir}">
@@ -999,7 +994,7 @@
Hibernate dependencies
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<!-- Hibernate and deps -->
<include name="lib/hibernate.jar"/>
<include name="lib/hibernate-commons-annotations.jar"/>
@@ -1014,7 +1009,7 @@
Third party dependencies.
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<!-- 3rd party and supporting jars -->
<!--<include name="lib/log4j.jar" />-->
<include name="lib/javassist.jar"/>
@@ -1032,7 +1027,7 @@
<filename>jboss-seam.jar</filename> must be added to the <filename>EAR</filename> base directory.
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<!-- seam jar -->
<include name="lib/jboss-seam.jar" />]]>
</programlisting>
@@ -1042,7 +1037,7 @@
Your changes should result in a list similar to the following:
</para>
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
<fileset dir="${basedir}">
<include name="lib/jbpm*.jar" />
<include name="lib/jboss-el.jar" />
More information about the jboss-cvs-commits
mailing list