On JBoss 5 I can use http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd to configure one of attribute is readonly
When I want to migrate my application from JBoss 5 to Wildfly, I will use the jboss-service.xml to configure MBean and it's properties.
But I don't know how to configure an attribute as readonly.