Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5528

If SingletonStatelessSessionInstancePool is used for a SLSB, container MBean state is reported incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossAS-4.0.5.GA, JBossAS-4.2.2.GA, JBossAS-5.0.0.Beta4
    • Component/s: EJB2
    • Labels:
      None
    • Environment:

      JDK 1.4.2, Windows NT 5.1, Cygwin
      (any other anvironment should do as well, though).

    • Workaround Description:
      Hide

      create()/start()/stop()/destroy() code should be removed from SingletonStatelessSessionInstancePool

      Show
      create()/start()/stop()/destroy() code should be removed from SingletonStatelessSessionInstancePool
    • Estimated Difficulty:
      Low

      Description

      If SingletonStatelessSessionInstancePool instead of regular StatelessSessionInstancePool is used for a SLSB,
      State/StateString JMX attributes
      of the container MBean (jboss.j2ee:jndiName=XXX,plugin=pool,service=EJB)
      are always 8/Registered.

      This is most probably caused by the fact that org.jboss.ejb.plugins.SingletonStatelessSessionInstancePool class
      directly overrides create()/start()/stop()/destroy() operations
      with empty implementations,
      which any MBean derived from ServiceMBeanSupport shouldn't.

      This seems even more useless
      since AbstractInstancePool (the direct superclass of SingletonStatelessSessionInstancePool )
      doesn't override any methods from ServiceMBeanSupport.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aloubyansky Alexey Loubyansky
                Reporter:
                unix_junkie unix_junkie
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: