[jboss-cvs] jboss-seam/examples/seamdiscs/resources/WEB-INF ...

Peter Muir peter at bleepbleep.org.uk
Tue Apr 3 14:32:37 EDT 2007


  User: pmuir   
  Date: 07/04/03 14:32:37

  Modified:    examples/seamdiscs/resources/WEB-INF  components.xml
  Log:
  Lots of improvements for seamdiscs
  
  Revision  Changes    Path
  1.2       +55 -49    jboss-seam/examples/seamdiscs/resources/WEB-INF/components.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: components.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamdiscs/resources/WEB-INF/components.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- components.xml	28 Mar 2007 19:12:46 -0000	1.1
  +++ components.xml	3 Apr 2007 18:32:37 -0000	1.2
  @@ -6,26 +6,24 @@
               xmlns:mail="http://jboss.com/products/seam/mail"
               xmlns:framework="http://jboss.com/products/seam/framework"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  -            xsi:schemaLocation=
  -                "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd 
  +	xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd 
                    http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.2.xsd
                    http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
                    http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd
                    http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd 
                    http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd">
   
  -   <core:init debug="@debug@" jndi-pattern="@jndiPattern@"/>
  +	<core:init debug="@debug@" jndi-pattern="@jndiPattern@" />
        
      <core:manager concurrent-request-timeout="500" 
  -                 conversation-timeout="120000" 
  -                 conversation-id-parameter="cid" 
  -                 conversation-is-long-running-parameter="clr"/>
  +		conversation-timeout="120000" conversation-id-parameter="cid"
  +		conversation-is-long-running-parameter="clr" />
       
      <core:managed-persistence-context name="entityManager"
                                 auto-create="true"
  -               persistence-unit-jndi-name="java:/seamdiscsEntityManagerFactory"/>
  +		persistence-unit-jndi-name="java:/seamdiscsEntityManagerFactory" />
   
  -   <core:ejb installed="@embeddedEjb@"/>
  +	<core:ejb installed="@embeddedEjb@" />
      
      <drools:rule-base name="securityRules">
          <drools:rule-files>
  @@ -33,17 +31,19 @@
          </drools:rule-files>
      </drools:rule-base>
   
  -   <security:identity authenticate-method="#{authenticator.authenticate}"
  -                           security-rules="#{securityRules}"/>
  +	<security:identity
  +		authenticate-method="#{authenticator.authenticate}"
  +		security-rules="#{securityRules}" />
      
      <event type="org.jboss.seam.notLoggedIn">
  -       <action expression="#{redirect.captureCurrentView}"/>
  +		<action expression="#{redirect.captureCurrentView}" />
      </event>
      <event type="org.jboss.seam.postAuthenticate">
  -       <action expression="#{redirect.returnToCapturedView}"/>
  +		<action expression="#{redirect.returnToCapturedView}" />
      </event>
      
  -   <mail:mail-session host="localhost" port="2525" username="test" password="test" />
  +	<mail:mail-session host="localhost" port="2525" username="test"
  +		password="test" />
           
      <!-- For use with jBPM pageflow or process management -->
      <!--  
  @@ -53,6 +53,12 @@
      </core:jbpm>
      -->
      
  -   <framework:entity-query name="discs" ejbql="select d from Disc d"/>
  +	<framework:entity-query name="discs" ejbql="select disc from Disc disc" order="disc.name ASC" />
  +	
  +	<framework:entity-query name="artists" ejbql="select artist from Artist artist" order="artist.name DESC" />
  +	
  +	<framework:entity-home entity-class="org.jboss.seam.example.seamdiscs.model.Disc" name="discHome"/>
  +	
  +	<factory name="disc" value="#{discHome.instance}"/>
         
   </components>
  
  
  



More information about the jboss-cvs-commits mailing list