Yes, there are some magic annotations to control the management view of ProfileService. We
actually expose the TransactionManager as ManagedObject already, by adding:
|
<annotation>@org.jboss.managed.api.annotation.ManagementObject(name="TransactionManager",componentType=
| @org.jboss.managed.api.annotation.ManagementComponent(type = "MCBean",
subtype = "JTA"),
|
targetInterface=com.arjuna.ats.jbossatx.jta.TransactionManagerServiceMBean.class)</annotation>
|
Although the generated default view is most probably not usable for persistence, as it
would try to persist all properties.
Basically there are 2 ways of controlling this view: 1) by annotating the beans directly
or 2) creatng a separate class and let profileservice create the ManagedObject based on
this.
This is basically what we do for JMS destinations e.g.:
http://anonsvn.jboss.org/repos/jbossas/trunk/messaging/src/main/org/jboss...
There is also a wiki article about the available management annotations:
http://www.jboss.org/community/wiki/ManagedObjects
We are currently also working on a xml format describing the management object instead of
annotations and additional configuration capabilities for AS6.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249887#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...