[jbosstools-commits] JBoss Tools SVN: r13162 - in trunk/seam/docs/reference/en: images and 2 other directories.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Wed Jan 21 10:19:05 EST 2009
Author: smukhina
Date: 2009-01-21 10:19:05 -0500 (Wed, 21 Jan 2009)
New Revision: 13162
Added:
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/added_seam_support_to_ear_project.png
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/adding_seam_support_to_ejb_project.png
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/adding_seam_support_to_war_project.png
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/application_xml_with_jboss-seam_jar.png
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs.png
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs_from_ear_to_ejb_manifest_class-path.png
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs_from_ear_to_war_manifest_class-path.png
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/java_ee_module_dependencies.png
trunk/seam/docs/reference/en/images/adding_seam_support_to_project/wtp_projects.png
trunk/seam/docs/reference/en/modules/adding_seam_support_to_ear_project.xml
Modified:
trunk/seam/docs/reference/en/master.xml
trunk/seam/docs/reference/en/modules/directory_structure.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-565
Adding Seam support to EAR project
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/added_seam_support_to_ear_project.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/added_seam_support_to_ear_project.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/adding_seam_support_to_ejb_project.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/adding_seam_support_to_ejb_project.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/adding_seam_support_to_war_project.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/adding_seam_support_to_war_project.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/application_xml_with_jboss-seam_jar.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/application_xml_with_jboss-seam_jar.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs_from_ear_to_ejb_manifest_class-path.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs_from_ear_to_ejb_manifest_class-path.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs_from_ear_to_war_manifest_class-path.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/including_libs_from_ear_to_war_manifest_class-path.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/java_ee_module_dependencies.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/java_ee_module_dependencies.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/wtp_projects.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/adding_seam_support_to_project/wtp_projects.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/seam/docs/reference/en/master.xml
===================================================================
--- trunk/seam/docs/reference/en/master.xml 2009-01-21 14:42:10 UTC (rev 13161)
+++ trunk/seam/docs/reference/en/master.xml 2009-01-21 15:19:05 UTC (rev 13162)
@@ -10,12 +10,14 @@
<!ENTITY generate_entities SYSTEM "modules/generate_entities.xml">
<!ENTITY seam_editors SYSTEM "modules/seam_editors.xml">
<!ENTITY seam_view SYSTEM "modules/seam_view.xml">
- <!ENTITY seam_preferences SYSTEM "modules/seam_preferences.xml">
+<!ENTITY seam_preferences SYSTEM "modules/seam_preferences.xml">
+<!ENTITY adding_seam_support_to_ear_project SYSTEM "modules/adding_seam_support_to_ear_project.xml">
<!ENTITY crud_database_application SYSTEM "modules/crud_database_application.xml">
<!ENTITY crud_application_walkthrough SYSTEM "modules/crud_application_walkthrough.xml">
<!ENTITY business_application SYSTEM "modules/business_application.xml">
<!ENTITY testng SYSTEM "modules/testng.xml">
+
<!ENTITY seamlink "../../seam/html_single/index.html">
<!ENTITY aslink "../../as/html_single/index.html">
<!ENTITY esblink "../../esb_ref_guide/html_single/index.html">
@@ -69,6 +71,7 @@
&seam_editors;
&seam_view;
&seam_preferences;
+&adding_seam_support_to_ear_project;
&crud_database_application;
&crud_application_walkthrough;
&testng;
Added: trunk/seam/docs/reference/en/modules/adding_seam_support_to_ear_project.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/adding_seam_support_to_ear_project.xml (rev 0)
+++ trunk/seam/docs/reference/en/modules/adding_seam_support_to_ear_project.xml 2009-01-21 15:19:05 UTC (rev 13162)
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="adding_seam_support_to_ear_project" xreflabel="adding_seam_support_to _ear_project">
+ <?dbhtml filename="adding_seam_support_to _ear_project.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>EAR</keyword>
+ <keyword>Seam</keyword>
+ <keyword></keyword>
+ <keyword></keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Adding Seam support to EAR project</title>
+ <para>From this chapter you will find out how to add Seam support to EAR project</para>
+ <para>For example you have several WTP projects:</para>
+
+ <itemizedlist>
+ <listitem><para> seamproject-ear (You can create WTP EAR project using New -> Project -> Java EE -> Enterprise Application Project wizard)</para></listitem>
+ <listitem><para> seamproject-ejb (You can create WTP EJB project using New -> Project -> EJB -> EJB Project wizard)</para></listitem>
+ <listitem><para> seamproject-war (You can create WTP WEB project using New -> Project -> Web -> Dynamic Web Project wizard)</para></listitem>
+ </itemizedlist>
+
+ <tip><title>Tip</title>
+ <para>You can add as many EJBs modules as you want just doing the same for each EJB project.</para></tip>
+
+ <figure>
+ <title>WTP Projects</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/adding_seam_support_to_project/wtp_projects.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Make sure EJB and WAR are included in EAR as modules (Properties for seamproject-ear -> Java EE Module Dependencies)</para>
+
+ <figure>
+ <title>Java EE Module Dependencies</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/adding_seam_support_to_project/java_ee_module_dependencies.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Make sure there is jboss-seam.jar in application.xml as well:</para>
+
+ <figure>
+ <title>Java EE Module Dependencies</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/adding_seam_support_to_project/application_xml_with_jboss-seam_jar.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para>Then include libs from EAR to EJB Manifest Class-Path (Properties for seamproject-ejb -> Java EE Module Dependencies)</para>
+
+ <figure>
+ <title>Including Libs from EAR to EJB Manifest Class-Path</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/adding_seam_support_to_project/including_libs_from_ear_to_ejb_manifest_class-path.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Include libs from EAR and seamproject-ejb.jar to WAR Manifest Class-Path (Properties for seamproject-war -> Java EE Module Dependencies)</para>
+
+ <figure>
+ <title>Including Libs from EAR and seamproject-ejb.jar to WAR Manifest Class-Path</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/adding_seam_support_to_project/including_libs_from_ear_to_war_manifest_class-path.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Thus we have set our WTP EAR/EJB/WAR projects and now we are ready to add Seam support to them:</para>
+
+ <para>First you have to add Seam support to WAR project: Properties for seamproject-war -> Seam Settings</para>
+
+
+ <figure>
+ <title>Adding Seam Support to WAR Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/adding_seam_support_to_project/adding_seam_support_to_war_project.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para>Set seamproject-war as Main Seam project. All other settings mostly are used by New Seam Entity/Action/Form/Conversation/... Wizards. Thus you can set them as you wish.</para>
+
+ <para>Then you can add Seam support to EJB project: Properties for seamproject-war -> Seam Settings</para>
+
+ <figure>
+ <title>Adding Seam Support to EJB Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/adding_seam_support_to_project/adding_seam_support_to_ejb_project.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>It&s important to set seamproject-war project as main Seam project there.</para>
+ <para>It will allow Seam Tools to use one common Seam model for seamproject-ejb and seamproject-war projects.</para>
+
+ <para>The last step is to clean/build the projects</para>
+
+ <para>That is all. You have added Seam support to your EAR project. </para>
+
+ <figure>
+ <title>Added Seam Support to EAR Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/adding_seam_support_to_project/added_seam_support_to_ear_project.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+</chapter>
\ No newline at end of file
Modified: trunk/seam/docs/reference/en/modules/directory_structure.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/directory_structure.xml 2009-01-21 14:42:10 UTC (rev 13161)
+++ trunk/seam/docs/reference/en/modules/directory_structure.xml 2009-01-21 15:19:05 UTC (rev 13162)
@@ -64,7 +64,7 @@
<para>The project layout for EAR projects is:</para>
<figure>
- <title>Project Layout for WAR projects</title>
+ <title>Project Layout for EAR projects</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/directory_structure/directory_structure_2.png"
More information about the jbosstools-commits
mailing list