1 Reply Latest reply on Mar 10, 2010 10:43 AM by rnicholson10

    Define maxSession for an MDB via XML

    rnicholson10

      I can define the number of MDBs as an annotation on my class:

       

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

       

      so I have a singleton for this MDB.

       

      Do you know if it's possible to define this via an XML file. I deploy the same MDB on several different environments (as part of an ear). I only want a singleton on one of those environments (it has an old, slow db).

       

      I know I can set maximumSize in standardjboss.xml but this would cover all MDBs which I do not want. I need to be able to set the maxSession on a case by case basis depending on where this is deployed.

       

      R.