# Language te-IN translations for PACKAGE package.
# Automatically generated, 2008.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-04-04 01:24+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. Tag: title
#: Websphere.xml:2
#, no-c-format
msgid "Seam on IBM's Websphere"
msgstr ""

#. Tag: para
#: Websphere.xml:4
#, no-c-format
msgid ""
"Websphere 6.1.x is IBM's application server offering. The latest release is "
"6.1.0.13 which does not have <literal>EJB3</literal> or <literal>JEE5</"
"literal> support. There is a recently released (Nov 07) <literal>EJB3</"
"literal> feature pack which provides some support for <literal>EJB3</"
"literal> and <literal>JPA</literal>. Currently there is no true "
"<literal>JEE5</literal> offering from IBM. This causes some issues with Seam "
"integration with applications that use EJB3."
msgstr ""

#. Tag: para
#: Websphere.xml:12
#, no-c-format
msgid ""
"First we will go over some basic information about the Websphere environment "
"that we used for these examples. After a good deal of research and work we "
"were able to get EJB3 applications to function correctly. We will go over "
"the details of those steps with the jee5 example. We will also deploy the "
"the JPA example application."
msgstr ""

#. Tag: title
#: Websphere.xml:19
#, no-c-format
msgid "Websphere environment and deployment information"
msgstr ""

#. Tag: para
#: Websphere.xml:21
#, no-c-format
msgid ""
"Websphere is a commercial product and so we will not discuss the details of "
"its installation other than to say follow the directions provided by your "
"particular installation type and license. This section will detail the exact "
"server versions used, installation tips, and some custom properties that are "
"needed for all of the examples."
msgstr ""

#. Tag: title
#: Websphere.xml:29
#, no-c-format
msgid "Installation versions and tips"
msgstr ""

#. Tag: para
#: Websphere.xml:30
#, no-c-format
msgid ""
"All of the examples and information in this chapter are based on the the "
"latest version of Websphere at the time of this writing."
msgstr ""

#. Tag: ulink
#: Websphere.xml:35
#, no-c-format
msgid "Websphere Application Server 6.1.0.13"
msgstr ""

#. Tag: ulink
#: Websphere.xml:40
#, no-c-format
msgid ""
"Feature Pack for EJB 3.0 for Websphere Application Server V6.1 (3.0.6.1.0.13)"
msgstr ""

#. Tag: para
#: Websphere.xml:46
#, no-c-format
msgid ""
"The EJB3 feature pack that we installed came with the 6.1.0.13 patch version "
"of Websphere. Installing the feature pack does not ensure that your server "
"will have the proper environment for EJB3 applications. Be sure that as part "
"of the installation of the feature pack you follow the instructions to "
"create a new server profile with the EJB3 feature pack enabled, or augment "
"one of your existing ones. This can also be done after the installation by "
"running the profile managment tool."
msgstr ""

#. Tag: title
#: Websphere.xml:55
#, no-c-format
msgid "A note about restarting the server"
msgstr ""

#. Tag: para
#: Websphere.xml:56
#, no-c-format
msgid ""
"There are times that restarting the server will be required after deploying "
"or changes the examples in this chapter. Its does not seem like every change "
"requires a restart. If you get errors or exceptions after modifing a "
"property or deploying an application try to restart the server."
msgstr ""

#. Tag: title
#: Websphere.xml:64
#, no-c-format
msgid "Required custom properties"
msgstr ""

#. Tag: para
#: Websphere.xml:65
#, no-c-format
msgid ""
"There are a couple of Websphere custom properties that are required for Seam "
"integration. These properties are not needed specifically for Seam, but work "
"around some issues with Websphere. These are set following the instructions "
"here : <ulink url=\"http://www-1.ibm.com/support/docview.wss?rss=180&amp;"
"uid=swg21284395\"> Setting web container custom properties</ulink>"
msgstr ""

#. Tag: para
#: Websphere.xml:74
#, no-c-format
msgid ""
"<literal>prependSlashToResource = \"true\"</literal> &#8212; This solves a "
"fairly common issue with Websphere where applications are not using a "
"leading \"/\" when attempting to access resources. If this is not set then a "
"<literal>java.net.MalformedURLException</literal> will be thrown. With this "
"property set you will still see warnings, but the resources will be "
"retrieved as expected."
msgstr ""

#. Tag: title
#: Websphere.xml:82 Websphere.xml:100
#, no-c-format
msgid "Detailed can be found at:"
msgstr ""

#. Tag: ulink
#: Websphere.xml:84
#, no-c-format
msgid "SRVE0238E: Resource paths must have a leading slash"
msgstr ""

#. Tag: para
#: Websphere.xml:89
#, no-c-format
msgid ""
"<literal>com.ibm.ws.webcontainer.invokefilterscompatibility = \"true\"</"
"literal> &#8212; This solves an issue with Websphere where it throws a "
"<literal>FileNotFoundException</literal> when a web application attempts to "
"access a file resource that does not actually exist on disk. This is a "
"common practice in modern web applications where filters or servlets are "
"used to process resource requests like these. This issue manifests itself as "
"failures to retrieve JavaScript, CSS, images, etc... when requesting a web "
"page."
msgstr ""

#. Tag: ulink
#: Websphere.xml:102
#, no-c-format
msgid ""
"PK33090; 6.1: A filter that serves a file does not pop-up an alert message"
msgstr ""

#. Tag: title
#: Websphere.xml:111
#, no-c-format
msgid "The <literal>jee5/booking</literal> example"
msgstr ""

#. Tag: para
#: Websphere.xml:113
#, no-c-format
msgid ""
"The <literal>jee5/booking</literal> example is based on the Hotel Booking "
"example (which runs on JBoss AS). Out of the box it is designed to run on "
"Glassfish, but with the steps below it can be deployed to Websphere. It is "
"located in the <literal>$SEAM_DIST/examples/jee5/booking</literal> directory."
msgstr ""

#. Tag: para
#: Websphere.xml:120
#, no-c-format
msgid ""
"As stated before the <literal>EJB3</literal> feature pack does not provide a "
"full <literal>jee5</literal> implementation. This means that there are some "
"tricks to getting an application deployed and functioning."
msgstr ""

#. Tag: title
#: Websphere.xml:126 Websphere.xml:903
#, no-c-format
msgid "<title>Configuration file changes</title>"
msgstr ""

#. Tag: para
#: Websphere.xml:128
#, no-c-format
msgid ""
"Below are the configuration file changes that are need to the base example."
msgstr ""

#. Tag: literal
#: Websphere.xml:134 Websphere.xml:977
#, no-c-format
msgid "resources/WEB-INF/components.xml"
msgstr ""

#. Tag: para
#: Websphere.xml:137
#, no-c-format
msgid ""
"We need to change the way that we look up EJBs for Websphere. We need to "
"remove the <literal>/local</literal> from the end of the <literal>jndi-"
"pattern</literal> attribute. It should look like this:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:144
#, no-c-format
msgid ""
"<![CDATA[\n"
"<core:init jndi-pattern=\"java:comp/env/jboss-seam-jee5/#{ejbName}\" debug="
"\"true\"/>\n"
"                  ]]>"
msgstr ""

#. Tag: literal
#: Websphere.xml:148 Websphere.xml:1009
#, no-c-format
msgid "resources/WEB-INF/web.xml"
msgstr ""

#. Tag: para
#: Websphere.xml:151
#, no-c-format
msgid ""
"This is the first place that we notice an unexpected change because this is "
"not full <literal>jee5</literal> implementation."
msgstr ""

