# Language it-IT 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-11-06 00:23+0000\n"
"PO-Revision-Date: 2009-05-29 15:04+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz@gmail.com>\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
#: Oc4j.xml:2
#, no-c-format
msgid "Seam on OC4J"
msgstr "Seam con OC4J"

#. Tag: para
#: Oc4j.xml:4
#, no-c-format
msgid "OC4J (Oracle Containers for Java) 11g (currently a \"Technology Preview\" release) is Oracle's JEE5 application server. Seam application can be deployed to OC4J, but require some additional configuration changes, and dependencies. This chapter will show you exactly what must be done. We will start by looking at the building and deploying the JEE5 Hotel Booking example application which comes with Seam. Then we will deploy a project generated by <literal>seam-gen</literal> . First a basic <literal>seam-gen</literal> application with RichFaces ajax components, and facelets. Then expand that application to include Seam security with Drools, JPA provided with hibernate, and automatic CRUD reverse engineering of a MySQL database."
msgstr "OC4J (Oracle Containers for Java) 11g (attualmente una release \"Technology Preview\") è l'application server JEE5 di Oracle. Un'applicazione Seam può essere deployata in OC4J, ma richiede alcuni cambiamenti aggiuntivi alla configurazione e alle dipendenze. Questo capitolo mostra come fare. Partiamo guardando alla fase di build e deploy dell'applicazione d'esempio Prenotazione Hotel che è assieme a Seam. Poi si eseguirà il deploy di un progetto generato con <literal>seam-gen</literal>. Verrà creata un'applicazione base  <literal>seam-gen</literal> con componenti RichFaces ajax e facelets. Poi si espanderà l'applicazione per includere la sicurezza di Seam con Drools, JPA fornito con Hibernate e il reverse engineering CRUD di un database MySQL."

#. Tag: title
#: Oc4j.xml:17
#, no-c-format
msgid "Installation and operation of OC4J"
msgstr "Installazione ed operazione di OC4J"

#. Tag: para
#: Oc4j.xml:18
#, no-c-format
msgid "First we need to install the target container - OC4j. This chapter requires you to use OC4J 11g Technology Preview (not OC4J 10g). You can download OC4J 11g from <ulink url=\"http://www.oracle.com/technology/tech/java/oc4j/11/\"> http://www.oracle.com/technology/tech/java/oc4j/11/ </ulink> Below are instructions to install. launch, access, and shutdown the 11g release. For further information on installing OC4J, consult the <literal>readme.txt</literal> distributed with OC4J, or the OC4J installation guide and release notes."
msgstr "Prima occorre installare il container OC4j. Questo capitolo richiede di usare OC4J 11g Technology Preview (non OC4J 10g). Eseguire il download OC4J 11g da <ulink url=\"http://www.oracle.com/technology/tech/java/oc4j/11/\"> http://www.oracle.com/technology/tech/java/oc4j/11/ </ulink>. Sotto ci sono le istruzioni per installare, lanciare, accedere e spegnere la release 11g. Per ulteriori informazioni sull'installazione di OC4J, consultare il file <literal>readme.txt</literal> distribuito con OC4J, oppure la guida e le release note di OC4J."

#. Tag: para
#: Oc4j.xml:29
#, no-c-format
msgid "Download and unzip OC4J"
msgstr "Scaricare e decomprimere OC4J"

#. Tag: para
#: Oc4j.xml:32
#, no-c-format
msgid "Make sure you have <literal>$JAVA_HOME</literal> and <literal>$ORACLE_HOME</literal> set as environment variables ( <literal>$ORACLE_HOME</literal> is the directory to which you unzip OC4J). For further information on installing OC4J, consult the <literal>readme.txt</literal> distributed with OC4J"
msgstr "Assicurarsi di avere impostato <literal>$JAVA_HOME</literal> e <literal>$ORACLE_HOME</literal> come variabili d'ambiente (<literal>$ORACLE_HOME</literal> è la directory in cui si decomprime OC4J). Per ulteriori informazioni sull'installazione di OC4J, consultare il file <literal>readme.txt</literal> distribuito con OC4J."

#. Tag: para
#: Oc4j.xml:41
#, no-c-format
msgid "Applications (ear/war) are deployed to the <literal>$ORACLE_HOME/j2ee/home/applications</literal> directory."
msgstr "Le applicazioni (ear/war) vengono deployate nella directory <literal>$ORACLE_HOME/j2ee/home/applications</literal>."

#. Tag: para
#: Oc4j.xml:44
#, no-c-format
msgid "Note that OC4J does not support hot deployment by default. This means every time you deploy the application you must restart the server."
msgstr "Si noti che OC4J non supporta di default l'hot deployment. Questo significa che ogni volta che si esegue il deploy dell'applicazione occorre riavviare il server."

#. Tag: para
#: Oc4j.xml:49
#, no-c-format
msgid "Start OC4J: <literal> $ORACLE_HOME/j2ee/home/java -jar -XX:MaxPermSize=256M oc4j.jar </literal>"
msgstr "Avviare OC4J: <literal> $ORACLE_HOME/j2ee/home/java -jar -XX:MaxPermSize=256M oc4j.jar </literal>"

#. Tag: para
#: Oc4j.xml:51
#, no-c-format
msgid "You must override the default PermGen memory settings using above command. See <ulink url=\"http://www.oracle.com/technology/tech/java/oc4j/11/oc4j-relnotes.html\"> OC4J release notes </ulink> for details."
msgstr "Occore ridefinire le impostazioni di default per la memoria PermGn usando il comando di cui sopra. Si veda <ulink url=\"http://www.oracle.com/technology/tech/java/oc4j/11/oc4j-relnotes.html\"> OC4J release notes</ulink> per i dettagli."

#. Tag: para
#: Oc4j.xml:55
#, no-c-format
msgid "You will be asked to set the admin password if this is the first time you have started OC4J"
msgstr "Verrà chiesto di impostare la password di admin se è la prima volta che si avvia OC4J."

#. Tag: para
#: Oc4j.xml:59
#, no-c-format
msgid "Once deployed you can check out your applications at <literal>http://localhost:8888/&lt;your-app-path&gt;</literal>"
msgstr "Una volta eseguito il deploy si può controllare l'applicazione all'indirizzo <literal>http://localhost:8888/&lt;your-app-path&gt;</literal>"

#. Tag: para
#: Oc4j.xml:64
#, no-c-format
msgid "You can stop the server by pressing <literal>CTRL-C</literal> in the console on which the server is running."
msgstr "Si può spegnere il server premendo <literal>CTRL-C</literal> nella console su cui gira il server."

#. Tag: title
#: Oc4j.xml:72
#, no-c-format
msgid "The <literal>jee5/booking</literal> example"
msgstr "L'esempio <literal>jee5/booking</literal>"

#. Tag: para
#: Oc4j.xml:74
#, 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 it's easy to build it for OC4J. It is located in the <literal>$SEAM_DIST/examples/jee5/booking</literal> directory."
msgstr "L'esempio <literal>jee5/booking</literal> è basato sull'esempio Prenotazione Hotel (che gira su JBoss AS). Gira anche su Glassh, ma è facile fare il build per OC4J. E' localizzato nella directory <literal>$SEAM_DIST/examples/jee5/booking</literal>."

#. Tag: title
#: Oc4j.xml:81
#, no-c-format
msgid "Booking Example Dependencies"
msgstr "Dipendenze dell'esempio Prenotazione"

#. Tag: para
#: Oc4j.xml:83
#, no-c-format
msgid "First, lets look at the basic dependencies of the booking example. Armed with this knowledge we can look at the extra dependencies requirements that OC4J adds."
msgstr "Innanzitutto guardiamo le dipendenze base dell'esempio prenotazione. Armati di conoscenza possiamo guardare i requisiti di dipendenze extra che OC4J aggiunge."

#. Tag: para
#: Oc4j.xml:87
#, no-c-format
msgid "We will show you how to get these dependencies into the application in <xref linkend=\"oc4j-build-jee5\"/> below."
msgstr "Si mostrerà come ottenere queste dipendenze nell'applicazione <xref linkend=\"oc4j-build-jee5\"/> sotto."

#. Tag: title
#: Oc4j.xml:90
#, no-c-format
msgid "Core Seam dependencies"
msgstr "Dipendenze core di Seam"

#. Tag: simpara
#: Oc4j.xml:93
#, no-c-format
msgid "<literal>jboss-seam.jar</literal> &#8212; We declare this as an EJB3 module (why? well Seam needs to be able to interact with container managed transactions; this is implemented as an EJB3 Stateful Session Bean)"
msgstr "<literal>jboss-seam.jar</literal> &#8212; viene dichiarato questo come modulo EJB3 (perché? Seam deve essere in grado di interagire con le transazioni gestite da container; questo è implementato come EJB3 Stateful Session Bean)"

#. Tag: literal
#: Oc4j.xml:100
#, no-c-format
msgid "jboss-el.jar"
msgstr "jboss-el.jar"

#. Tag: simpara
#: Oc4j.xml:103
#, no-c-format
msgid "<literal>jboss-seam-ui.jar</literal> &#8212; Seam's JSF controls depend on Apache's commons-beanutils"
msgstr "<literal>jboss-seam-ui.jar</literal> &#8212; i controlli JSF di Seam dipendono da commons-beanutils di Apache"

