2 Replies Latest reply on Jan 4, 2005 3:42 PM by Daniel Nanto

    adding to container-configurations in standardjboss.xml

    Daniel Nanto Newbie

      Is there a way that I can add a new container configuration without modifying the standardjboss.xml file found under conf/? I would like to add a new standardjboss.xml file to my .ear file which just lists my new container configuration, and makes it available to all apps in that ear.

      I've tried adding a file called standardjboss.xml to the root directory of my ear jar, I've added to meta-inf/ in the same ear file. And I've tried adding it to my ejb.jar file. But none of this seems to work. Below I can show you what I have in this new standardjboss.xml file.

      <jboss>
      
       <container-configurations>
       <container-configuration extends="Standard Stateless SessionBean">
       <container-name>MyTestConfiguration</container-name>
       <container-interceptors>
       <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</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">MyNewInterceptor</interceptor>
       <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
       <interceptor transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
       <!-- BMT -->
       <interceptor transaction="Bean">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor>
       <interceptor transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor>
       <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
       <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
       </container-interceptors>
       </container-configuration>
      
       </container-configurations>
      
      </jboss>


      any ideas on where to add this new standardjboss.xml file so that it will be seen, or do I have to just add it to the standardjboss.xml file under conf/ and make it globally available?

      -Dan