#. Tag: para
#: Websphere.xml:154
#, no-c-format
msgid ""
"Websphere does not support <literal>Servlet 2.5</literal>, it requires "
"<literal>Servlet 2.4</literal>. For this change we need to adjust the top of "
"the <literal>web.xml</literal> file to look like the following:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:161
#, no-c-format
msgid ""
"<![CDATA[<xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<web-app version=\"2.4\" \n"
"         xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
"         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
"         xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee \n"
"                             http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
"\">\n"
"                  ]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:162
#, no-c-format
msgid ""
"Next, we have to make some changes to the EJB references in the <literal>web."
"xml</literal>. These changes are what will allow Websphere to bind the EJB2 "
"references in the web module to the the actual EJB3 beans in the EAR module. "
"Replace all of the <literal>ejb-local-refs</literal> when the values below."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:171
#, no-c-format
msgid ""
"<![CDATA[\n"
"  <!-- JEE5 EJB3 names -->\n"
"  <ejb-local-ref>              \n"
"    <ejb-ref-name>jboss-seam-jee5/AuthenticatorAction</ejb-ref-"
"name>                \n"
"    <ejb-ref-type>Session</ejb-ref-type>     \n"
"    <local-home></local-home>\n"
"    <local>org.jboss.seam.example.booking.Authenticator</local>  \n"
"  </ejb-local-ref>     \n"
"  \n"
"  <ejb-local-ref>       \n"
"    <ejb-ref-name>jboss-seam-jee5/BookingListAction</ejb-ref-name>       \n"
"    <ejb-ref-type>Session</ejb-ref-type>       \n"
"     <local-home></local-home>\n"
"    <local>org.jboss.seam.example.booking.BookingList</local>  \n"
"  </ejb-local-ref>    \n"
"  \n"
"  <ejb-local-ref>       \n"
"    <ejb-ref-name>jboss-seam-jee5/RegisterAction</ejb-ref-name>       \n"
"    <ejb-ref-type>Session</ejb-ref-type>       \n"
"     <local-home></local-home>\n"
"    <local>org.jboss.seam.example.booking.Register</local>    \n"
"  </ejb-local-ref>    \n"
"  \n"
"  <ejb-local-ref>       \n"
"    <ejb-ref-name>jboss-seam-jee5/ChangePasswordAction</ejb-ref-"
"name>       \n"
"    <ejb-ref-type>Session</ejb-ref-type>  \n"
"     <local-home></local-home>     \n"
"    <local>org.jboss.seam.example.booking.ChangePassword</local>     \n"
"  </ejb-local-ref>    \n"
"  \n"
"  <ejb-local-ref>       \n"
"    <ejb-ref-name>jboss-seam-jee5/HotelBookingAction</ejb-ref-name>       \n"
"    <ejb-ref-type>Session</ejb-ref-type>       \n"
"     <local-home></local-home>\n"
"    <local>org.jboss.seam.example.booking.HotelBooking</local>     \n"
"  </ejb-local-ref>    \n"
"  \n"
"  <ejb-local-ref>       \n"
"    <ejb-ref-name>jboss-seam-jee5/HotelSearchingAction</ejb-ref-"
"name>       \n"
"    <ejb-ref-type>Session</ejb-ref-type>      \n"
"     <local-home></local-home> \n"
"    <local>org.jboss.seam.example.booking.HotelSAll of the examples and "
"informaearching</local> \n"
"  </ejb-local-ref>    \n"
"    \n"
"  <ejb-local-ref>\n"
"    <ejb-ref-name>jboss-seam-jee5/EjbSynchronizations</ejb-ref-name>  \n"
"    <ejb-ref-type>Session</ejb-ref-type>\n"
"    <local-home></local-home>\n"
"    <local>org.jboss.seam.transaction.LocalEjbSynchronizations</local>\n"
"  </ejb-local-ref>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:172
#, no-c-format
msgid ""
"The important change is that there is an empty <literal>local-home</literal> "
"element for each EJB. This tells Websphere to make the correct bindings "
"between the web module and the EJB3 beans. The <literal>ejb-link</literal> "
"element is simply not used."
msgstr ""

#. Tag: para
#: Websphere.xml:178
#, no-c-format
msgid ""
"Note also that <literal>EjbSynchronizations</literal> is a built-in Seam EJB "
"and not part of the Hotel Booking example. This means that if your "
"application's <literal>components.xml</literal> specifies "
"<literal>transaction:ejb-transaction</literal> , then you must include:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:183
#, no-c-format
msgid ""
"<![CDATA[\n"
"  <ejb-local-ref>\n"
"    <ejb-ref-name>myapp/EjbSynchronizations</ejb-ref-name>\n"
"    <ejb-ref-type>Session</ejb-ref-type>\n"
"    <local-home></local-home>\n"
"    <local>org.jboss.seam.transaction.LocalEjbSynchronizations</local>\n"
"  </ejb-local-ref>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:184
#, no-c-format
msgid ""
"in your web.xml. If you don't include it, you'll get the following error:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:185
#, no-c-format
msgid "Name comp/env/myapp/EjbSynchronizations not found in context java:"
msgstr ""

#. Tag: literal
#: Websphere.xml:190
#, no-c-format
msgid "resources/META-INF/persistence.xml"
msgstr ""

#. Tag: para
#: Websphere.xml:193
#, no-c-format
msgid ""
"For this example we will be using the default datasource that comes with "
"Websphere. To do this change the <literal>jta-data-source</literal> element:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:196
#, no-c-format
msgid ""
"<![CDATA[\n"
"<jta-data-source>DefaultDatasource</jta-data-source>\n"
"                  ]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:197
#, no-c-format
msgid ""
"Then we need to adjust some of the hibernate properties. First comment out "
"the Glassfish properties. Next you need to add/change the properties:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:202
#, no-c-format
msgid ""
"<![CDATA[\n"
"<!--<property name=\"hibernate.transaction.flush_before_completion\" value="
"\"true\"/>-->\n"
"<property name=\"hibernate.cache.provider_class\" \n"
"                  value=\"org.hibernate.cache.HashtableCacheProvider\"/>\n"
"<property name=\"hibernate.dialect\" value=\"GlassfishDerbyDialect\"/>\n"
"<property name=\"hibernate.transaction.manager_lookup_class\" \n"
"          value=\"org.hibernate.transaction."
"WebSphereExtendedJTATransactionLookup\"/>\n"
"                  ]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:206
#, no-c-format
msgid ""
"<literal>hibernate.transaction.manager_lookup_class</literal> &#8212; "
"Standard Hibernate transaction manager property for Websphere 6.X"
msgstr ""

#. Tag: para
#: Websphere.xml:212
#, no-c-format
msgid ""
"<literal>hibernate.transaction.flush_before_completion</literal> &#8212; "
"This is commented out because we want the container to manage the "
"transactions. Also if this is set to <literal>true</literal> an exception "
"will be thrown by Websphere when the EJBContext is looked up."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:221
#, no-c-format
msgid ""
"<![CDATA[com.ibm.wsspi.injectionengine.InjectionException: \n"
"                 EJBContext may only be looked up by or injected into an "
"EJB]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:224
#, no-c-format
msgid ""
"<literal>hibernate.dialect</literal> &#8212; From WAS 6.1.0.9 on the "
"embedded DB was switched to the same Derby DB in Glassfish."
msgstr ""

#. Tag: literal
#: Websphere.xml:234 Websphere.xml:943
#, no-c-format
msgid "resources/GlassfishDerbyDialect.class"
msgstr ""