#. Tag: literal
#: Oc4j.xml:108
#, no-c-format
msgid "jboss-seam-debug.jar"
msgstr "jboss-seam-debug.jar"

#. Tag: literal
#: Oc4j.xml:112
#, no-c-format
msgid "jsf-facelets.jar"
msgstr "jsf-facelets.jar"

#. Tag: simpara
#: Oc4j.xml:116
#, no-c-format
msgid "<literal>richfaces-api.jar</literal> , <literal>richfaces-impl.jar</literal> and <literal>richfaces-ui.jar</literal> &#8212; which requires Apache commons-digester and commons-beanutils"
msgstr "<literal>richfaces-api.jar</literal> , <literal>richfaces-impl.jar</literal> e <literal>richfaces-ui.jar</literal> &#8212; richiede Apache commons-digester e commons-beanutils"

#. Tag: title
#: Oc4j.xml:126
#, no-c-format
msgid "Extra dependencies"
msgstr "Extra dipendenze"

#. Tag: para
#: Oc4j.xml:129
#, no-c-format
msgid "Hibernate &#8212; of course, we decided to use Hibernate as the JPA provider (rather than TopLink Essentials which ships with OC4J)."
msgstr "Hibernate &#8212; si usa Hibernate come provider JPA(piuttosto di TopLink Essentials che viene dato con OC4J)."

#. Tag: para
#: Oc4j.xml:132
#, no-c-format
msgid "To use Hibernate as your JPA provider you need the following jars:"
msgstr "Per usare Hibernate come provider JPA occorrono i seguenti jar:"

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

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

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

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

#. Tag: literal
#: Oc4j.xml:156
#, no-c-format
msgid "jboss-common-core.jar"
msgstr "jboss-common-core.jar"

#. Tag: literal
#: Oc4j.xml:161
#, no-c-format
msgid "commons-logging.jar"
msgstr "commons-logging.jar"

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

#. Tag: para
#: Oc4j.xml:172
#, no-c-format
msgid "Third party jars &#8212; various jars needed for seam and this example to run."
msgstr "Jar di Terze Parti &#8212;vari jar servono a Seam e a questo esempio per poter funzionare."

#. Tag: literal
#: Oc4j.xml:176
#, no-c-format
msgid "javaasist.jar"
msgstr "javaasist.jar"

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

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

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

#. Tag: literal
#: Oc4j.xml:193
#, no-c-format
msgid "commons-beanutils.jar"
msgstr "commons-beanutils.jar"

#. Tag: literal
#: Oc4j.xml:198
#, no-c-format
msgid "commons-digester.jar"
msgstr "commons-digester.jar"

#. Tag: literal
#: Oc4j.xml:203
#, no-c-format
msgid "concurrent.jar"
msgstr "concurrent.jar"

#. Tag: simpara
#: Oc4j.xml:207
#, no-c-format
msgid "<literal>log4j.jar</literal> &#8212; This can be left out if you are not going to configure log4j. If it is packaged but not configured logging will be hidden in oc4j."
msgstr "<literal>log4j.jar</literal> &#8212; si può tralasciare se non si usa log4j. Se viene impacchettato ma non configurato, verrà nascosto in OC4J."

#. Tag: para
#: Oc4j.xml:216
#, no-c-format
msgid "Extra OC4J jars &#8212; Running Seam on most application servers (such as JBoss AS or Glassfish) you only need to include the dependencies for those bits of Seam you actually use (e.g. if you use Seam Text you need to include ANTLR); but, on OC4J, due to its \"interesting\" classloading you must always include them:"
msgstr "Extra OC4J jar &#8212; Per eseguire Seam sulla maggior parte degli application server (quali JBoss AS o Glassfish) serve solo includere le dipendenze usate in Seam (es. se si usa Seam Text, serve ANTLR); ma su OC4J a causa del su \"interessante\" classloader occorre sempre includerli:"

#. Tag: literal
#: Oc4j.xml:225
#, no-c-format
msgid "hibernate-search.jar"
msgstr "hibernate-search.jar"

#. Tag: simpara
#: Oc4j.xml:229
#, no-c-format
msgid "<literal>hibernate-common-annotations.jar</literal> &#8212; needed for hibernate search"
msgstr "<literal>hibernate-common-annotations.jar</literal> &#8212; serve a Hibernate Search"

#. Tag: simpara
#: Oc4j.xml:235
#, no-c-format
msgid "<literal>lucene-core.jar</literal> &#8212; needed for hibernate search"
msgstr "<literal>lucene-core.jar</literal> &#8212; occorre a hibernate search"

#. Tag: simpara
#: Oc4j.xml:240
#, no-c-format
msgid "<literal>antlr.jar</literal> &#8212; needed for Seam Text"
msgstr "<literal>antlr.jar</literal> &#8212; occorra a Seam Text"

#. Tag: simpara
#: Oc4j.xml:244
#, no-c-format
msgid "<literal>jbpm-jpdl.jar</literal> &#8212; needed for Seam's JBPM"
msgstr "<literal>jbpm-jpdl.jar</literal> &#8212; occorre a JBPM di Seam"

#. Tag: literal
#: Oc4j.xml:248
#, no-c-format
msgid "quartz.jar"
msgstr "quartz.jar"

#. Tag: simpara
#: Oc4j.xml:252
#, no-c-format
msgid "<literal>dbunit.jar</literal> &#8212; needed for some testing classes"
msgstr "<literal>dbunit.jar</literal> &#8212; occorre per alcune classi di test"

#. Tag: simpara
#: Oc4j.xml:257
#, no-c-format
msgid "<literal>jboss-embedded-api.jar</literal> &#8212; needed for some testing classes"
msgstr "<literal>jboss-embedded-api.jar</literal> &#8212; serve per alcune classi di testing"

#. Tag: para
#: Oc4j.xml:263
#, no-c-format
msgid "Drools &#8212; needed for Seam Security. We aren't using Seam security with Drools, but have to include it. Drools consists of 6 jars: <itemizedlist> <listitem> <simpara> <literal>drools-core.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>drools-compiler.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>janino.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>mvel141.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>core.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>antlr-runtime.jar</literal> </simpara> </listitem> </itemizedlist> Drools integration is not used in the example."
msgstr "Drools &#8212; occorre a Seam Security. Anche se non si usa Seam Security con Drools, occorre includerlo. Drools consiste di 6 jar: <itemizedlist> <listitem> <simpara> <literal>drools-core.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>drools-compiler.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>janino.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>mvel141.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>core.jar</literal> </simpara> </listitem> <listitem> <simpara> <literal>antlr-runtime.jar</literal> </simpara> </listitem> </itemizedlist> L'integrazione con Drools non viene usata in quest'esempio."

#. Tag: title
#: Oc4j.xml:307
#: Oc4j.xml:505
#, no-c-format
msgid "Configuration file changes"
msgstr "Modifiche al file di configurazione"

#. Tag: para
#: Oc4j.xml:309
#, no-c-format
msgid "There are just a few changes to be made:"
msgstr "Ci sono solo poche modifiche da fare:"

#. Tag: literal
#: Oc4j.xml:312
#, no-c-format
msgid "web.xml"
msgstr "web.xml"

#. Tag: para
#: Oc4j.xml:315
#, no-c-format
msgid "You need to declare all your ejb's in the <literal>web.xml</literal> . This is a silly requirement of a number of JEE5 application servers - for example OC4J and Glassfish."
msgstr "Bisogna dichiarare tutti gli EJB in <literal>web.xml</literal>. Questo è uno sciocco requisito di molti application server JEE5 - per esempio OC4J e Glassfish."

#. Tag: para
#: Oc4j.xml:319
#, no-c-format
msgid "This is already done in the example's web.xml file, below is an example."
msgstr "Questo è già fatto nel file web.xml d'esempio. Sotto segue l'esempio."

#. Tag: programlisting
#: Oc4j.xml:323
#, no-c-format
msgid ""
"<![CDATA[<ejb-local-ref>\n"
"   <ejb-ref-name>\n"
"      jboss-seam-jee5/AuthenticatorAction/local\n"
"   </ejb-ref-name>\n"
"   <ejb-ref-type>Session</ejb-ref-type>\n"
"   <local>\n"
"      org.jboss.seam.example.booking.Authenticator\n"
"   </local>\n"
"   <ejb-link>AuthenticatorAction</ejb-link>\n"
"</ejb-local-ref>]]>"
msgstr ""
"<![CDATA[<ejb-local-ref>\n"
"   <ejb-ref-name>\n"
"      jboss-seam-jee5/AuthenticatorAction/local\n"
"   </ejb-ref-name>\n"
"   <ejb-ref-type>Session</ejb-ref-type>\n"
"   <local>\n"
"      org.jboss.seam.example.booking.Authenticator\n"
"   </local>\n"
"   <ejb-link>AuthenticatorAction</ejb-link>\n"
"</ejb-local-ref>]]>"

#. Tag: literal
#: Oc4j.xml:327
#, no-c-format
msgid "persistence.xml"
msgstr "persistence.xml"

#. Tag: para
#: Oc4j.xml:330
#, no-c-format
msgid "You need to provide the correct configuration for your JPA implementation. We are using Hibernate and due to OC4J bundling an old ANTLR, we need to use an alternative query factory, we also want to use the OC4J transaction manager:"
msgstr "Bisogna fornire la configurazione corretta per l'implementazione JPA. Si usa Hibernate e poichP OC4J fornisce un vecchio ANTLR, serve usare una query factory alternativa, si vuole anche usare il gestore delle transazioni di OC4J:"

