1 Reply Latest reply on Nov 6, 2006 4:08 AM by herkules

    jboss.xml is ignored?

    herkules

      Hi,

      I am trying to configure my EJB3 MDB, but the configuration-name in jboss.xml seems to be skipped (at least in JBossDDObjectFactory).

      It is also not clear to me when the server/default/conf/standardjboss.xml is read by JBoss, it seems it is ignored too. The only class that seems to load it is XmlFileLoader.load(URL alternativeDD), but it is not called by JBoss. I think I made some stupid bug....

      I use JBoss 4.0.5.GA with EJB3 configuration

      my META-INF/jboss.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss>
       <enterprise-beans>
       <message-driven>
       <ejb-name>MailerMDB</ejb-name>
       <destination-jndi-name>queue/email</destination-jndi-name>
       <configuration-name>Email MDB Config</configuration-name>
       </message-driven>
       </enterprise-beans>
      
       <container-configurations>
       <container-configuration extends="Standard Message Driven Bean">
       <container-name>Email MDB Config</container-name>
       <container-pool-conf>
       <MaximumSize>1</MaximumSize>
       <strictMaximumSize>true</strictMaximumSize>
       </container-pool-conf>
       </container-configuration>
       </container-configurations>
      </jboss>
      




        • 1. Re: jboss.xml is ignored?
          herkules

          I realized that this stuff is related to EJB 2.x, to limit pool for EJB3 MDB, I have to use:

          @ActivationConfigProperty(
          propertyName = "maxSession",
          propertyValue = "1")

          Jan