#. Tag: para
#: Websphere.xml:237
#, no-c-format
msgid ""
"You will need to get the <literal>GlassfishDerbyDialect.class</literal> and "
"copy it into the <literal>/resources</literal> directory. The class exists "
"in the JPA example and can be copied using the command below assuming you "
"are in <literal>jee5/booking</literal> directory:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:245
#, no-c-format
msgid ""
"<![CDATA[\n"
"cp ../../jpa/resources-websphere61/WEB-INF/classes/GlassfishDerbyDialect."
"class\n"
"   ./resources]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:246
#, no-c-format
msgid ""
"This class will be put into the <literal>jboss-seam-jee5.jar</literal> file "
"using changes to the build.xml discussed later."
msgstr ""

#. Tag: literal
#: Websphere.xml:252
#, no-c-format
msgid "resources/import.sql"
msgstr ""

#. Tag: para
#: Websphere.xml:255
#, no-c-format
msgid ""
"This file must also be copied from the JPA example because either the Derby "
"DB or the dialect does not support changes to the <literal>ID</literal> "
"column. The files are identical except for the column difference. Use the "
"following command to make the copy"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:262
#, no-c-format
msgid ""
"<![CDATA[\n"
"cp ../../jpa/resources-websphere61/import.sql ./resources]]>"
msgstr ""

#. Tag: title
#: Websphere.xml:271
#, no-c-format
msgid "Building the <literal>jee5/booking</literal> example"
msgstr ""

#. Tag: para
#: Websphere.xml:274
#, no-c-format
msgid ""
"In order to get the changes we have made into our application we need to "
"make some changes to the <literal>build.xml</literal>. There are also some "
"additional jars that are required by our application in order to work with "
"Websphere. This section will cover what changes are needed to the "
"<literal>build.xml</literal>."
msgstr ""

#. Tag: title
#: Websphere.xml:281
#, no-c-format
msgid "New libraries dependencies"
msgstr ""

#. Tag: para
#: Websphere.xml:285
#, no-c-format
msgid ""
"JSF libraries &#8212; Websphere 6.1 comes with its own version of JSF 1.1 "
"(Seam requires JSF 1.2). So we must add these jars to our application:"
msgstr ""

#. Tag: literal
#: Websphere.xml:290 Websphere.xml:817
#, no-c-format
msgid "jsf-api.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:294 Websphere.xml:822
#, no-c-format
msgid "jsf-impl.jar"
msgstr ""

#. Tag: para
#: Websphere.xml:300
#, no-c-format
msgid ""
"Since Websphere is not a fully compliant <literal>JEE5</literal> "
"implementation we need to add these EL libraries:"
msgstr ""

#. Tag: literal
#: Websphere.xml:305 Websphere.xml:830
#, no-c-format
msgid "el-api.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:309 Websphere.xml:826
#, no-c-format
msgid "el-ri.jar"
msgstr ""

#. Tag: para
#: Websphere.xml:315
#, no-c-format
msgid ""
"<literal>jboss-seam.jar</literal> &#8212; for some reason when deploying the "
"application through the Websphere administration console it can not find the "
"<literal>jboss-seam.jar</literal> at the base of the EAR archive. This means "
"that we need to add it to the <literal>/lib</literal> of the EAR."
msgstr ""

#. Tag: para
#: Websphere.xml:323
#, no-c-format
msgid ""
"Finally we remove the <literal>log4j.jar</literal> so that all of the log "
"output from our application will be added to the Websphere log. Additional "
"steps are required to fully configure log4j and those are outside of the "
"scope of this document."
msgstr ""

#. Tag: title
#: Websphere.xml:334
#, no-c-format
msgid "Updating the <literal>build.xml</literal> file"
msgstr ""

#. Tag: para
#: Websphere.xml:336
#, no-c-format
msgid ""
"Add the following entry to the bottom of the <literal>build.xml</literal> "
"file. This overrides the default fileset that is used to populate the "
"<literal>jboss-seam-jee5.jar</literal>. The primary change is the addition "
"of the <literal>GlassfishDerbyDialect.class</literal>:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:345
#, no-c-format
msgid ""
"<![CDATA[\n"
"   <fileset id=\"jar.resources\" dir=\"${resources.dir}\">\n"
"      <include name=\"import.sql\" />\n"
"      <include name=\"seam.properties\" />\n"
"      <include name=\"GlassfishDerbyDialect.class\" />\n"
"      <include name=\"META-INF/persistence.xml\" />\n"
"      <include name=\"META-INF/ejb-jar.xml\" />\n"
"   </fileset>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:348
#, no-c-format
msgid ""
"Next we need to add the library dependencies discussed above. For this add "
"the following to bottom of the <literal>ear.lib.extras</literal> fileset "
"entry:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:354
#, no-c-format
msgid ""
"<![CDATA[\n"
"   <!--<include name=\"lib/log4j.jar\" />-->\n"
"   <include name=\"lib/el-api.jar\" />\n"
"   <include name=\"examples/jpa/lib/el-ri.jar\" />\n"
"   <include name=\"lib/jsf-api.jar\" />\n"
"   <include name=\"lib/jsf-impl.jar\" />\n"
"   <include name=\"lib/jboss-seam.jar\" />\n"
"</fileset>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:357
#, no-c-format
msgid ""
"Now all that is left is to execute the <literal>ant archive</literal> task "
"and the built application will be in the <literal>jee5/booking/dist</"
"literal> directory."
msgstr ""

#. Tag: title
#: Websphere.xml:366
#, no-c-format
msgid "Deploying the application to Websphere"
msgstr ""

#. Tag: para
#: Websphere.xml:368
#, no-c-format
msgid ""
"So now we have everything we need in place. All that is left is to deploy it "
"- just a few steps more."
msgstr ""

#. Tag: para
#: Websphere.xml:370
#, no-c-format
msgid ""
"For this we will use Websphere's administration console. As before there are "
"some tricks and tips that must be followed."
msgstr ""

#. Tag: para
#: Websphere.xml:373
#, no-c-format
msgid ""
"The steps below are for the Websphere version stated above, yours may be "
"slightly different."
msgstr ""

#. Tag: para
#: Websphere.xml:377
#, no-c-format
msgid "Log in to the administration console"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:380
#, no-c-format
msgid ""
"<![CDATA[\n"
"https://localhost:9043/ibm/console]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:384
#, no-c-format
msgid ""
"Access the <literal>Enterprise Application</literal> menu option under the "
"<literal>Applications</literal> top menu."
msgstr ""

#. Tag: para
#: Websphere.xml:389
#, no-c-format
msgid ""
"At the top of the <literal>Enterprise Application</literal> table select "
"<literal>Install</literal>. Below are installation wizard pages and what "
"needs to done on each:"
msgstr ""

#. Tag: literal
#: Websphere.xml:395 Websphere.xml:655
#, no-c-format
msgid "Preparing for the application installation"
msgstr ""

#. Tag: para
#: Websphere.xml:399
#, no-c-format
msgid ""
"Browse to the <literal>examples/jee5/booking/dist/jboss-seam-jee5.ear</"
"literal> file using the file upload widget."
msgstr ""

#. Tag: para
#: Websphere.xml:405 Websphere.xml:423 Websphere.xml:456 Websphere.xml:670
#, no-c-format
msgid "Select the <literal>Next</literal> button."
msgstr ""

#. Tag: literal
#: Websphere.xml:412
#, no-c-format
msgid "Select installation options"
msgstr ""

#. Tag: para
#: Websphere.xml:416
#, no-c-format
msgid ""
"Select the <literal>Deploy enterprise beans</literal> check box. This is "
"needed unless you used a Websphere tool to package the application."
msgstr ""

#. Tag: literal
#: Websphere.xml:430
#, no-c-format
msgid "Map modules to servers"
msgstr ""

#. Tag: para
#: Websphere.xml:434
#, no-c-format
msgid ""
"No changes needed here as we only have one server. Select the <literal>Next</"
"literal> button."
msgstr ""

#. Tag: para
#: Websphere.xml:442
#, no-c-format
msgid ""
"<literal>Map EJB references to beans</literal> This page will list all of "
"the beans that we entered in the web.xml."
msgstr ""

#. Tag: para
#: Websphere.xml:447
#, no-c-format
msgid ""
"Make sure that <literal>Allow EJB reference targets to resolve "
"automatically</literal> check box is selected. This will tell Websphere to "
"bind our EJB3 beans to the EJB references in the web module."
msgstr ""

#. Tag: literal
#: Websphere.xml:463
#, no-c-format
msgid "Map virtual hosts for Web modules"
msgstr ""

#. Tag: para
#: Websphere.xml:467
#, no-c-format
msgid "No changes needed here. Select the <literal>Next</literal> button."
msgstr ""

#. Tag: literal
#: Websphere.xml:474
#, no-c-format
msgid "Summary"
msgstr ""

#. Tag: para
#: Websphere.xml:477
#, no-c-format
msgid "No changes needed here. Select the <literal>Finish</literal> button."
msgstr ""

#. Tag: literal
#: Websphere.xml:484
#, no-c-format
msgid "Installation"
msgstr ""

#. Tag: para
#: Websphere.xml:487
#, no-c-format
msgid "Now you will see it installing and deploying your application."
msgstr ""

#. Tag: para
#: Websphere.xml:492
#, no-c-format
msgid ""
"When if finishes select the <literal>Save</literal> link and you will be "
"returned to the <literal>Enterprise Applications</literal> table."
msgstr ""

#. Tag: para
#: Websphere.xml:504
#, no-c-format
msgid ""
"Now that we have our application installed we need to make some adjustments "
"to it before we can start it:"
msgstr ""

#. Tag: para
#: Websphere.xml:508
#, no-c-format
msgid ""
"Starting from the <literal>Enterprise Applications</literal> table select "
"the <literal>Seam Booking</literal> link."
msgstr ""

#. Tag: para
#: Websphere.xml:514
#, no-c-format
msgid "Select the <literal>Manage Modules</literal> link."
msgstr ""

#. Tag: para
#: Websphere.xml:518
#, no-c-format
msgid "Select the <literal>jboss-seam-jee5.war</literal> link."
msgstr ""

#. Tag: para
#: Websphere.xml:523
#, no-c-format
msgid ""
"Change the <literal>Class loader order</literal> combo box to "
"<literal>Classes loaded with application class loader first</literal>."
msgstr ""

#. Tag: para
#: Websphere.xml:529 Websphere.xml:554
#, no-c-format
msgid ""
"Select <literal>Apply</literal> and then <literal>Save</literal> options."
msgstr ""

#. Tag: para
#: Websphere.xml:533
#, no-c-format
msgid "Return the <literal>Seam Booking</literal> page."
msgstr ""

#. Tag: para
#: Websphere.xml:537
#, no-c-format
msgid ""
"On this page select the <literal>Class loading and update detection</"
"literal> link."
msgstr ""

#. Tag: para
#: Websphere.xml:542
#, no-c-format
msgid ""
"Select the radio button for <literal>Classes loaded with application class "
"loader first</literal>."
msgstr ""

#. Tag: para
#: Websphere.xml:547
#, no-c-format
msgid ""
"Even though we are not enabling class reload you must also enter a valid "
"number in the <literal>Polling interval for updated files</literal> text "
"area (zero works fine)."
msgstr ""

#. Tag: para
#: Websphere.xml:558
#, no-c-format
msgid ""
"You should verify that the change you just made has been remembered. We have "
"had problems with the last class loader change not taking effect - even "
"after a restart. If the change did not take you will need to do it manually, "
"following these directions:"
msgstr ""

#. Tag: para
#: Websphere.xml:566
#, no-c-format
msgid "Open the following file in a text editor of your choice:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:570
#, no-c-format
msgid ""
"<![CDATA[\n"
"$WebSphereInstall/$yourServerName/profiles/$yourProfileName/config/cells/\n"
"                   $yourCellName/applications/Seam Booking.ear/deployments/\n"
"                   Seam Booking/deployment.xml]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:574
#, no-c-format
msgid ""
"Modify the following line so that <literal>PARENT_FIRST</literal> is now "
"<literal>PARENT_LAST</literal>:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:580
#, no-c-format
msgid ""
"<![CDATA[\n"
"<classloader xmi:id=\"Classloader_#######\" mode=\"PARENT_FIRST\"/>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:584
#, no-c-format
msgid ""
"Save the file and now when go to the <literal>Class loading and update "
"detection</literal> page you should see <literal>Classes loaded with "
"application class loader first</literal> selected."
msgstr ""

#. Tag: para
#: Websphere.xml:596
#, no-c-format
msgid ""
"To start the application return to the <literal>Enterprise Applications</"
"literal> table and select our application in the list. Then choose the "
"<literal>Start</literal> button at the top of the table."
msgstr ""

#. Tag: para
#: Websphere.xml:603
#, no-c-format
msgid ""
"You can now access the application at <literal>http://localhost:9080/seam-"
"jee5/</literal> ."
msgstr ""

#. Tag: title
#: Websphere.xml:609
#, no-c-format
msgid "A note about Websphere Stateful bean timeouts"
msgstr ""

#. Tag: para
#: Websphere.xml:610
#, no-c-format
msgid ""
"The default timeout period for a Websphere 6.1 Stateful EJB is 10 minutes. "
"This means that you may see some EJB timeout exceptions after some idle "
"time. It is possible to adjust the timeout of the Stateful EJBs on an "
"individual basis, but that is beyond the scope of this document. See the "
"Websphere documentation for details."
msgstr ""

#. Tag: title
#: Websphere.xml:624
#, no-c-format
msgid "The <literal>jpa</literal> booking example"
msgstr ""

#. Tag: para
#: Websphere.xml:625
#, no-c-format
msgid ""
"Thankfully getting the <literal>jpa</literal> example to work is much easier "
"than the <literal>jee5</literal> example. This is the Hotel Booking example "
"implemented in Seam POJOs and using Hibernate JPA with JPA transactions. It "
"does not require EJB3 support to run."
msgstr ""

#. Tag: para
#: Websphere.xml:631
#, no-c-format
msgid ""
"The example already has a breakout of configurations and build scripts for "
"many of the common containers including Websphere."
msgstr ""

#. Tag: para
#: Websphere.xml:634
#, no-c-format
msgid ""
"First thing we are going to do is build and deploy that example. Then we'll "
"go over some key changes that we needed."
msgstr ""

#. Tag: title
#: Websphere.xml:638
#, no-c-format
msgid "Building the <literal>jpa</literal> example"
msgstr ""

#. Tag: para
#: Websphere.xml:639
#, no-c-format
msgid ""
"Building it only requires running the correct ant command: "
"<programlisting>ant websphere61</programlisting> This will create container "
"specific distribution and exploded archive directories with the "
"<literal>websphere61</literal> label."
msgstr ""

#. Tag: title
#: Websphere.xml:645
#, no-c-format
msgid "Deploying the <literal>jpa</literal> example"
msgstr ""

#. Tag: para
#: Websphere.xml:646
#, no-c-format
msgid ""
"This is similar to the <literal>jee5</literal> example at <xref linkend="
"\"jee5-websphere-deploy\"/>, but without so many steps."
msgstr ""

#. Tag: para
#: Websphere.xml:651
#, no-c-format
msgid ""
"From the <literal>Enterprise Applications</literal> table select the "
"<literal>Install</literal> button."
msgstr ""

#. Tag: para
#: Websphere.xml:659
#, no-c-format
msgid ""
"Browse to the <literal>examples/jpa/dist-websphere61/jboss-seam-jpa.war</"
"literal> file using the file upload widget."
msgstr ""