#. Tag: para
#: Oc4j.xml:335
#, no-c-format
msgid "For our example modify the <literal>resources/META-INF/persistence.xml</literal> file. Comment out the Glassfish properties and un-comment the OC4J properties."
msgstr "Per l'esempio in questione modificare il file <literal>resources/META-INF/persistence.xml</literal>. Commentare le proprietà di Glassfish e decommentare le proprietà di OC4J."

#. Tag: programlisting
#: Oc4j.xml:341
#, no-c-format
msgid ""
"<![CDATA[<property name=\"hibernate.dialect\" \n"
"   value=\"org.hibernate.dialect.HSQLDialect\"/>\n"
"<property name=\"hibernate.query.factory_class\" \n"
"   value=\"org.hibernate.hql.classic.ClassicQueryTranslatorFactory\"/>\n"
"<property name=\"hibernate.transaction.manager_lookup_class\" \n"
"   value=\"org.hibernate.transaction.OrionTransactionManagerLookup\"/>]]>"
msgstr ""
"<![CDATA[<property name=\"hibernate.dialect\" \n"
"   value=\"org.hibernate.dialect.HSQLDialect\"/>\n"
"<property name=\"hibernate.query.factory_class\" \n"
"   value=\"org.hibernate.hql.classic.ClassicQueryTranslatorFactory\"/>\n"
"<property name=\"hibernate.transaction.manager_lookup_class\" \n"
"   value=\"org.hibernate.transaction.OrionTransactionManagerLookup\"/>]]>"

#. Tag: title
#: Oc4j.xml:349
#, no-c-format
msgid "Building the <literal>jee5/booking</literal> example"
msgstr "Build dell'esempio <literal>jee5/booking</literal>"

#. Tag: para
#: Oc4j.xml:354
#, no-c-format
msgid "Modify the <literal>build.xml</literal> file in the example:"
msgstr "Modificare il file <literal>build.xml</literal> nell'esempio:"

#. Tag: para
#: Oc4j.xml:358
#, no-c-format
msgid "Un-comment the labeled OC4J-related library properties. This will include all the extra dependencies discussed above."
msgstr "Decommentare le proprietà della libreria con etichetta OC4J. Questo includerà tutte le dipendenze extra discusse sopra."

#. Tag: para
#: Oc4j.xml:361
#, no-c-format
msgid "It should look like the following:"
msgstr "dovrebbe così apparire:"

#. Tag: programlisting
#: Oc4j.xml:364
#, no-c-format
msgid ""
"<![CDATA[<!-- add libs for oc4j (eager classloading) -->\n"
"<property name=\"jbpm.lib\" value=\"true\"/>\n"
"<property name=\"drools.lib\" value=\"true\"/>\n"
"<property name=\"quartz.lib\" value=\"true\" />\n"
"<property name=\"search.lib\" value=\"true\" />\n"
"<property name=\"dbunit.lib\" value=\"true\" />\n"
"<property name=\"jboss-embedded-api.lib\" value=\"true\" />\n"
"    ]]>"
msgstr ""
"<![CDATA[<!-- add libs for oc4j (eager classloading) -->\n"
"<property name=\"jbpm.lib\" value=\"true\"/>\n"
"<property name=\"drools.lib\" value=\"true\"/>\n"
"<property name=\"quartz.lib\" value=\"true\" />\n"
"<property name=\"search.lib\" value=\"true\" />\n"
"<property name=\"dbunit.lib\" value=\"true\" />\n"
"<property name=\"jboss-embedded-api.lib\" value=\"true\" />\n"
"    ]]>"

#. Tag: para
#: Oc4j.xml:369
#, no-c-format
msgid "Build the demo app by running <literal>ant</literal> in the <literal>examples/jee5/booking</literal> directory. The build target is <literal>dist/jboss-seam-jee5.ear</literal>"
msgstr "Fare il build dell'applicazione eseguendo <literal>ant</literal> nella directory <literal>examples/jee5/booking</literal>. Il build target è <literal>dist/jboss-seam-jee5.ear</literal>"

#. Tag: para
#: Oc4j.xml:375
#, no-c-format
msgid "Copy <literal>dist/jboss-seam-jee5.ear</literal> following the instructions below."
msgstr "Copiare <literal>dist/jboss-seam-jee5.ear</literal> seguendo le istruzioni."

#. Tag: title
#: Oc4j.xml:383
#, no-c-format
msgid "Deploying the Seam application to OC4J"
msgstr "Deploy dell'applicazione Seam in OC4J"

#. Tag: para
#: Oc4j.xml:384
#, no-c-format
msgid "This mini-tutorial describes the (fairly tedious) steps required to deploy a JEE 5 application to OC4J. It assumes you have already downloaded and installed it following the instructions in <xref linkend=\"oc4j-install-operation\"/>. It also assumes you are deploying the <literal>jee5/booking</literal> example, using the embedded hsqldb database. To deploy another application you would need to alter the datasource and application name."
msgstr "Questo mini-tutorial descrive i passi (abbastanza noiosi) richiesti per il deploy di un'applicazione JEE5 in OC4J. Si assume che si abbia già scaricato ed installato tutto seguendo le istruzioni in <xref linkend=\"oc4j-install-operation\"/>. Si assume anche che si stia facendo il deploy dell'esempio <literal>jee5/booking</literal>, usando il database mbedded hsqldb. Per il deploy di un'altra applicazione occorre modificare il datasource ed il nome dell'applicazione."

#. Tag: para
#: Oc4j.xml:393
#, no-c-format
msgid "Copy <literal>hsqldb.jar</literal> to OC4J shared library directory: <literal> cp $SEAM_HOME/lib/hsqldb.jar $ORACLE_HOME/j2ee/home/applib/ </literal> (OC4J doesn't come with an embedded database so we decided to use HSQLDB)"
msgstr "Copiare <literal>hsqldb.jar</literal> nella directory della libreria condivisa di OC4J: <literal> cp $SEAM_HOME/lib/hsqldb.jar $ORACLE_HOME/j2ee/home/applib/ </literal> (OC4J non fornisce un embedded database, quindi optiamo per HSQLDB)"

#. Tag: para
#: Oc4j.xml:400
#, no-c-format
msgid "Edit the OC4J datasource file <literal>$ORACLE_HOME/j2ee/home/config/data-sources.xml</literal> and, inside <literal>&lt;data-sources&gt;</literal> , add"
msgstr "Modificare il file datasource di OC4J <literal>$ORACLE_HOME/j2ee/home/config/data-sources.xml</literal> e, dentro <literal>&lt;data-sources&gt;</literal> , aggiungere"

#. Tag: programlisting
#: Oc4j.xml:406
#, no-c-format
msgid ""
"<![CDATA[<managed-data-source\n"
"   connection-pool-name=\"jee5-connection-pool\"\n"
"   jndi-name=\"jdbc/__default\"\n"
"   name=\"jee5-managed-data-source\" />\n"
"<connection-pool name=\"jee5-connection-pool\">\n"
"   <connection-factory\n"
"      factory-class=\"org.hsqldb.jdbcDriver\" \n"
"      user=\"sa\"\n"
"      password=\"\" \n"
"      url=\"jdbc:hsqldb:.\" />\n"
"</connection-pool>]]>"
msgstr ""
"<![CDATA[<managed-data-source\n"
"   connection-pool-name=\"jee5-connection-pool\"\n"
"   jndi-name=\"jdbc/__default\"\n"
"   name=\"jee5-managed-data-source\" />\n"
"<connection-pool name=\"jee5-connection-pool\">\n"
"   <connection-factory\n"
"      factory-class=\"org.hsqldb.jdbcDriver\" \n"
"      user=\"sa\"\n"
"      password=\"\" \n"
"      url=\"jdbc:hsqldb:.\" />\n"
"</connection-pool>]]>"

#. Tag: para
#: Oc4j.xml:408
#, no-c-format
msgid "The <literal>jndi-name</literal> is used as the <literal>jta-data-source</literal> in <literal>persistence.xml</literal> ."
msgstr "<literal>jndi-name</literal> viene usato come <literal>jta-data-source</literal> in <literal>persistence.xml</literal> ."

#. Tag: para
#: Oc4j.xml:413
#, no-c-format
msgid "Edit <literal>$ORACLE_HOME/j2ee/home/config/server.xml</literal> and, inside <literal>&lt;application-server&gt;</literal> , add"
msgstr "Modificare <literal>$ORACLE_HOME/j2ee/home/config/server.xml</literal> e, dentro <literal>&lt;application-server&gt;</literal>, aggiungere"

#. Tag: programlisting
#: Oc4j.xml:419
#, no-c-format
msgid ""
"<![CDATA[<application name=\"jboss-seam-jee5\"\n"
" path=\"../../home/applications/jboss-seam-jee5.ear\"\n"
" parent=\"default\" \n"
" start=\"true\" />]]>"
msgstr ""
"<![CDATA[<application name=\"jboss-seam-jee5\"\n"
" path=\"../../home/applications/jboss-seam-jee5.ear\"\n"
" parent=\"default\" \n"
" start=\"true\" />]]>"

#. Tag: para
#: Oc4j.xml:420
#, no-c-format
msgid "To keep things simple use the same names as you used for project."
msgstr "Per mantenere le cose semplici usare nel progetto gli stessi nomi come si è abituati."

