1 Reply Latest reply on Nov 16, 2004 2:41 PM by frito

    Active classes (threads) in JBoss

    alexm

      Hello,

      This is probably more a general J2EE question than JBoss, but anyway. I want to have a thread that polls the database periodically. This would be called an active class in the unified software development process. However, how can I ensure that only one instance of such a class exists in a JBoss cluster?

      thx
      Alex

        • 1. Re: build the ejb jar file
          frito

          You must set cmpversion="2.0" property on ejbjar task in order to make Ant look for jbosscmp-jdbc.xml file instead of jaws.xml, the one used with CMP version 1 in JBoss.