#. Tag: para
#: Websphere.xml:665
#, no-c-format
msgid ""
"In the <literal>Context root</literal> text box enter <literal>jboss-seam-"
"jpa</literal>."
msgstr ""

#. Tag: para
#: Websphere.xml:676
#, no-c-format
msgid ""
"Select the <literal>Next</literal> button for the next three pages, no "
"changes are needed."
msgstr ""

#. Tag: para
#: Websphere.xml:681
#, no-c-format
msgid "<literal>Summary</literal> page"
msgstr ""

#. Tag: para
#: Websphere.xml:684
#, no-c-format
msgid ""
"Review the settings if you wish and select the <literal>Finish</literal> "
"button to install the application. When installation finished select the "
"<literal> Save</literal> link and you will be returned to the "
"<literal>Enterprise Applications</literal> table."
msgstr ""

#. Tag: para
#: Websphere.xml:697
#, no-c-format
msgid ""
"As with the <literal>jee5</literal> example there are some class loader "
"changes needed before we start the application. Follow the instructions at "
"<xref linkend=\"websphere-app-adj-after-install\"/> but exchange "
"<literal>jboss-seam-jpa</literal> for <literal>Seam Booking</literal>."
msgstr ""

#. Tag: para
#: Websphere.xml:704
#, no-c-format
msgid ""
"Finally start the application by selecting it in the <literal>Enterprise "
"Applications</literal> table and clicking the <literal>Start</literal> "
"button."
msgstr ""

#. Tag: para
#: Websphere.xml:710
#, no-c-format
msgid ""
"You can now access the application at the <literal>http://localhost:9080/"
"jboss-seam-jpa/index.html</literal>."
msgstr ""

#. Tag: title
#: Websphere.xml:718
#, no-c-format
msgid "Whats different for Websphere 6.1"
msgstr ""

#. Tag: para
#: Websphere.xml:719
#, no-c-format
msgid ""
"The differences between the JPA examples that deploys to JBoss 4.2 and "
"Websphere 6.1 are mostly expected; library and configuration file changes."
msgstr ""

#. Tag: para
#: Websphere.xml:724
#, no-c-format
msgid "<para>Configuration file changes</para>"
msgstr ""

#. Tag: para
#: Websphere.xml:727
#, no-c-format
msgid ""
"<literal>WEB-INF/web.xml</literal> &#8212; the only significant change is "
"that Websphere 6.1 only support <literal>Servlet 2.4</literal> so the top of "
"this file was changed."
msgstr ""

#. Tag: para
#: Websphere.xml:734
#, no-c-format
msgid ""
"<literal>META-INF/persistence.xml</literal> &#8212; the main changes here "
"are for the datasource JNDI path, switching to the Websphere 6.1 transaction "
"manager look up class, and changing the hibernate dialect to be "
"<literal>GlassfishDerbyDialect</literal> ."
msgstr ""

#. Tag: para
#: Websphere.xml:744
#, no-c-format
msgid ""
"<literal>WEB-INF/classes/GlassfishDerbyDialect.class </literal> &#8212; this "
"class is needed for the hibernate dialect change to "
"<literal>GlassfishDerbyDialect</literal>"
msgstr ""

#. Tag: para
#: Websphere.xml:752
#, no-c-format
msgid ""
"<literal>import.sql</literal> &#8212; either for the dialect or Derby DB the "
"<literal>ID</literal> column can not be populated by this file and was "
"removed."
msgstr ""

#. Tag: para
#: Websphere.xml:761
#, no-c-format
msgid "Changes for dependent libraries"
msgstr ""

#. Tag: para
#: Websphere.xml:762
#, no-c-format
msgid ""
"<literal>WEB-INF/lib</literal> &#8212; The Websphere version requires "
"several library packages because they are not included as they are with "
"JBoss AS. These are primarily for hibernate, JSF-RI support and their "
"dependencies. Below are listed only the additional jars needed above and "
"beyond the JBoss <literal>JPA</literal> example."
msgstr ""

#. Tag: para
#: Websphere.xml:770
#, no-c-format
msgid "To use Hibernate as your JPA provider you need the following jars:"
msgstr ""

#. Tag: literal
#: Websphere.xml:775
#, no-c-format
msgid "hibernate.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:780
#, no-c-format
msgid "hibernate-annotations.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:785
#, no-c-format
msgid "hibernate-commons-annotations.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:790
#, no-c-format
msgid "hibernate-entitymanager.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:795
#, no-c-format
msgid "hibernate-validator.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:800
#, no-c-format
msgid "commons-collections.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:805
#, no-c-format
msgid "jboss-archive-browsing.jar"
msgstr ""

#. Tag: para
#: Websphere.xml:811
#, no-c-format
msgid ""
"Seam requires JSF 1.2 and these are the jars needed for that. Websphere 6.1 "
"ships with its own implementation of JSF 1.1."
msgstr ""

#. Tag: para
#: Websphere.xml:836
#, no-c-format
msgid "Various third party jars that Websphere needs:"
msgstr ""

#. Tag: literal
#: Websphere.xml:839
#, no-c-format
msgid "antlr.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:843
#, no-c-format
msgid "cglib.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:847
#, no-c-format
msgid "asm.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:851
#, no-c-format
msgid "dom4j.jar"
msgstr ""

#. Tag: literal
#: Websphere.xml:856
#, no-c-format
msgid "javassist.jar"
msgstr ""

#. Tag: title
#: Websphere.xml:871
#, no-c-format
msgid ""
"Deploying an application created using <literal>seam-gen</literal> on "
"Websphere 6.1.0.13"
msgstr ""

#. Tag: para
#: Websphere.xml:874
#, no-c-format
msgid ""
"<literal>seam-gen</literal> is a very useful tool for developers to quickly "
"get an application up and running, and provides a foundation to add your own "
"functionality. Out of box <literal>seam-gen</literal> will produce "
"applications configured to run on JBoss AS. These instructions will show the "
"steps needed to get it to run on Websphere. As stated above in <xref linkend="
"\"jee5-websphere-section\"/> there are some tricky changes needed to get an "
"EJB3 application running. This section will take you through the exact steps."
msgstr ""

#. Tag: title
#: Websphere.xml:884
#, no-c-format
msgid "Running <literal>seam-gen</literal> Setup"
msgstr ""