#. Tag: para
#: Oc4j.xml:424
#, no-c-format
msgid "Edit <literal> $ORACLE_HOME/j2ee/home/config/default-web-site.xml </literal> , and, inside <literal>&lt;web-site&gt;</literal> , add"
msgstr "Modificare <literal> $ORACLE_HOME/j2ee/home/config/default-web-site.xml </literal>, e, dentro <literal>&lt;web-site&gt;</literal>, aggiungere"

#. Tag: programlisting
#: Oc4j.xml:430
#, no-c-format
msgid ""
"<![CDATA[<web-app application=\"jboss-seam-jee5\"\n"
" name=\"jboss-seam-jee5\" \n"
" load-on-startup=\"true\"\n"
" root=\"/seam-jee5\" />]]>"
msgstr ""
"<![CDATA[<web-app application=\"jboss-seam-jee5\"\n"
" name=\"jboss-seam-jee5\" \n"
" load-on-startup=\"true\"\n"
" root=\"/seam-jee5\" />]]>"

#. Tag: para
#: Oc4j.xml:431
#, no-c-format
msgid "The <literal>root</literal> is the context path you will put into your web browser to access the application."
msgstr "<literal>root</literal> è il cotext path da mettere nel browser per accedere all'applicazione."

#. Tag: para
#: Oc4j.xml:435
#, no-c-format
msgid "Copy the application to OC4J: <literal> cp dist/jboss-seam-jee5.ear $ORACLE_HOME/j2ee/home/applications/ </literal>"
msgstr "Copiare l'applicazione in OC4J: <literal> cp dist/jboss-seam-jee5.ear $ORACLE_HOME/j2ee/home/applications/ </literal>"

#. Tag: para
#: Oc4j.xml:440
#, no-c-format
msgid "Start/stop OC4J following instructions in <xref linkend=\"oc4j-install-operation\"/> above."
msgstr "Avviare/Interrompere OC4J come visto in <xref linkend=\"oc4j-install-operation\"/>."

#. Tag: para
#: Oc4j.xml:444
#, no-c-format
msgid "Checkout the app at: <literal>http://localhost:8888/seam-jee5</literal>"
msgstr "Controllare l'applicazione in: <literal>http://localhost:8888/seam-jee5</literal>"

#. Tag: title
#: Oc4j.xml:452
#, no-c-format
msgid "Deploying an application created using <literal>seam-gen</literal> to OC4J"
msgstr "Deploy in OC4J di un'applicazione creata con <literal>seam-gen</literal>"

#. Tag: para
#: Oc4j.xml:455
#, no-c-format
msgid "<literal>seam-gen</literal> is a great tool for developers that can quickly get you up and running with a full Seam application. However the project that it created is configured to run on JBoss AS. This means there are some extra steps needed to have it execute on OC4j. The following explanation assumes you are using the command line and a simple text editor, but of course you can use your favorite IDE. <literal>seam-gen</literal> projects come with support for Eclipse and Netbeans."
msgstr "<literal>seam-gen</literal> è uno grande strumento per gli sviluppatore che possono velocemente mettere in piedi applicazioni con Seam. Comunque il progetto che viene creato è configurato per JBoss AS. Questo significa che ci sono alcuni passi aggiuntivi da compiere per eseguirla su OC4J. Le seguenti istruzioni assumono che si usi la linea di comando ed un semplice editor, ma certamente si può usare il proprio IDE. I progetti <literal>seam-gen</literal> supportano Eclipse e Netbeans."

#. Tag: para
#: Oc4j.xml:464
#, no-c-format
msgid "We will start by creating and deploying a pretty simple application using <literal>seam-gen</literal> . Then we'll show you how easy it is to use <literal>seam-gen</literal> and Hibernate Tools to reverse engineer a database schema into a functional CRUD application. <literal>seam-gen</literal> will create JPA entity beans, Seam Application Framework components and JSF views for you. We will also add Seam security using Drools."
msgstr "Cominceremo creando e deployando un'applicazione semplice usando <literal>seam-gen</literal>. Poi si mostrerà quanto è semplice usare <literal>seam-gen</literal> ed Hibernate Tools per compiere il reverse engineer di un database in un'applicazione con funzionalità CRUD. <literal>seam-gen</literal> crerà entity bean JPA, componenti del Seam Application Framework e le viste JSF al posto vostro. Aggiungeremo anche Seam Security usando Drools."

#. Tag: para
#: Oc4j.xml:472
#, no-c-format
msgid "This tutorial uses MySQL (but of course you could use any database, altering the SQL and datasources as appropriate); install, configure and run MySQL, then create a database with some sample data. Don't forget to also download the <literal>mysql-connector-java-X.jar</literal> for jdbc support. When setting up Seam security this tutorial will assume there is a table named <literal>User</literal> with columns <literal>username</literal> and <literal>password</literal> with at least one entry. Beyond that you can set up any type of sample data and tables you would like."
msgstr "Questo tutorial usa MySQL (ma certamente si possono usare altri database, modificando l'SQL ed i datasource in modo appropriato); installare, configurare ed eseguire MySQL, poi create un database con alcuni dati d'esempio. Non si dimentichi di scaricare <literal>mysql-connector-java-X.jar</literal> per il support JDBC. Impostando Seam Security, questo tutorial assume che ci sia una tabella chiamata <literal>User</literal> con colonne <literal>username</literal> e <literal>password</literal> con almeno una riga. Oltre a ciò si possono impostare qualsiasi altro tipo di dati e tabelle d'esempio."

#. Tag: title
#: Oc4j.xml:484
#, no-c-format
msgid "Generating a basic <literal>seam-gen</literal> application"
msgstr "Generazione di un'applicazione base <literal>seam-gen</literal>"

#. Tag: para
#: Oc4j.xml:486
#, no-c-format
msgid "First we need to tell the <literal>seam-gen</literal> what we want, run <literal>./seam setup</literal> in the seam distribution directory. Follow the settings example below based on your system and setup (ex. use your database name instead of <literal>oc4jexample</literal> )."
msgstr "Innanzitutto <literal>seam-gen</literal> deve essere istruito riguardo a ciò che si vuole ottenere, si esegua <literal>./seam setup</literal> nella directory di distribuzione di Seam. Seguire le impostazioni d'esempio elencate qua sotto per il proprio sistema e setup(es. usare il nome del database invece di <literal>oc4jexample</literal>)."

#. Tag: programlisting
#: Oc4j.xml:493
#, no-c-format
msgid ""
"<![CDATA[> ./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.3.GA] \n"
"[C:/Program Files/jboss-4.2.3.GA]\n"
"/home/jbalunas/jboss/jboss-4.2.3.GA\n"
"    [input] Enter the project name [myproject] [myproject]\n"
"oc4j_example\n"
"     [echo] Accepted project name as: oc4j_example\n"
"    [input] Select a RichFaces skin (not applicable if using ICEFaces) [blueSky]\n"
" ([blueSky], classic, ruby, wine, 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 [com.mydomain.\n"
"oc4j_example] [com.mydomain.oc4j_example]\n"
"org.jboss.seam.tutorial.oc4j.action\n"
"    [input] Enter the Java package name for your entity beans [org.jboss.seam.\n"
"tutorial.oc4j.action] [org.jboss.seam.tutorial.oc4j.action]\n"
"org.jboss.seam.tutorial.oc4j.model\n"
"    [input] Enter the Java package name for your test cases [org.jboss.seam.\n"
"tutorial.oc4j.action.test] [org.jboss.seam.tutorial.oc4j.action.test]\n"
"org.jboss.seam.tutorial.oc4j.test\n"
"    [input] What kind of database are you using? [hsql]  ([hsql], mysql, oracle,\n"
" postgres, mssql, db2, sybase, enterprisedb, h2)\n"
"mysql\n"
"    [input] Enter the Hibernate dialect for your database [org.hibernate.\n"
"dialect.MySQLDialect] [org.hibernate.dialect.MySQLDialect]\n"
"\n"
"    [input] Enter the filesystem path to the JDBC driver jar [/tmp/seam/lib/hsqldb.jar] \n"
"[/tmp/seam/lib/hsqldb.jar]\n"
"lib/mysql-connector.jar\n"
"    [input] Enter JDBC driver class for your database [com.mysql.jdbc.Driver] \n"
"[com.mysql.jdbc.Driver]\n"
"\n"
"    [input] Enter the JDBC URL for your database [jdbc:mysql:///test] \n"
"[jdbc:mysql:///test]\n"
"jdbc:mysql:///oc4jexample\n"
"    [input] Enter database username [sa] [sa]\n"
"username\n"
"    [input] Enter database password [] []\n"
"password\n"
"    [input] skipping input as property hibernate.default_schema.new has already \n"
"been set.\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"
"y\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\n"
"    [input] Enter your ICEfaces home directory (leave blank to omit ICEfaces) [] []\n"
"\n"
"[propertyfile] Creating new property file: \n"
"/home/jbalunas/workspace/jboss-seam/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.3.GA/server/default/lib\n"
"     [echo] Type 'seam create-project' to create the new project\n"
"\n"
"BUILD SUCCESSFUL]]>"
msgstr ""
"<![CDATA[> ./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.3.GA] \n"
"[C:/Program Files/jboss-4.2.3.GA]\n"
"/home/jbalunas/jboss/jboss-4.2.3.GA\n"
"    [input] Enter the project name [myproject] [myproject]\n"
"oc4j_example\n"
"     [echo] Accepted project name as: oc4j_example\n"
"    [input] Select a RichFaces skin (not applicable if using ICEFaces) [blueSky]\n"
" ([blueSky], classic, ruby, wine, 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 [com.mydomain.\n"
"oc4j_example] [com.mydomain.oc4j_example]\n"
"org.jboss.seam.tutorial.oc4j.action\n"
"    [input] Enter the Java package name for your entity beans [org.jboss.seam.\n"
"tutorial.oc4j.action] [org.jboss.seam.tutorial.oc4j.action]\n"
"org.jboss.seam.tutorial.oc4j.model\n"
"    [input] Enter the Java package name for your test cases [org.jboss.seam.\n"
"tutorial.oc4j.action.test] [org.jboss.seam.tutorial.oc4j.action.test]\n"
"org.jboss.seam.tutorial.oc4j.test\n"
"    [input] What kind of database are you using? [hsql]  ([hsql], mysql, oracle,\n"
" postgres, mssql, db2, sybase, enterprisedb, h2)\n"
"mysql\n"
"    [input] Enter the Hibernate dialect for your database [org.hibernate.\n"
"dialect.MySQLDialect] [org.hibernate.dialect.MySQLDialect]\n"
"\n"
"    [input] Enter the filesystem path to the JDBC driver jar [/tmp/seam/lib/hsqldb.jar] \n"
"[/tmp/seam/lib/hsqldb.jar]\n"
"lib/mysql-connector.jar\n"
"    [input] Enter JDBC driver class for your database [com.mysql.jdbc.Driver] \n"
"[com.mysql.jdbc.Driver]\n"
"\n"
"    [input] Enter the JDBC URL for your database [jdbc:mysql:///test] \n"
"[jdbc:mysql:///test]\n"
"jdbc:mysql:///oc4jexample\n"
"    [input] Enter database username [sa] [sa]\n"
"username\n"
"    [input] Enter database password [] []\n"
"password\n"
"    [input] skipping input as property hibernate.default_schema.new has already \n"
"been set.\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"
"y\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\n"
"    [input] Enter your ICEfaces home directory (leave blank to omit ICEfaces) [] []\n"
"\n"
"[propertyfile] Creating new property file: \n"
"/home/jbalunas/workspace/jboss-seam/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.3.GA/server/default/lib\n"
"     [echo] Type 'seam create-project' to create the new project\n"
"\n"
"BUILD SUCCESSFUL]]>"

#. Tag: para
#: Oc4j.xml:495
#, no-c-format
msgid "Type <literal>./seam new-project</literal> to create your project and <literal>cd /home/jbalunas/workspace/oc4j_example</literal> to the newly created project."
msgstr "Digitare  <literal>./seam new-project</literal> per creare il progetto e <literal>cd /home/jbalunas/workspace/oc4j_example</literal> nel nuovo progetto creato."

#. Tag: title
#: Oc4j.xml:502
#, no-c-format
msgid "Changes needed for deployment to OC4J"
msgstr "Modifiche richieste per il deploy in OC4J"

#. Tag: para
#: Oc4j.xml:503
#, no-c-format
msgid "We now need to make some changes to the generated project."
msgstr "Occore fare alcune modifiche al progetto generato."

#. Tag: para
#: Oc4j.xml:506
#, no-c-format
msgid "Let's start with the configuration files:"
msgstr "Iniziamo con i file di configurazione:"

#. Tag: literal
#: Oc4j.xml:509
#, no-c-format
msgid "build.xml"
msgstr "build.xml"

#. Tag: para
#: Oc4j.xml:514
#, no-c-format
msgid "Change the default target to archive (we aren't going to cover automatic deployment to OC4J)."
msgstr "Cambiare il target di default per l'archivio (non copriremo il deploy automatico in OC4J)."

#. Tag: programlisting
#: Oc4j.xml:518
#, no-c-format
msgid "<![CDATA[<project name=\"oc4j_example\" default=\"archive\" basedir=\".\">]]>"
msgstr "<![CDATA[<project name=\"oc4j_example\" default=\"archive\" basedir=\".\">]]>"

#. Tag: para
#: Oc4j.xml:521
#, no-c-format
msgid "OC4J looks for the drools file <literal>/security.drl</literal> file in the root of the <literal>war</literal> file instead of the root of the <literal>ear</literal> file 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 "OC4J cercherà il file <literal>/security.drl</literal> nella directory radice del file <literal>war</literal> invece che nella radice di <literal>ear</literal>, quindi occorre spostare <literal>build.xml</literal> nella corretta posizione a build time. Si aggiunga la seguente riga in cima al target: <literal> &lt;target name=\"war\" depends=\"compile\" description=\"Build the distribution .war file\"&gt; </literal>."

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

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

#. Tag: para
#: Oc4j.xml:547
#, no-c-format
msgid "Alter the <literal>jta-data-source</literal> to be <literal>jdbc/__oc4jexample</literal> (and use this as the <literal>jndi-name</literal> when creating the data source in <literal>data-sources.xml</literal> later during deployment)."
msgstr "Modificare <literal>jta-data-source</literal> in <literal>jdbc/__oc4jexample</literal> (ed usare questo come <literal>jndi-name</literal> quando si crea un datasource in <literal>data-sources.xml</literal> più avanti nel deploy)."

#. Tag: para
#: Oc4j.xml:557
#, no-c-format
msgid "Add the properties (described in <literal>jee5/booking</literal> example):"
msgstr "Aggiungere le proprietà (descritto nell'esempio <literal>jee5/booking</literal>):"

#. Tag: programlisting
#: Oc4j.xml:562
#, no-c-format
msgid ""
"<![CDATA[<property name=\"hibernate.query.factory_class\"\n"
"   value=\"org.hibernate.hql.classic.ClassicQueryTranslatorFactory\" />\n"
"<property name=\"hibernate.transaction.manager_lookup_class\"\n"
"   value=\"org.hibernate.transaction.OrionTransactionManagerLookup\" />\n"
"<property name=\"hibernate.transaction.flush_before_completion\" \n"
"   value=\"true\"/>\n"
"<property name=\"hibernate.cache.provider_class\" \n"
"   value=\"org.hibernate.cache.HashtableCacheProvider\"/>]]>"
msgstr ""
"<![CDATA[<property name=\"hibernate.query.factory_class\"\n"
"   value=\"org.hibernate.hql.classic.ClassicQueryTranslatorFactory\" />\n"
"<property name=\"hibernate.transaction.manager_lookup_class\"\n"
"   value=\"org.hibernate.transaction.OrionTransactionManagerLookup\" />\n"
"<property name=\"hibernate.transaction.flush_before_completion\" \n"
"   value=\"true\"/>\n"
"<property name=\"hibernate.cache.provider_class\" \n"
"   value=\"org.hibernate.cache.HashtableCacheProvider\"/>]]>"

#. Tag: para
#: Oc4j.xml:565
#, no-c-format
msgid "Remove the JBoss AS specific method of exposing the EntityManagerFactory:"
msgstr "Rimuovere il metodo specifico per JBoss AS per esporre EntityManagerFactory:"

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

#. Tag: para
#: Oc4j.xml:572
#, no-c-format
msgid "You'll need to alter <literal>persistence-prod.xml</literal> as well if you want to deploy to OC4J using the prod profile."
msgstr "Occorre modificare <literal>persistence-prod.xml</literal> anche se si vuole eseguire il deploy in OC4J usando il profile prod."

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

#. Tag: para
#: Oc4j.xml:585
#, 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 "Si può cancellare questo file poiché non si sta facendo il deploy in JBoss AS (<literal>jboss-app.xml</literal> viene usato per abilitare l'isolamento del classloading in JBoss AS)"

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

#. Tag: para
#: Oc4j.xml:594
#, no-c-format
msgid "You can delete these file as we aren't deploying to JBoss AS (these files define datasources in JBoss AS, in OC4J you have to edit the master <literal>data-sources.xml</literal> file)"
msgstr "Si possono cancellare questi file poiché non si sta facendo il deploy in JBoss AS (questi file definiscono i datasource in JBoss AS, in OC4J bisogna editare il file master <literal>data-sources.xml</literal>)"

#. Tag: literal
#: Oc4j.xml:603
#, no-c-format
msgid "resources/WEB-INF/components.xml"
msgstr "resources/WEB-INF/components.xml"

#. Tag: para
#: Oc4j.xml:608
#, 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.org/schema/seam/transaction\" </literal>"
msgstr "Abilitare l'integrazione delle transazioni gestite dal container - aggiungere il componente <literal> &lt;transaction:ejb-transaction /&gt; </literal> e la dichiarazione del namespace <literal> xmlns:transaction=\"http://jboss.org/schema/seam/transaction\" </literal>"

#. Tag: para
#: Oc4j.xml:617
#, no-c-format
msgid "Alter the <literal>jndi-pattern</literal> to <literal> java:comp/env/oc4j_example/#{ejbName}/local </literal>"
msgstr "Modificare <literal>jndi-pattern</literal> in </literal> java:comp/env/oc4j_example/#{ejbName}/local </literal>"

