1 Reply Latest reply: Feb 1, 2008 3:21 AM by 807581 RSS

    stateful session when migrating ap server from Weblogic7.0 to JBoss3.2

    807581
      Hi everybody, I�m going to migrate my application server from Weblogic7.0 to JBoss3.2.

      Then, there are problems how to make a sentence about stateful session for JBoss.
      This is the source of weblogic-ejb-jar.xml that I have for weblogic, which contains the sentence about stateful session.

      <weblogic-ejb-jar.xml>
      -------Start-------
      
      <?xml version="1.0"?><!DOCTYPE weblogic-ejb-jar PUBLIC
        '-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN'
        'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
      
      <weblogic-ejb-jar>
           <weblogic-enterprise-bean>
                <ejb-name>AcceptProcInvoker</ejb-name>
                     <stateful-session-descriptor>
                          <stateful-session-cache>
                               <max-beans-in-cache>1000</max-beans-in-cache>
                               <idle-timeout-seconds>180</idle-timeout-seconds>
                               <cache-type>NRU</cache-type>
                          </stateful-session-cache>
                          @EJB_CLUSTER_SETTING@
                          <allow-concurrent-calls>true</allow-concurrent-calls>
                     </stateful-session-descriptor>
                     <jndi-name>jp.co.ABCproduct.beans.ejb.test.accept.AcceptProcInvoker</jndi-name>
           </weblogic-enterprise-bean>
      </weblogic-ejb-jar>
      -------End-------
      I find a sample from JBoss source which may be able to replace it with.
      It is standardjboss.xml, which contains a sentence of stateful session.

      I would like to know that it is correct one which can be used for replacing weblogic-ejb-jar.xml.
      If so, how can I make a sentence of <jndi-name> in the standardjboss.xml?, or is there any other one which I should add the sentence?

      <standardjboss.xml>
      -------Start-------
      
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss PUBLIC
         "-//JBoss//DTD JBOSS 3.2//EN"
         "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
      
      <!-- ===================================================================== -->
      <!--  Standard JBoss EJB Configurations                                    -->
      <!-- ===================================================================== -->
      <!-- $Id: standardjboss.xml,v 1.47.2.24 2005/10/12 12:05:36 aloubyansky Exp $ -->
      
      <jboss>
         <enforce-ejb-restrictions>false</enforce-ejb-restrictions>
      
      
      
            <container-configuration>
               <container-name>Clustered Stateless SessionBean</container-name>
               <call-logging>false</call-logging>
               <invoker-proxy-binding-name>clustered-stateless-rmi-invoker</invoker-proxy-binding-name>
               <container-interceptors>
                  <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
                  <interceptor>org.jboss.ejb.plugins.CleanShutdownInterceptor</interceptor>
                  <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
                  <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
                  <!-- CMT -->
                  <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
                  <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
                  <interceptor transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
      
                  <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
               </container-interceptors>
               <instance-pool>org.jboss.ejb.plugins.StatelessSessionInstancePool</instance-pool>
               <instance-cache></instance-cache>
               <persistence-manager></persistence-manager>
               <container-pool-conf>
                  <MaximumSize>100</MaximumSize>
               </container-pool-conf>
            </container-configuration>
      
      
            <container-configuration>
               <container-name>Standard Stateful SessionBean</container-name>
               <call-logging>false</call-logging>
               <invoker-proxy-binding-name>stateful-rmi-invoker</invoker-proxy-binding-name>
               <container-interceptors>
                  <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
                  <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
                  <!-- CMT -->
                  <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
                  <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
                  <interceptor transaction="Container">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</interceptor>
                  
                  <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
                  <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
               </container-interceptors>
               <instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache</instance-cache>
               <persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager</persistence-manager>
               <container-cache-conf>
                  <cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy>
                  <cache-policy-conf>
                     <min-capacity>50</min-capacity>
                     <max-capacity>1000000</max-capacity>
                     <remover-period>1800</remover-period>
                     <max-bean-life>1800</max-bean-life>
                     <overager-period>300</overager-period>
                     <max-bean-age>600</max-bean-age>
                     <resizer-period>400</resizer-period>
                     <max-cache-miss-period>60</max-cache-miss-period>
                     <min-cache-miss-period>1</min-cache-miss-period>
                     <cache-load-factor>0.75</cache-load-factor>
                  </cache-policy-conf>
               </container-cache-conf>
               <container-pool-conf>
                  <MaximumSize>100</MaximumSize>
               </container-pool-conf>
            </container-configuration>
      
      
      
      </jboss>
      
      
      -------End-------