#. Tag: para
#: Websphere.xml:885
#, no-c-format
msgid ""
"The first step is setting up <literal>seam-gen</literal> to construct the "
"base project. There are several choices made below, specifically the "
"datasource and hibernate values that we will adjust once the project is "
"created."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:891
#, no-c-format
msgid ""
"<![CDATA[\n"
"./seam setup\n"
"Buildfile: build.xml\n"
"\n"
"init:\n"
"\n"
"setup:\n"
"     [echo] Welcome to seam-gen :-)\n"
"    [input] Enter your Java project workspace (the directory that contains "
"your \n"
"Seam projects) [C:/Projects] [C:/Projects]\n"
"/home/jbalunas/workspace\n"
"    [input] Enter your JBoss home directory [C:/Program Files/jboss-4.2.2."
"GA] \n"
"[C:/Program Files/jboss-4.2.2.GA]\n"
"/home/jbalunas/jboss/jboss-4.2.2.GA\n"
"    [input] Enter the project name [myproject] [myproject]\n"
"websphere_example\n"
"     [echo] Accepted project name as: websphere_example\n"
"    [input] Do you want to use ICEFaces instead of RichFaces [n] (y, [n], )\n"
"\n"
"    [input] skipping input as property icefaces.home.new has already been "
"set.\n"
"    [input] Select a RichFaces skin [blueSky] ([blueSky], classic, ruby, "
"wine, \n"
"deepMarine, emeraldTown, sakura, DEFAULT)\n"
"\n"
"    [input] Is this project deployed as an EAR (with EJB components) or a "
"WAR \n"
"(with no EJB support) [ear]  ([ear], war, )\n"
"\n"
"    [input] Enter the Java package name for your session beans [org.jboss."
"seam.\n"
"tutorial.websphere.action] [org.jboss.seam.tutorial.websphere.action]\n"
"org.jboss.seam.tutorial.websphere.action \n"
"    [input] Enter the Java package name for your entity beans [org.jboss."
"seam.\n"
"tutorial.websphere.model] [org.jboss.seam.tutorial.websphere.model]\n"
"org.jboss.seam.tutorial.websphere.model  \n"
"    [input] Enter the Java package name for your test cases [org.jboss."
"seam.\n"
"tutorial.websphere.action.test] [org.jboss.seam.tutorial.websphere.action."
"test]\n"
"org.jboss.seam.tutorial.websphere.test\n"
"    [input] What kind of database are you using? [hsql]  ([hsql], mysql, "
"oracle,\n"
" postgres, mssql, db2, sybase, enterprisedb, h2)\n"
"\n"
"    [input] Enter the Hibernate dialect for your database [org.hibernate.\n"
"dialect.HSQLDialect] [org.hibernate.dialect.HSQLDialect]\n"
"\n"
"    [input] Enter the filesystem path to the JDBC driver jar [lib/hsqldb."
"jar] \n"
"[lib/hsqldb.jar]\n"
"\n"
"    [input] Enter JDBC driver class for your database [org.hsqldb."
"jdbcDriver] \n"
"[org.hsqldb.jdbcDriver]\n"
"\n"
"    [input] Enter the JDBC URL for your database [jdbc:hsqldb:.] \n"
"[jdbc:hsqldb:.]\n"
"\n"
"    [input] Enter database username [sa] [sa]\n"
"\n"
"    [input] Enter database password [] []\n"
"\n"
"    [input] Enter the database schema name (it is OK to leave this blank) [] "
"[]\n"
"\n"
"    [input] Enter the database catalog name (it is OK to leave this blank) "
"[] []\n"
"\n"
"    [input] Are you working with tables that already exist in the database? "
"[n]\n"
"  (y, [n], )\n"
"\n"
"    [input] Do you want to drop and recreate the database tables and data "
"in \n"
"import.sql each time you deploy? [n]  (y, [n], )\n"
"\n"
"[propertyfile] Creating new property file: \n"
"/rhdev/projects/jboss-seam/svn-seam_2_0/jboss-seam-2_0/seam-gen/build."
"properties\n"
"     [echo] Installing JDBC driver jar to JBoss server\n"
"     [copy] Copying 1 file to /home/jbalunas/jboss/jboss-4.2.2.GA/server/"
"default/lib\n"
"     [echo] Type 'seam create-project' to create the new project\n"
"\n"
"BUILD SUCCESSFUL\n"
"Total time: 3 minutes 5 seconds]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:893
#, no-c-format
msgid ""
"Type <literal>./seam new-project</literal> to create your project and "
"<literal>cd /home/jbalunas/workspace/websphere_example</literal> to the "
"newly created structure."
msgstr ""

#. Tag: title
#: Websphere.xml:900
#, no-c-format
msgid "Changes needed for deployment to Websphere"
msgstr ""

#. Tag: para
#: Websphere.xml:901
#, no-c-format
msgid "We now need to make some changes to the generated project."
msgstr ""

#. Tag: literal
#: Websphere.xml:907
#, no-c-format
msgid "resources/META-INF/persistence-dev.xml"
msgstr ""

#. Tag: para
#: Websphere.xml:912
#, no-c-format
msgid ""
"Alter the <literal>jta-data-source</literal> to be "
"<literal>DefaultDatasource</literal>. We are going to be using the "
"integrated Websphere DB."
msgstr ""

#. Tag: para
#: Websphere.xml:919
#, no-c-format
msgid ""
"Add or change the properties below. These are described in detail at <xref "
"linkend=\"jee5-websphere-section\"/>:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:924
#, no-c-format
msgid ""
"<![CDATA[\n"
"<property name=\"hibernate.dialect\" value=\"GlassfishDerbyDialect\"/>\n"
"<property name=\"hibernate.hbm2ddl.auto\" value=\"update\"/>\n"
"<property name=\"hibernate.show_sql\" value=\"true\"/>\n"
"<property name=\"hibernate.format_sql\" value=\"true\"/>\n"
"<property name=\"hibernate.cache.provider_class\" \n"
"          value=\"org.hibernate.cache.HashtableCacheProvider\"/>\n"
"<property name=\"hibernate.transaction.manager_lookup_class\" \n"
"          value=\"org.hibernate.transaction."
"WebSphereExtendedJTATransactionLookup\"/>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:927
#, no-c-format
msgid ""
"Remove the JBoss AS specific method of exposing the EntityManagerFactory:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:930
#, no-c-format
msgid ""
"<![CDATA[<property \n"
" name=\"jboss.entity.manager.factory.jndi.name\" \n"
" value=\"java:/websphere_exampleEntityManagerFactory\">]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:933
#, no-c-format
msgid ""
"You'll need to alter <literal>persistence-prod.xml</literal> as well if you "
"want to deploy to Websphere using the prod profile."
msgstr ""

#. Tag: para
#: Websphere.xml:946
#, no-c-format
msgid ""
"As with other examples we need to include this class for DB support. It can "
"be copied from the <literal>jpa</literal> example into the "
"<literal>websphere_example/resources</literal> directory."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:952
#, no-c-format
msgid ""
"<![CDATA[\n"
"cp $SEAM/examples/jpa/resources-websphere61/WEB-INF/classes/"
"GlassfishDerbyDialect.class\n"
"   ./resources]]>"
msgstr ""

#. Tag: literal
#: Websphere.xml:958
#, no-c-format
msgid "resources/META-INF/jboss-app.xml"
msgstr ""

#. Tag: para
#: Websphere.xml:961
#, no-c-format
msgid ""
"You can delete this file as we aren't deploying to JBoss AS ( <literal>jboss-"
"app.xml</literal> is used to enable classloading isolation in JBoss AS)"
msgstr ""

#. Tag: literal
#: Websphere.xml:967
#, no-c-format
msgid "resources/*-ds.xml"
msgstr ""

#. Tag: para
#: Websphere.xml:970
#, no-c-format
msgid ""
"You can delete these file as we aren't deploying to JBoss AS (these files "
"define datasources in JBoss AS, we are using Websphere's default datasource)"
msgstr ""

#. Tag: para
#: Websphere.xml:982
#, no-c-format
msgid ""
"Enable container managed transaction integration - add the <literal> &lt;"
"transaction:ejb-transaction /&gt; </literal> component, and it's namespace "
"declaration <literal> xmlns:transaction=\"http://jboss.com/products/seam/"
"transaction\" </literal>"
msgstr ""

#. Tag: para
#: Websphere.xml:991
#, no-c-format
msgid ""
"Alter the <literal>jndi-pattern</literal> to <literal> java:comp/env/"
"websphere_example/#{ejbName} </literal>"
msgstr ""