#. Tag: para
#: Oc4j.xml:624
#, no-c-format
msgid "We want to use a Seam Managed Persistence Context in our application. Unfortunately OC4J doesn't expose the EntityManagerFactory in JNDI, but Seam provides a built-in manager component. To activate add the following entry:"
msgstr "Vogliamo avere un contesto di persistenza gestito da Seam. Sfortunatamente OC4J non espone l'EntityManagerFactory in JNDI, ma Seam fornisce un componente manager predefinito. Per attivarlo aggiungere:"

#. Tag: programlisting
#: Oc4j.xml:632
#, no-c-format
msgid ""
"<![CDATA[<persistence:entity-manager-factory\n"
" auto-create=\"true\" \n"
" name=\"oc4jEntityManagerFactory\"\n"
" persistence-unit-name=\"oc4j_example\" />]]>"
msgstr ""
"<![CDATA[<persistence:entity-manager-factory\n"
" auto-create=\"true\" \n"
" name=\"oc4jEntityManagerFactory\"\n"
" persistence-unit-name=\"oc4j_example\" />]]>"

#. Tag: para
#: Oc4j.xml:633
#, no-c-format
msgid "We then need to tell Seam to use it, so we alter the <literal>managed-persistence-context</literal> injecting the Entity Manager Factory into the existing element:"
msgstr "Occorre poi dire a Seam di usarlo, quindi modificare <literal>managed-persistence-context</literal> iniettando Entity Manager Factory nell'elemento esistente:"

#. Tag: programlisting
#: Oc4j.xml:640
#, no-c-format
msgid ""
"<![CDATA[<persistence:managed-persistence-context\n"
" name=\"entityManager\"\n"
" auto-create=\"true\"\n"
" entity-manager-factory=\"#{oc4jEntityManagerFactory}\" />]]>"
msgstr ""
"<![CDATA[<persistence:managed-persistence-context\n"
" name=\"entityManager\"\n"
" auto-create=\"true\"\n"
" entity-manager-factory=\"#{oc4jEntityManagerFactory}\" />]]>"

#. Tag: literal
#: Oc4j.xml:646
#, no-c-format
msgid "resources/WEB-INF/web.xml"
msgstr "resources/WEB-INF/web.xml"

#. Tag: para
#: Oc4j.xml:649
#, no-c-format
msgid "You must add the Seam container managed transaction integration EJB entry below. Remember for OC4j you need to declare all your EJBs here if you modify the application further."
msgstr "Occorre aggiungere la riga sottostante per l'integrazione delle transazioni gestite dal container in Seam. Ricordarsi che per OC4J serve dichiarare tutti gli EJB se si modifica ulteriormente l'applicazione."

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

#. Tag: literal
#: Oc4j.xml:660
#, no-c-format
msgid "resources/META-INF/orion-application.xml"
msgstr "resources/META-INF/orion-application.xml"

#. Tag: para
#: Oc4j.xml:665
#, no-c-format
msgid "This is a file that you must create so that RichFaces and Ajax4Jsf stylesheets will work with OC4J. This file basically tells OC4J not force its own inherited URL settings."
msgstr "Questo file va creato affinché i foglio di stile RichFaces e Ajax4Jsf funzionino con OC4J. Questo file dice a OC4j di non forzare le proprie impostazioni URL ereditate."

#. Tag: programlisting
#: Oc4j.xml:671
#, no-c-format
msgid ""
"<![CDATA[<?xml version = '1.0' encoding = 'utf-8'?>\n"
"<orion-application\n"
"        xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
"        xsi:noNamespaceSchemaLocation=\"http://xmlns.oracle.com/oracleas/schema/\n"
"                                                            orion-application-10_0.xsd\"\n"
"        schema-major-version=\"10\"\n"
"        schema-minor-version=\"0\"\n"
"        component-classification=\"internal\">\n"
"\n"
"    <imported-shared-libraries>\n"
"       <remove-inherited name=\"oracle.xml\"/>\n"
"    </imported-shared-libraries>\n"
"</orion-application>]]>"
msgstr ""
"<![CDATA[<?xml version = '1.0' encoding = 'utf-8'?>\n"
"<orion-application\n"
"        xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
"        xsi:noNamespaceSchemaLocation=\"http://xmlns.oracle.com/oracleas/schema/\n"
"                                                            orion-application-10_0.xsd\"\n"
"        schema-major-version=\"10\"\n"
"        schema-minor-version=\"0\"\n"
"        component-classification=\"internal\">\n"
"\n"
"    <imported-shared-libraries>\n"
"       <remove-inherited name=\"oracle.xml\"/>\n"
"    </imported-shared-libraries>\n"
"</orion-application>]]>"

#. Tag: para
#: Oc4j.xml:674
#, no-c-format
msgid "Now you need to tell the <literal>build.xml</literal> file that it needs to copy this file to the <literal>ear</literal> archive. Find the <literal> &lt;target name=\"ear\" description=\"Build the EAR\"&gt; </literal> target and modify the <literal> &lt;copy todir=\"${ear.dir}/META-INF\"&gt; </literal> section to look like the following:"
msgstr "Occorre indicare nel file <literal>build.xml</literal> che serve copiare questo file nell'archivio <literal>ear</literal>. Cercare il target <literal> &lt;target name=\"ear\" description=\"Build the EAR\"&gt; </literal> e modificare la sezione <literal> &lt;copy todir=\"${ear.dir}/META-INF\"&gt; </literal> in modo che appaia così:"

#. Tag: programlisting
#: Oc4j.xml:686
#, no-c-format
msgid ""
"<![CDATA[<copy todir=\"${ear.dir}/META-INF\">\n"
"    <fileset dir=\"${basedir}/resources/META-INF\">\n"
"       <include name=\"application.xml\" />\n"
"       <include name=\"orion-application.xml\"/>\n"
"       <include name=\"jboss-app.xml\" />\n"
"    </fileset>\n"
" </copy>]]>"
msgstr ""
"<![CDATA[<copy todir=\"${ear.dir}/META-INF\">\n"
"    <fileset dir=\"${basedir}/resources/META-INF\">\n"
"       <include name=\"application.xml\" />\n"
"       <include name=\"orion-application.xml\"/>\n"
"       <include name=\"jboss-app.xml\" />\n"
"    </fileset>\n"
" </copy>]]>"

#. Tag: title
#: Oc4j.xml:694
#, no-c-format
msgid "Extra jar dependencies"
msgstr "Dipendenze extra jar"

#. Tag: para
#: Oc4j.xml:695
#, no-c-format
msgid "This application has similar requirements as the <literal>jee5/booking</literal> example above."
msgstr "Quest'applicazione ha requisiti simili all'esempio <literal>jee5/booking</literal>."

#. Tag: para
#: Oc4j.xml:697
#, no-c-format
msgid "The <literal>build.xml</literal> must be modified to add the jars listed below to the generated archive files. Look for the <literal>&lt;fileset dir=\"${basedir}\"&gt;</literal> section below and add the imports underneath the other libraries being imported."
msgstr "Il <literal>build.xml</literal> deve essere modificato affinché vengano aggiunti i jar elencati qua sotto all'archivio generato. Si guardi la sezione <literal>&lt;fileset dir=\"${basedir}\"&gt;</literal> e si aggiungano gli import sotto tutte le altre librerie importate."

#. Tag: programlisting
#: Oc4j.xml:704
#, no-c-format
msgid ""
"<![CDATA[<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"
"                       <include name=\"*.drl\" />\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/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 ""
"<![CDATA[<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"
"                       <include name=\"*.drl\" />\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/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>]]>"

#. Tag: para
#: Oc4j.xml:707
#, no-c-format
msgid "Hibernate:"
msgstr "Hibernate:"

#. Tag: programlisting
#: Oc4j.xml:710
#, no-c-format
msgid ""
"<![CDATA[<include name=\"lib/hibernate.jar\"/>\n"
"<include name=\"lib/hibernate-annotations.jar\"/>\n"
"<include name=\"lib/hibernate-commons-annotations.jar\"/>\n"
"<include name=\"lib/hibernate-entitymanager.jar\"/>\n"
"<include name=\"lib/hibernate-search.jar\"/>\n"
"<include name=\"lib/hibernate-validator.jar\"/>\n"
"<include name=\"lib/commons-logging.jar\"/>\n"
"<include name=\"lib/commons-collections.jar\"/>\n"
"<include name=\"lib/jboss-common-core.jar\"/>]]>"
msgstr ""
"<![CDATA[<include name=\"lib/hibernate.jar\"/>\n"
"<include name=\"lib/hibernate-annotations.jar\"/>\n"
"<include name=\"lib/hibernate-commons-annotations.jar\"/>\n"
"<include name=\"lib/hibernate-entitymanager.jar\"/>\n"
"<include name=\"lib/hibernate-search.jar\"/>\n"
"<include name=\"lib/hibernate-validator.jar\"/>\n"
"<include name=\"lib/commons-logging.jar\"/>\n"
"<include name=\"lib/commons-collections.jar\"/>\n"
"<include name=\"lib/jboss-common-core.jar\"/>]]>"

#. Tag: para
#: Oc4j.xml:713
#, no-c-format
msgid "Drools &#8212; because we are using Drools to provide Seam Security rules, we need to add in Eclipse JDT compiler (you don't need this on JBoss AS; again this is due to OC4J's classloading):"
msgstr "Drools &#8212; poiché si usa Drools per fornire le regole di Seam Security, occorre aggiungere il compilator JDT di Eclipse (non serve in JBoss AS; ancora è dovuto al classloading di OC4J):"

