Below jboss-service.xml is working fine in Jboss6.1 and it is not working in wildfly10
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="test.TestService"
name="abc:service=TestService">
<depends>jboss.web.deployment:war=/axis2</depends>
<attribute name="SubscriptionList">
<subscription-list>
<mbean name="jboss.system:type=Server">
<notification type="org.jboss.system.server.started"/>
<notification type="org.jboss.system.server.stopped"/>
</mbean>
</subscription-list>
</attribute>
</mbean>
</server>
The attributes <depends> and <attribute name="SubscriptionList"> are creating issues during deployment. Could anybody help me to migrate the above jboss-service.xml to wildfly 10?