We are converting from JBoss 4.2 to JBoss AS 5.1. I'm converting our SARs from using deployment descriptors to using annotations, and I cannot figure out how to set attribute values using annotations.
Our jboss-service.xml file for JBoss 4.2 looks something like this (names changed to protect the innocent):
Using annotations for 5.1, the source code is as follows:
@Management
public interface MessageBusServiceMBean {
...
}
@Service is not exactly a replacement for MBeans. So trying to replace the jboss-service.xml with @Service isn't really correct.