#. Tag: para
#: Websphere.xml:997
#, no-c-format
msgid ""
"We do not need <literal>managed-persistence-context</literal> for this "
"example and so can delete its entry."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1003
#, no-c-format
msgid ""
"<![CDATA[\n"
"<persistence:managed-persistence-context name=\"entityManager\"\n"
"             auto-create=\"true\"\n"
"             persistence-unit-jndi-name=\"java:/"
"websphere_exampleEntityManagerFactory\"/> ]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1012
#, no-c-format
msgid ""
"Websphere does not support <literal>Servlet 2.5</literal>, it required "
"<literal>Servlet 2.4</literal>. For this change we need to adjust the top of "
"the <literal>web.xml</literal> file to look like the following:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1018
#, no-c-format
msgid ""
"<![CDATA[\n"
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<web-app version=\"2.4\" \n"
"         xmlns=\"http://java.sun.com/xml/ns/j2ee\"\n"
"         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
"         xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee \n"
"                             http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
"\">\n"
"                  ]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1020
#, no-c-format
msgid ""
"As with the <literal>jee5/booking</literal> example we need to add EJB "
"references to the web.xml. These references require the empty <literal>local-"
"home</literal> to flag them for Websphere to perform the proper binding."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1027
#, no-c-format
msgid ""
"<![CDATA[\n"
"  <ejb-local-ref>              \n"
"    <ejb-ref-name>websphere_example/AuthenticatorAction</ejb-ref-"
"name>                \n"
"    <ejb-ref-type>Session</ejb-ref-type>     \n"
"    <local-home></local-home>\n"
"    <local>org.jboss.seam.tutorial.websphere.action.Authenticator</local>  \n"
"  </ejb-local-ref>\n"
"   \n"
"  <ejb-local-ref>\n"
"    <ejb-ref-name>websphere_example/EjbSynchronizations</ejb-ref-name>  \n"
"    <ejb-ref-type>Session</ejb-ref-type>\n"
"    <local-home></local-home>\n"
"    <local>org.jboss.seam.transaction.LocalEjbSynchronizations</local>\n"
"  </ejb-local-ref>]]>"
msgstr ""

#. Tag: title
#: Websphere.xml:1033
#, no-c-format
msgid "Creating the <literal>AuthenticatorAction</literal> EJB"
msgstr ""

#. Tag: para
#: Websphere.xml:1035
#, no-c-format
msgid ""
"We want to take the existing <literal>Authenticator</literal> Seam POJO "
"component and create an EJB3 out of it."
msgstr ""

#. Tag: para
#: Websphere.xml:1041
#, no-c-format
msgid "Rename the class to <literal>AuthenticatorAction</literal>"
msgstr ""

#. Tag: para
#: Websphere.xml:1045
#, no-c-format
msgid ""
"Add the <literal>@Stateless</literal> annotation to the new "
"<literal>AuthenticatorAction</literal> class."
msgstr ""

#. Tag: para
#: Websphere.xml:1051
#, no-c-format
msgid ""
"Create an interface called <literal>Authenticator</literal> which "
"<literal>AuthenticatorAction</literal> implements (EJB3 requires session "
"beans to have a local interface). Annotate the interface with "
"<literal>@Local</literal> , and add a single method with same signature as "
"the <literal>authenticate</literal> in <literal>AuthenticatorAction</"
"literal> ."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1064
#, no-c-format
msgid ""
"<![CDATA[\n"
"@Name(\"authenticator\") @Stateless public class\n"
"            AuthenticatorAction implements Authenticator {]]>"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1067
#, no-c-format
msgid ""
"<![CDATA[\n"
"@Local public interface Authenticator { \n"
"  public boolean authenticate(); \n"
"}]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1070
#, no-c-format
msgid ""
"We've already added its reference to the <literal>web.xml</literal> file so "
"are good to go."
msgstr ""

#. Tag: title
#: Websphere.xml:1076
#, no-c-format
msgid ""
"Extra jar dependencies and other changes to the <literal>build.xml</literal>"
msgstr ""

#. Tag: para
#: Websphere.xml:1078
#, no-c-format
msgid ""
"This application has similar requirements as the <literal>jee5/booking</"
"literal> example."
msgstr ""

#. Tag: para
#: Websphere.xml:1083
#, no-c-format
msgid ""
"Change the default target to <literal>archive</literal> (we aren't going to "
"cover automatic deployment to Websphere)."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1089
#, no-c-format
msgid ""
"<![CDATA[\n"
"<project name=\"websphere_example\" default=\"archive\" basedir=\".\">]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1093
#, no-c-format
msgid ""
"Websphere looks for the drools <literal>/security.drl</literal> file in the "
"root of the <literal>war</literal> file instead of the root of the "
"<literal>websphere_example.jar</literal> so we need to have the "
"<literal>build.xml</literal> move it to the correct location at build time. "
"The following must be added at the top of the <literal> &lt;target name=\"war"
"\" depends=\"compile\" description=\"Build the distribution .war file\"&gt; "
"</literal> target."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1104
#, no-c-format
msgid ""
"<![CDATA[\n"
"<copy todir=\"${war.dir}\">\n"
"   <fileset dir=\"${basedir}/resources\" >\n"
"       <include name=\"*.drl\" />\n"
"   </fileset>\n"
"</copy>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1107
#, no-c-format
msgid ""
"We need to ge the <literal>GlassfishDerbyDialect.class</literal> into our "
"application jar. To do that find the <literal>jar</literal> task and modify "
"the top of it so that it looks like this:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1115
#, no-c-format
msgid ""
"<![CDATA[\n"
"<target name=\"jar\" depends=\"compile,copyclasses\" \n"
"   description=\"Build the distribution .jar file\">\n"
"   <copy todir=\"${jar.dir}\">\n"
"      <fileset dir=\"${basedir}/resources\">\n"
"          <include name=\"seam.properties\" />\n"
"          <include name=\"*.drl\" />\n"
"          <include name=\"GlassfishDerbyDialect.class\" />\n"
"      </fileset>\n"
"   </copy>\n"
"...]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1118
#, no-c-format
msgid ""
"Next we need to get the <literal>jboss-seam.jar</literal> into the base of "
"the <literal>EAR</literal> file. For deployment Websphere requires this jar "
"to be in both the <literal>/lib</literal> directory and at the base of the "
"<literal>EAR</literal>. You must add the following to the <literal>archive</"
"literal> task:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1127
#, no-c-format
msgid ""
"<![CDATA[\n"
"<fileset dir=\"${lib.dir}\">\n"
"   <include name=\"jboss-seam.jar\" />\n"
"</fileset>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1128
#, no-c-format
msgid "So that the whole <literal>archive</literal> task looks like:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1132
#, no-c-format
msgid ""
"<![CDATA[\n"
"<target name=\"archive\" depends=\"jar,war,ear\" \n"
"        description=\"Package the archives\">\n"
"   <jar jarfile=\"${dist.dir}/${project.name}.jar\" basedir=\"${jar.dir}\"/"
">\n"
"   <jar jarfile=\"${dist.dir}/${project.name}.war\" basedir=\"${war.dir}\"/"
">\n"
"   <jar jarfile=\"${dist.dir}/${project.name}.ear\">\n"
"       <fileset dir=\"${ear.dir}\"/>\n"
"       <fileset dir=\"${dist.dir}\">\n"
"           <include name=\"${project.name}.jar\"/>\n"
"           <include name=\"${project.name}.war\"/>\n"
"       </fileset>\n"
"       <fileset dir=\"${lib.dir}\">\n"
"          <include name=\"jboss-seam.jar\" />\n"
"       </fileset>\n"
"    </jar>\n"
"</target>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1135
#, no-c-format
msgid ""
"Now we need to get extra jars into the <literal>build.xml</literal>. Look "
"for the <literal>&lt;fileset dir=\"${basedir}\"&gt;</literal> section of the "
"task below. Add the new includes at the bottom of the fileset."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1143
#, no-c-format
msgid ""
"<![CDATA[\n"
"<target name=\"ear\" description=\"Build the EAR\">\n"
"    <copy todir=\"${ear.dir}\">\n"
"            <fileset dir=\"${basedir}/resources\">\n"
"                    <include name=\"*jpdl.xml\" />\n"
"                    <include name=\"*hibernate.cfg.xml\" />\n"
"                    <include name=\"jbpm.cfg.xml\" />\n"
"            </fileset>\n"
"         <fileset dir=\"${lib.dir}\">\n"
"               <include name=\"jboss-seam.jar\" />\n"
"         </fileset>\n"
"            <fileset dir=\"${basedir}\">\n"
"                    <include name=\"lib/jbpm*.jar\" />\n"
"                    <include name=\"lib/jboss-el.jar\" />\n"
"                    <include name=\"lib/drools-*.jar\"/>\n"
"                    <include name=\"lib/core.jar\"/>\n"
"                    <include name=\"lib/janino*.jar\"/>\n"
"                    <include name=\"lib/antlr-*.jar\"/>\n"
"                    <include name=\"lib/mvel*.jar\"/>\n"
"                  <include name=\"lib/richfaces-api*.jar\" />\n"
"            </fileset>\n"
"    </copy>\n"
"    <copy todir=\"${ear.dir}/META-INF\">\n"
"            <fileset dir=\"${basedir}/resources/META-INF\">\n"
"                    <include name=\"application.xml\" />\n"
"                    <include name=\"jboss-app.xml\" />\n"
"            </fileset>\n"
"    </copy>\n"
"</target>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1146
#, no-c-format
msgid "Hibernate dependencies"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1147
#, no-c-format
msgid ""
"<![CDATA[\n"
"   <!-- Hibernate and deps -->\n"
"   <include name=\"lib/hibernate.jar\"/>\n"
"   <include name=\"lib/hibernate-commons-annotations.jar\"/>\n"
"   <include name=\"lib/hibernate-annotations.jar\"/>\n"
"   <include name=\"lib/hibernate-entitymanager.jar\"/>\n"
"   <include name=\"lib/hibernate-validator.jar\"/>\n"
"   <include name=\"lib/jboss-common-core.jar\" />]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1150
#, no-c-format
msgid ""
"JSF dependencies. You will need to copy the <literal>el-ri.jar</literal> "
"from the <literal>$SEAM/examples/jpa/lib</literal> directory."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1153
#, no-c-format
msgid ""
"<![CDATA[\n"
"   <!-- jsf libs -->\n"
"   <include name=\"lib/jsf-api.jar\" />\n"
"   <include name=\"lib/jsf-impl.jar\" />\n"
"   <include name=\"lib/el-api.jar\" />\n"
"   <include name=\"lib/el-ri.jar\"/>]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1156
#, no-c-format
msgid ""
"Third party dependencies. You will need to copy the <literal>jboss-archive-"
"browsing.jar</literal> from the <literal>$SEAM/examples/jpa/lib</literal> "
"directory into the the projects <literal>/lib</literal> directory. You will "
"also need to acquire the <literal>concurrent.jar</literal> and place it in "
"the same directory. You can get this from any jboss distribution or just "
"search for it."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1163
#, no-c-format
msgid ""
"<![CDATA[\n"
"   <!-- 3rd party and supporting jars -->\n"
"   <!--<include name=\"lib/log4j.jar\" />-->\n"
"   <include name=\"lib/javassist.jar\"/>\n"
"   <include name=\"lib/dom4j.jar\" />\n"
"   <include name=\"lib/jboss-archive-browsing.jar\" />\n"
"   <include name=\"lib/concurrent.jar\" />\n"
"   <include name=\"lib/cglib.jar\"/>\n"
"   <include name=\"lib/asm.jar\"/>\n"
"   <include name=\"lib/antlr.jar\" />\n"
"   <include name=\"lib/commons-logging.jar\" />\n"
"   <include name=\"lib/commons-collections.jar\" />]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1166
#, no-c-format
msgid ""
"<literal>jboss-seam.jar</literal> - this is needed in both the <literal>ear</"
"literal> base and <literal>/lib</literal> directory."
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1170
#, no-c-format
msgid ""
"<![CDATA[\n"
"   <!-- seam jar -->\n"
"   <include name=\"lib/jboss-seam.jar\" />]]>"
msgstr ""

#. Tag: para
#: Websphere.xml:1174
#, no-c-format
msgid "You should end up with something like:"
msgstr ""

#. Tag: programlisting
#: Websphere.xml:1175
#, no-c-format
msgid ""
"<![CDATA[\n"
"<fileset dir=\"${basedir}\">\n"
"   <include name=\"lib/jbpm*.jar\" />\n"
"   <include name=\"lib/jboss-el.jar\" />\n"
"   <include name=\"lib/drools-*.jar\"/>\n"
"   <include name=\"lib/core.jar\"/>\n"
"   <include name=\"lib/janino*.jar\"/>\n"
"   <include name=\"lib/antlr-*.jar\"/>\n"
"   <include name=\"lib/mvel*.jar\"/>\n"
"   <include name=\"lib/richfaces-api*.jar\" />\n"
"                                 \n"
"   <!-- Hibernate and deps -->\n"
"   <include name=\"lib/hibernate.jar\"/>\n"
"   <include name=\"lib/hibernate-commons-annotations.jar\"/>\n"
"   <include name=\"lib/hibernate-annotations.jar\"/>\n"
"   <include name=\"lib/hibernate-entitymanager.jar\"/>\n"
"   <include name=\"lib/hibernate-validator.jar\"/>\n"
"   <include name=\"lib/jboss-common-core.jar\" />\n"
"               \n"
"   <!-- jsf libs -->\n"
"   <include name=\"lib/jsf-api.jar\" />\n"
"   <include name=\"lib/jsf-impl.jar\" />\n"
"   <include name=\"lib/el-api.jar\" />\n"
"   <include name=\"lib/el-ri.jar\"/>\n"
"               \n"
"   <!-- 3rd party and supporting jars -->\n"
"   <!--<include name=\"lib/log4j.jar\" />-->\n"
"   <include name=\"lib/javassist.jar\"/>\n"
"   <include name=\"lib/dom4j.jar\" />\n"
"   <include name=\"lib/jboss-archive-browsing.jar\" />\n"
"   <include name=\"lib/concurrent.jar\" />\n"
"   <include name=\"lib/cglib.jar\"/>\n"
"   <include name=\"lib/asm.jar\"/>\n"
"   <include name=\"lib/antlr.jar\" />\n"
"   <include name=\"lib/commons-logging.jar\" />\n"
"   <include name=\"lib/commons-collections.jar\" />\n"
"               \n"
"   <!-- seam jar -->\n"
"   <include name=\"lib/jboss-seam.jar\" />\n"
"                           \n"
"</fileset>]]>"
msgstr ""

#. Tag: title
#: Websphere.xml:1181
#, no-c-format
msgid "Building and deploying the seam-gen'd application to Websphere"
msgstr ""

#. Tag: para
#: Websphere.xml:1187
#, no-c-format
msgid ""
"Build your application by calling <literal>ant</literal> in the base "
"directory of your project (ex. <literal>/home/jbalunas/workspace/"
"websphere_example</literal> ). The target of the build will be <literal>dist/"
"websphere_example.ear</literal> ."
msgstr ""

#. Tag: para
#: Websphere.xml:1196
#, no-c-format
msgid ""
"To deploy the application follow the instructions here : <xref linkend="
"\"jee5-websphere-deploy\"/> but use references to this project "
"<literal>websphere_example</literal> instead of <literal>jboss-seam-jee5</"
"literal>."
msgstr ""

#. Tag: para
#: Websphere.xml:1202
#, no-c-format
msgid ""
"Checkout the app at: <literal>http://localhost:9080/websphere_example/index."
"html</literal>"
msgstr ""
