User: starksm 
  Date: 01/07/14 00:25:40

  Modified:    src/resources/perf/META-INF ejb-jar.xml
  Added:       src/resources/perf/META-INF secure-ejb-jar.xml
                        secure-jboss.xml
  Log:
  Add security overhead performance tests
  
  Revision  Changes    Path
  1.5       +8 -1      jbosstest/src/resources/perf/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/resources/perf/META-INF/ejb-jar.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ejb-jar.xml       2001/07/13 17:15:23     1.4
  +++ ejb-jar.xml       2001/07/14 07:25:40     1.5
  @@ -1,4 +1,4 @@
  -<?xml version="1.0" encoding="Cp1252"?>
  +<?xml version="1.0" encoding="UTF-8"?>
   
   <ejb-jar>
      <description>Performance test</description>
  @@ -20,6 +20,13 @@
            <ejb-class>org.jboss.test.perf.ejb.ClientSessionBean</ejb-class>
            <session-type>Stateful</session-type>
            <transaction-type>Container</transaction-type>
  +         <ejb-ref>
  +            <ejb-ref-name>ejb/Session</ejb-ref-name>
  +            <ejb-ref-type>Session</ejb-ref-type>
  +            <home>org.jboss.test.perf.interfaces.SessionHome</home>
  +            <remote>org.jboss.test.perf.interfaces.Session</remote>
  +            <ejb-link>Session</ejb-link>
  +         </ejb-ref>
         </session>
         <session>
            <ejb-name>Probe</ejb-name>
  
  
  
  1.1                  jbosstest/src/resources/perf/META-INF/secure-ejb-jar.xml
  
  Index: secure-ejb-jar.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- A version of the perf.jar deployment descriptor that requires
  security for every bean.
  -->
  <ejb-jar>
     <description>Secure Performance test</description>
     <display-name>Secure PerfTest</display-name>
  
     <enterprise-beans>
        <session>
           <ejb-name>Session</ejb-name>
           <home>org.jboss.test.perf.interfaces.SessionHome</home>
           <remote>org.jboss.test.perf.interfaces.Session</remote>
           <ejb-class>org.jboss.test.perf.ejb.SessionBean</ejb-class>
           <session-type>Stateful</session-type>
           <transaction-type>Bean</transaction-type>
        </session>
        <session>
           <ejb-name>ClientSession</ejb-name>
           <home>org.jboss.test.perf.interfaces.SessionHome</home>
           <remote>org.jboss.test.perf.interfaces.Session</remote>
           <ejb-class>org.jboss.test.perf.ejb.ClientSessionBean</ejb-class>
           <session-type>Stateful</session-type>
           <transaction-type>Container</transaction-type>
           <ejb-ref>
              <ejb-ref-name>ejb/Session</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <home>org.jboss.test.perf.interfaces.SessionHome</home>
              <remote>org.jboss.test.perf.interfaces.Session</remote>
              <ejb-link>Session</ejb-link>
           </ejb-ref>
        </session>
        <session>
           <ejb-name>Probe</ejb-name>
           <home>org.jboss.test.perf.interfaces.ProbeHome</home>
           <remote>org.jboss.test.perf.interfaces.Probe</remote>
           <ejb-class>org.jboss.test.perf.ejb.ProbeBean</ejb-class>
           <session-type>Stateless</session-type>
           <transaction-type>Bean</transaction-type>
        </session>
        <session>
           <ejb-name>ProbeCMT</ejb-name>
           <home>org.jboss.test.perf.interfaces.ProbeHome</home>
           <remote>org.jboss.test.perf.interfaces.Probe</remote>
           <ejb-class>org.jboss.test.perf.ejb.ProbeBean</ejb-class>
           <session-type>Stateless</session-type>
           <transaction-type>Container</transaction-type>
        </session>
           <session>
              <description>Transacted stateless session bean</description>
              <ejb-name>TxSession</ejb-name>
              <home>org.jboss.test.perf.interfaces.TxSessionHome</home>
              <remote>org.jboss.test.perf.interfaces.TxSession</remote>
              <ejb-class>org.jboss.test.perf.ejb.TxSessionBean</ejb-class>
              <session-type>Stateless</session-type>
              <transaction-type>Container</transaction-type>
          </session>
  
        <entity>
           <ejb-name>Entity</ejb-name>
           <home>org.jboss.test.perf.interfaces.EntityHome</home>
           <remote>org.jboss.test.perf.interfaces.Entity</remote>
           <ejb-class>org.jboss.test.perf.ejb.EntityBean</ejb-class>
           <persistence-type>Container</persistence-type>
           <prim-key-class>org.jboss.test.perf.interfaces.EntityPK</prim-key-class>
           <reentrant>True</reentrant>
           <cmp-field>
              <field-name>the_key</field-name>
           </cmp-field>
           <cmp-field>
              <field-name>the_value</field-name>
           </cmp-field>
        </entity>
  
        <entity>
           <ejb-name>Entity2</ejb-name>
           <home>org.jboss.test.perf.interfaces.Entity2Home</home>
           <remote>org.jboss.test.perf.interfaces.Entity</remote>
           <ejb-class>org.jboss.test.perf.ejb.Entity2Bean</ejb-class>
           <persistence-type>Container</persistence-type>
           <prim-key-class>org.jboss.test.perf.interfaces.Entity2PK</prim-key-class>
           <reentrant>True</reentrant>
           <cmp-field>
              <field-name>key1</field-name>
           </cmp-field>
           <cmp-field>
              <field-name>key2</field-name>
           </cmp-field>
           <cmp-field>
              <field-name>key3</field-name>
           </cmp-field>
           <cmp-field>
              <field-name>the_value</field-name>
           </cmp-field>
        </entity>
  
     </enterprise-beans>
  
      <assembly-descriptor>
           <security-role>
              <role-name>TheDuke</role-name>
           </security-role>
  
           <method-permission>
              <role-name>TheDuke</role-name>
              <method>
                 <ejb-name>Session</ejb-name>
                 <method-name>*</method-name>
              </method>
              <method>
                 <ejb-name>ClientSession</ejb-name>
                 <method-name>*</method-name>
              </method>
              <method>
                 <ejb-name>Probe</ejb-name>
                 <method-name>*</method-name>
              </method>
              <method>
                 <ejb-name>ProbeCMT</ejb-name>
                 <method-name>*</method-name>
              </method>
              <method>
                 <ejb-name>TxSession</ejb-name>
                 <method-name>*</method-name>
              </method>
              <method>
                 <ejb-name>Entity</ejb-name>
                 <method-name>*</method-name>
              </method>
              <method>
                 <ejb-name>Entity2</ejb-name>
                 <method-name>*</method-name>
              </method>
           </method-permission>
  
          <container-transaction>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>requiredToSupports</method-name>
              </method>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>txRequired</method-name>
              </method>
              <method>
                  <ejb-name>TxSession</ejb-name>
                   <method-name>requiredToMandatory</method-name>
              </method>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>requiredToRequiresNew</method-name>
              </method>
              <trans-attribute>Required</trans-attribute>
          </container-transaction>
          
          <container-transaction>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>txSupports</method-name>
              </method>
              <trans-attribute>Supports</trans-attribute>
          </container-transaction>
          
          <container-transaction>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>txMandatory</method-name>
              </method>
              <trans-attribute>Mandatory</trans-attribute>
          </container-transaction>
            
          <container-transaction>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>*</method-name>
              </method>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>txRequiresNew</method-name>
              </method>
              <trans-attribute>RequiresNew</trans-attribute>
          </container-transaction>
  
          <container-transaction>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>txNever</method-name>
              </method>
              <trans-attribute>Never</trans-attribute>
          </container-transaction>
          
          <container-transaction>
              <method>
                  <ejb-name>TxSession</ejb-name>
                  <method-name>txNotSupported</method-name>
              </method>
              <trans-attribute>NotSupported</trans-attribute>
          </container-transaction>
      </assembly-descriptor>
  
  </ejb-jar>
  
  
  
  1.1                  jbosstest/src/resources/perf/META-INF/secure-jboss.xml
  
  Index: secure-jboss.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!-- The jboss.xml descriptor for the secure-perf.jar
  This descriptor redefines the JNDI names of the beans in the ejb-jar.xml
  descriptor so that there is no conflict with the perf.jar deployment.
  -->
  <jboss>
     <security-domain>java:/jaas/other</security-domain>
  
    <enterprise-beans>
      <session>
        <ejb-name>Session</ejb-name>
        <jndi-name>secure/perf/Session</jndi-name>
      </session>
      <session>
        <ejb-name>ClientSession</ejb-name>
        <jndi-name>secure/perf/ClientSession</jndi-name>
        <ejb-ref>
           <ejb-ref-name>ejb/Session</ejb-ref-name>
           <jndi-name>Session</jndi-name>
        </ejb-ref>
      </session>
      <session>
        <ejb-name>Probe</ejb-name>
        <jndi-name>secure/perf/Probe</jndi-name>
      </session>
      <session>
        <ejb-name>ProbeCMT</ejb-name>
        <jndi-name>secure/perf/ProbeCMT</jndi-name>
      </session>
      <session>
        <ejb-name>TxSession</ejb-name>
        <jndi-name>secure/perf/TxSession</jndi-name>
      </session>
      <entity>
        <ejb-name>Entity</ejb-name>
        <jndi-name>secure/perf/Entity</jndi-name>
      </entity>
      <entity>
        <ejb-name>Entity2</ejb-name>
        <jndi-name>secure/perf/Entity2</jndi-name>
      </entity>
  
    </enterprise-beans>
  
  </jboss>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to