[jboss-dev-forums] [Design of POJO Server] - Re: profile service overview?

emuckenhuber do-not-reply at jboss.com
Mon Aug 17 07:04:07 EDT 2009


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/jms/server/destination/QueueServiceMO.java

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#4249887

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249887



More information about the jboss-dev-forums mailing list