[jboss-cvs] jboss-seam ...

Gavin King gavin.king at jboss.com
Tue Jun 26 23:33:39 EDT 2007


  User: gavin   
  Date: 07/06/26 23:33:39

  Modified:    jboss-seam   build.xml
  Added:       jboss-seam   seam2migration.txt
  Log:
  migration guide
  
  Revision  Changes    Path
  1.219     +1 -0      jboss-seam/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/build.xml,v
  retrieving revision 1.218
  retrieving revision 1.219
  diff -u -b -r1.218 -r1.219
  --- build.xml	27 Jun 2007 03:22:19 -0000	1.218
  +++ build.xml	27 Jun 2007 03:33:39 -0000	1.219
  @@ -1219,6 +1219,7 @@
   		<copy file="seam" todir="${dist.dir}" />
   		<copy file="seam-text.g" todir="${dist.dir}" />
   		<copy file="seam.bat" todir="${dist.dir}" />
  +		<copy file="seam2migration.txt" todir="${dist.dir}" />
   		<replace file="${dist.dir}/build.xml">
   			<replacetoken>
   				<![CDATA[${name}-${version}.${patchlevel}]]>
  
  
  
  1.1      date: 2007/06/27 03:33:39;  author: gavin;  state: Exp;jboss-seam/seam2migration.txt
  
  Index: seam2migration.txt
  ===================================================================
  Seam 2.0 Migration Guide
  ========================
  Before you get started with Seam2, you'll need to make a few changes to 
  your existing code and configuration. This process should not be too
  painful - if you get stuck, just refer back to the updated Seam examples.
  
  Supported container environments
  --------------------------------
  Seam 2.0 has been tested on the following containers:
  
  * JBoss 4.2 (it is possible to run Seam2 on JBoss 4.0.5 by upgrading JSF)
  * Tomcat 6.0 (Tomcat 5.5 is not compatible with JSF 1.2)
  * GlassFish V2
  * OC4J 11g Technology Preview
  
  Migration to JSF 1.2
  --------------------
  Seam 2.0 requires JSF 1.2. We now recommend Sun's JSF RI as the most 
  mature JSF implementation, and this is the version that ships with
  most EE 5 application servers, including JBoss 4.2. To switch to the
  JSF RI, you'll need to make some changes to web.xml:
  
  * remove the MyFaces StartupServletContextListener
  * remove the Ajax4JSF filter and mappings
  * rename org.jboss.seam.web.SeamFilter to 
               org.jboss.seam.servlet.SeamFilter
  
  Also note that for the JSF RI, client-side state saving is not required.
  
  You'll also need to make some changes to faces-config.xml:
  
  * Remove the (Tranactional)SeamPhaseListener declaration
  * Remove the SeamELResolver declaration, if you have one
  * Change the declaration of SeamFaceletViewHandler to the standard 
               com.sun.facelets.FaceletViewHandler
  
  Since Seam 1.2, you didn't need any declarations of SeamExceptionFilter
  or SeamRedirectFilter in web.xml, just a single declaration of
  SeamFilter. Make sure you've already made that change.
  
  Code migration
  --------------
  Seam's built-in components have undergone a major reorganization
  designed to organize them for easier learning, and to isolate 
  dependencies upon particular technologies like JSF into specific
  packages.
  
  * Persistence-related components moved to org.jboss.seam.persistence
  * jBPM related components moved to org.jboss.seam.bpm
  * JSF-related components moved org.jboss.seam.faces
  * Servlet-related components have moved to org.jboss.seam.web
  * Components related to asynchronicity moved to org.jboss.seam.async
  * i18n-related components moved to org.jboss.seam.international
  * The Pageflow component moved to org.jboss.seam.pageflow
  * The Pages component moved to org.jboss.seam.navigation
  
  Code which depends on these APIs will need to be changed to reflect
  the new Java package names.
  
  Annotations have also been reorganized:
  
  * BPM-related annotations moved to org.jboss.seam.annotations.bpm
  * JSF-related annotations moved to org.jboss.seam.annotations.faces
  * Interceptor annotations moved to 
            org.jboss.seam.annotations.intercept
  * Annotations related to asynchronicity moved to 
            org.jboss.seam.annotations.async
  * @RequestParameter moved to org.jboss.seam.annotations.web
  * @WebRemote moved to org.jboss.seam.annotations.remoting
  * @Restrict moved to org.jboss.seam.annotations.security
  * Exception handling annotations moved to 
            org.jboss.seam.annotations.exception
  
  Migration of components.xml
  ---------------------------
  The new packaging comes with new namespaces and new schemas for
  components.xml. The namespace for components in package
  
      org.jboss.seam.foobar
      
  Is now:
  
      http://jboss.com/products/seam/foobar
      
  And the schema is:
  
      http://jboss.com/products/seam/foobar-2.0.xsd
  
  You'll need to update your components.xml file to reflect that chance.
  Take a look at the Seam examples if you're unsure of exactly what you
  need to do.
  
  Finally, some declarations must be removed completely:
  
  * remove <conversation-is-long-running-parameter> from <core:init/>
  * remove <core:ejb/>
  * remove <core:microcontainer/>
  * replace <core:transaction-listener/> with 
            <transaction:ejb-transaction/>
  
  Migration to JBoss Embedded
  ---------------------------
  Support for deployment to JBoss Embeddable EJB3 and JBoss Microcontainer
  has been removed. Instead, the new JBoss Embedded distribution gives you
  a full set of EE-compatible APIs with simplified deployment.
  
  For testing, you need the jars in Seam's lib/ directory, together with
  the bootstrap/ directory in your classpath. SeamTest will automatically
  start the container. Refer to the Seam examples, or seam-gen, if you have
  trouble.
  
  For Tomcat deployment, follow the instructions in the user guide. You no
  longer need any special configuration or packaging for Tomcat deployments.
  
  Note that JBoss Embedded is able to bootstrap a datasource from a -ds.xml
  file, so there is no longer a need for jboss-beans.xml.
  
  
  
  
  



More information about the jboss-cvs-commits mailing list