#. Tag: programlisting
#: Oc4j.xml:719
#, no-c-format
msgid "<![CDATA[<include name=\"lib/core.jar\"/>]]>"
msgstr "<![CDATA[<include name=\"lib/core.jar\"/>]]>"

#. Tag: para
#: Oc4j.xml:722
#, no-c-format
msgid "Third party jars &#8212; most of these are only needed because of OC4J's classloading:"
msgstr "Jar di Terze Parti &#8212; la maggior parte di questi servono a causa del classloading di OC4J:"

#. Tag: programlisting
#: Oc4j.xml:726
#, no-c-format
msgid ""
"<![CDATA[<include name=\"lib/javassist.jar\"/>\n"
"<include name=\"lib/quartz.jar\"/>\n"
"<include name=\"lib/dbunit.jar\"/>\n"
"<include name=\"lib/jboss-embedded-api.jar\"/>\n"
"<include name=\"lib/dom4j.jar\"/>                             \n"
"<include name=\"lib/lucene-core.jar\"/>\n"
"<include name=\"lib/cglib.jar\"/>\n"
"<include name=\"lib/asm.jar\"/>\n"
"<include name=\"lib/commons-beanutils.jar\"/>\n"
"<include name=\"lib/commons-digester.jar\"/>\n"
"<include name=\"lib/concurrent.jar\"/>\n"
"<include name=\"lib/antlr.jar\"/>]]>"
msgstr ""
"<![CDATA[<include name=\"lib/javassist.jar\"/>\n"
"<include name=\"lib/quartz.jar\"/>\n"
"<include name=\"lib/dbunit.jar\"/>\n"
"<include name=\"lib/jboss-embedded-api.jar\"/>\n"
"<include name=\"lib/dom4j.jar\"/>                             \n"
"<include name=\"lib/lucene-core.jar\"/>\n"
"<include name=\"lib/cglib.jar\"/>\n"
"<include name=\"lib/asm.jar\"/>\n"
"<include name=\"lib/commons-beanutils.jar\"/>\n"
"<include name=\"lib/commons-digester.jar\"/>\n"
"<include name=\"lib/concurrent.jar\"/>\n"
"<include name=\"lib/antlr.jar\"/>]]>"

#. Tag: para
#: Oc4j.xml:730
#, no-c-format
msgid "You should end up with something like:"
msgstr "Si termina con qualcosa del tipo:"

#. Tag: programlisting
#: Oc4j.xml:733
#, no-c-format
msgid ""
"<![CDATA[<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/janino*.jar\"/>\n"
"      <include name=\"lib/antlr-*.jar\"/>\n"
"      <include name=\"lib/mvel*.jar\"/>\n"
"      <include name=\"lib/richfaces-api*.jar\" />\n"
"      <include name=\"lib/hibernate.jar\"/>\n"
"      <include name=\"lib/hibernate-annotations.jar\"/>\n"
"      <include name=\"lib/hibernate-commons-annotations.jar\"/>\n"
"      <include name=\"lib/hibernate-entitymanager.jar\"/>\n"
"      <include name=\"lib/hibernate-search.jar\"/>\n"
"      <include name=\"lib/hibernate-validator.jar\"/>\n"
"      <include name=\"lib/commons-logging.jar\"/>\n"
"      <include name=\"lib/commons-collections.jar\"/>\n"
"      <include name=\"lib/jboss-common-core.jar\"/>\n"
"      <include name=\"lib/core.jar\"/>\n"
"      <include name=\"lib/javassist.jar\"/>\n"
"      <include name=\"lib/quartz.jar\"/>\n"
"      <include name=\"lib/dbunit.jar\"/>\n"
"      <include name=\"lib/jboss-embedded-api.jar\"/>\n"
"      <include name=\"lib/dom4j.jar\"/>                             \n"
"      <include name=\"lib/lucene-core.jar\"/>\n"
"      <include name=\"lib/cglib.jar\"/>\n"
"      <include name=\"lib/asm.jar\"/>\n"
"      <include name=\"lib/commons-beanutils.jar\"/>\n"
"      <include name=\"lib/commons-digester.jar\"/>\n"
"      <include name=\"lib/concurrent.jar\"/>\n"
"      <include name=\"lib/antlr.jar\"/>\n"
"</fileset>]]>"
msgstr ""
"<![CDATA[<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/janino*.jar\"/>\n"
"      <include name=\"lib/antlr-*.jar\"/>\n"
"      <include name=\"lib/mvel*.jar\"/>\n"
"      <include name=\"lib/richfaces-api*.jar\" />\n"
"      <include name=\"lib/hibernate.jar\"/>\n"
"      <include name=\"lib/hibernate-annotations.jar\"/>\n"
"      <include name=\"lib/hibernate-commons-annotations.jar\"/>\n"
"      <include name=\"lib/hibernate-entitymanager.jar\"/>\n"
"      <include name=\"lib/hibernate-search.jar\"/>\n"
"      <include name=\"lib/hibernate-validator.jar\"/>\n"
"      <include name=\"lib/commons-logging.jar\"/>\n"
"      <include name=\"lib/commons-collections.jar\"/>\n"
"      <include name=\"lib/jboss-common-core.jar\"/>\n"
"      <include name=\"lib/core.jar\"/>\n"
"      <include name=\"lib/javassist.jar\"/>\n"
"      <include name=\"lib/quartz.jar\"/>\n"
"      <include name=\"lib/dbunit.jar\"/>\n"
"      <include name=\"lib/jboss-embedded-api.jar\"/>\n"
"      <include name=\"lib/dom4j.jar\"/>                             \n"
"      <include name=\"lib/lucene-core.jar\"/>\n"
"      <include name=\"lib/cglib.jar\"/>\n"
"      <include name=\"lib/asm.jar\"/>\n"
"      <include name=\"lib/commons-beanutils.jar\"/>\n"
"      <include name=\"lib/commons-digester.jar\"/>\n"
"      <include name=\"lib/concurrent.jar\"/>\n"
"      <include name=\"lib/antlr.jar\"/>\n"
"</fileset>]]>"

#. Tag: title
#: Oc4j.xml:738
#, no-c-format
msgid "Building and deploying the seam-gen'd application to OC4J"
msgstr "Build e deploy di applicazioni seam-gen per OC4J"

#. Tag: para
#: Oc4j.xml:740
#, no-c-format
msgid "These instructions are very similar to the ones in <xref linkend=\"oc4j-app-deploy\"/> but with the correct references for the <literal>oc4j_example</literal> application."
msgstr "Queste istruzioni sono simile a quelle di <xref linkend=\"oc4j-app-deploy\"/> ma con i riferimenti corretti per l'applicazione <literal>oc4j_example</literal>."

#. Tag: para
#: Oc4j.xml:746
#, no-c-format
msgid "Build your application by calling <literal>ant</literal> in the base directory of your project (ex. <literal>/home/jbalunas/workspace/oc4j_example</literal> ). The target of the build will be <literal>dist/oc4j_example.ear</literal> ."
msgstr "Costruire l'applicazione lanciando il comando <literal>ant</literal> nella directory base del progetto (es. <literal>/home/jbalunas/workspace/oc4j_example</literal>). Il target del build sarà <literal>dist/oc4j_example.ear</literal>."

#. Tag: para
#: Oc4j.xml:754
#, no-c-format
msgid "Copy the <literal>mysql-connector.jar</literal> file to the <literal>$ORACLE_HOME/j2ee/home/applib</literal> directory so that jdbc drivers are available."
msgstr "Copiare il file <literal>mysql-connector.jar</literal> nella directory <literal>$ORACLE_HOME/j2ee/home/applib</literal> affinché siano disponibili i driver JDBC."

#. Tag: literal
#: Oc4j.xml:761
#, no-c-format
msgid "$ORACLE_HOME/j2ee/home/config/data-sources.xml"
msgstr "$ORACLE_HOME/j2ee/home/config/data-sources.xml"

#. Tag: programlisting
#: Oc4j.xml:766
#, no-c-format
msgid ""
"<![CDATA[<managed-data-source\n"
"   connection-pool-name=\"oc4j-example-connection-pool\"\n"
"   jndi-name=\"jdbc/__oc4jexample\"\n"
"   name=\"oc4j-example-managed-data-source\" />\n"
"<connection-pool\n"
"   name=\"oc4j-example-connection-pool\">\n"
"   <connection-factory\n"
"      factory-class=\"com.mysql.jdbc.Driver\"\n"
"      user=\"username\" \n"
"      password=\"password\"\n"
"      url=\"jdbc:mysql:///oc4j\" />\n"
"</connection-pool>]]>"
msgstr ""
"<![CDATA[<managed-data-source\n"
"   connection-pool-name=\"oc4j-example-connection-pool\"\n"
"   jndi-name=\"jdbc/__oc4jexample\"\n"
"   name=\"oc4j-example-managed-data-source\" />\n"
"<connection-pool\n"
"   name=\"oc4j-example-connection-pool\">\n"
"   <connection-factory\n"
"      factory-class=\"com.mysql.jdbc.Driver\"\n"
"      user=\"username\" \n"
"      password=\"password\"\n"
"      url=\"jdbc:mysql:///oc4j\" />\n"
"</connection-pool>]]>"

#. Tag: literal
#: Oc4j.xml:770
#, no-c-format
msgid "$ORACLE_HOME/j2ee/home/config/server.xml"
msgstr "$ORACLE_HOME/j2ee/home/config/server.xml"

#. Tag: programlisting
#: Oc4j.xml:774
#, no-c-format
msgid ""
"<![CDATA[<application name=\"oc4j_example\"\n"
" path=\"../../home/applications/oc4j_example.ear\"\n"
" parent=\"default\"\n"
" start=\"true\" />]]>"
msgstr ""
"<![CDATA[<application name=\"oc4j_example\"\n"
" path=\"../../home/applications/oc4j_example.ear\"\n"
" parent=\"default\"\n"
" start=\"true\" />]]>"

#. Tag: literal
#: Oc4j.xml:777
#, no-c-format
msgid "$ORACLE_HOME/j2ee/home/config/default-web-site.xml"
msgstr "$ORACLE_HOME/j2ee/home/config/default-web-site.xml"

#. Tag: programlisting
#: Oc4j.xml:782
#, no-c-format
msgid ""
"<![CDATA[<web-app application=\"oc4j_example\"\n"
" name=\"oc4j_example\" \n"
" load-on-startup=\"true\"\n"
" root=\"/oc4j_example\" />]]>"
msgstr ""
"<![CDATA[<web-app application=\"oc4j_example\"\n"
" name=\"oc4j_example\" \n"
" load-on-startup=\"true\"\n"
" root=\"/oc4j_example\" />]]>"

#. Tag: para
#: Oc4j.xml:786
#, no-c-format
msgid "Start/stop OC4J following instructions in the <literal>Installation and operation of OC4J</literal> section above."
msgstr "Avviare/Interrompere OC4J seguendo le istruzioni della sezione <literal>Installazione ed operazioni di OC4J</literal>."

#. Tag: para
#: Oc4j.xml:791
#, no-c-format
msgid "Checkout the app at: <literal>http://localhost:8888/oc4j_example</literal>"
msgstr "Controllare l'applicazione in: <literal>http://localhost:8888/oc4j_example</literal>"

#. Tag: title
#: Oc4j.xml:800
#, no-c-format
msgid "Extending example with reverse engineered CRUD and Drools"
msgstr "Estensione dell'esempio con CRUD (reverse engineer) e Drools"

#. Tag: para
#: Oc4j.xml:802
#, no-c-format
msgid "In this section we extend the basic <literal>seam-gen</literal> application into a full blown CRUD application based on an existing database. Plus we will add <literal>Drools</literal> based security as well."
msgstr "In questa sezione estenderemo l'applicazione base <literal>seam-gen</literal> in un'applicazione CRUD su un database esistente. Inoltre aggiungeremo la sicurezza basata su <literal>Drools</literal>."

#. Tag: title
#: Oc4j.xml:807
#, no-c-format
msgid "Have <literal>seam-gen</literal> generate your CRUD applications"
msgstr "Fare generare applicazioni CRUD a <literal>seam-gen</literal>"

#. Tag: para
#: Oc4j.xml:809
#, no-c-format
msgid "Type <literal>./seam generate-entities</literal> in the base directory of your seam distribution. This will create the entities, the Seam Application Framework classes and the relevant views for the CRUD application."
msgstr "Scrivere <literal>./seam generate-entities</literal> nella directory base della distribuzione Seam. Verrano creati gli entity, le classi del Seam Application Framework e le viste rilevanti per l'applicazione CRUD."

#. Tag: para
#: Oc4j.xml:814
#, no-c-format
msgid "That's it...no really...that's it. Build and deploy as before and see for yourself."
msgstr "Ecco fatto. Fare il build ed il deploy come prima ed osservare i risultati."

#. Tag: title
#: Oc4j.xml:819
#, no-c-format
msgid "Hook up drools authentication using your new CRUD application"
msgstr "Agganciare l'autenticazione Drools usando la nuova applicazione CRUD"

#. Tag: para
#: Oc4j.xml:821
#, no-c-format
msgid "As stated above this section assumes your database had a <literal>User</literal> table with <literal>username</literal> and <literal>password</literal> columns with at least one entry. If you don't have this you may need to modify the <literal>authenticate</literal> method below."
msgstr "Come detto sopra questa sezione assume che il database abbia una tabella <literal>User</literal> con le colonne <literal>username</literal> e <literal>password</literal> con almeno una riga. Altrimenti occorre modificare il metodo <literal>authenticate</literal>."

#. Tag: para
#: Oc4j.xml:827
#, no-c-format
msgid "Lets link our <literal>User</literal> entity into Seam Security by making our authenticator class a Stateless Session Bean (OC4J is a EJB3 container after all!):"
msgstr "Si colleghi l'entity <literal>User</literal> a Seam Security rendendo la classe authenticator un Stateless Session Bean (OC4J è dopotutto un EJB3 container!):"

#. Tag: para
#: Oc4j.xml:835
#, no-c-format
msgid "Add the <literal>@Stateless</literal> annotation to the <literal>Authenticator</literal> class."
msgstr "Aggiungere l'annotazione <literal>@Stateless</literal> alla classe <literal>Authenticator</literal>."

#. Tag: para
#: Oc4j.xml:841
#, no-c-format
msgid "Rename the class to <literal>AuthenticatorAction</literal>"
msgstr "Rinominare la classe in <literal>AuthenticatorAction</literal>"

#. Tag: para
#: Oc4j.xml:846
#, 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 "Creare un interfaccia chiamata <literal>Authenticator</literal> implementata da <literal>AuthenticatorAction</literal>. (EJB3 richiede session bean con un'interfaccia locale). Si annoti l'interfaccia con <literal>@Local</literal> , ed aggiungere un singolo metodo con la stessa signature come <literal>authenticate</literal> in <literal>AuthenticatorAction</literal>."

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

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

#. Tag: para
#: Oc4j.xml:866
#, no-c-format
msgid "Use <literal>@PersistenceContext</literal> to inject an EntityManager by adding this line the <literal>AuthenticatorAction</literal> class:"
msgstr "Usare <literal>@PersistenceContext</literal> per iniettare un EntityManager aggiungendo questa linea alla classe <literal>AuthenticatorAction</literal>:"

#. Tag: programlisting
#: Oc4j.xml:872
#, no-c-format
msgid "<![CDATA[@PersistenceContext private EntityManager entityManager;]]>"
msgstr "<![CDATA[@PersistenceContext private EntityManager entityManager;]]>"

#. Tag: para
#: Oc4j.xml:875
#, no-c-format
msgid "Implement authenticate:"
msgstr "Implementa authenticate:"

#. Tag: programlisting
#: Oc4j.xml:878
#, no-c-format
msgid ""
"<![CDATA[public boolean authenticate() {\n"
"   List <User> users = entityManager .createQuery(\"select u from User u where \n"
"   u.username = #{identity.username} and \n"
"   u.password = #{identity.password}\") .getResultList();\n"
"   if (users.size() == 1) {\n"
"      identity.addRole(\"admin\"); \n"
"      return true; \n"
"   } else {\n"
"      return false; \n"
"   } \n"
"}]]>"
msgstr ""
"<![CDATA[public boolean authenticate() {\n"
"   List <User> users = entityManager .createQuery(\"select u from User u where \n"
"   u.username = #{identity.username} and \n"
"   u.password = #{identity.password}\") .getResultList();\n"
"   if (users.size() == 1) {\n"
"      identity.addRole(\"admin\"); \n"
"      return true; \n"
"   } else {\n"
"      return false; \n"
"   } \n"
"}]]>"

#. Tag: para
#: Oc4j.xml:881
#, no-c-format
msgid "And then add the EJB3 reference to <literal>web.xml</literal> :"
msgstr "E aggiungere quindi il riferimento EJB3 a <literal>web.xml</literal>:"

#. Tag: programlisting
#: Oc4j.xml:885
#, no-c-format
msgid ""
"<![CDATA[<ejb-local-ref>\n"
"   <ejb-ref-name>\n"
"      oc4j_example/AuthenticatorAction/local\n"
"   </ejb-ref-name>\n"
"   <ejb-ref-type>Session</ejb-ref-type>\n"
"   <local>\n"
"      org.jboss.seam.tutorial.oc4j.action.Authenticator\n"
"   </local>\n"
"   <ejb-link>AuthenticatorAction</ejb-link>\n"
"</ejb-local-ref>]]>"
msgstr ""
"<![CDATA[<ejb-local-ref>\n"
"   <ejb-ref-name>\n"
"      oc4j_example/AuthenticatorAction/local\n"
"   </ejb-ref-name>\n"
"   <ejb-ref-type>Session</ejb-ref-type>\n"
"   <local>\n"
"      org.jboss.seam.tutorial.oc4j.action.Authenticator\n"
"   </local>\n"
"   <ejb-link>AuthenticatorAction</ejb-link>\n"
"</ejb-local-ref>]]>"

#. Tag: para
#: Oc4j.xml:889
#, no-c-format
msgid "Build and deploy as before and notice that now only actual username and passwords are accepted."
msgstr "Eseguire il build ed il deploy come prima e notare che solo i veri username e password vengono accettati."

#. Tag: title
#: Oc4j.xml:897
#, no-c-format
msgid "Finishing up"
msgstr "Fine"

#. Tag: para
#: Oc4j.xml:898
#, no-c-format
msgid "That's it, we're through. You now have a great starting point for any Seam based application deployed to OC4J."
msgstr "Ecco fatto, abbiamo finito. Ora si ha un buon punto di partenza per le applicazioni Seam deployate in OC4J."

