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?
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.