How to define dependency between Service Archive Resource - SAR and DataSource in Red Hat JBoss Enterprise Application Platfor 6.x?
Issue
-
If migration process has been performed from
JBoss EAP 5.xtoJBoss EAP 6.x, there should be configuration issue of definingdependency between DataSource and Services. -
JBoss EAP 5.xhas<depends>tag inDataSource file (*-ds.xml)to define dependency on other services, whereas this kind of configuration is removed fromJBoss EAP 6.xand single filestandalone*.xmlordomain.xmlintroduced to provide DataSource entry. -
In
JBoss EAP 5.xtheSAR - Service Archive Resources provided Mbeans dependencycould be defined using<depends>tag. -
If such tags are being used in DataSource entry of
standalone*.xmlordomain.xmlinJBoss EAP 6.x, then following kind of exceptions will be thrown at the time of server start-up as it is not supported inJBoss EAP 6.xwhere as@org.jboss.ejb3.annotation.Serviceand@org.jboss.ejb3.annotation.Managementare no longer supported which could be used to define Services.
JBAS014775: New missing/unsatisfied dependencies:
service jboss.mbean.service."jboss.as:subsystem=datasources,data-source=MySqlDS".create (missing) dependents: [service jboss.mbean.service."service.server.monitor:service=MyMonitor".create]
service jboss.mbean.service."jboss.as:subsystem=datasources,data-source=MySqlDS".start (missing) dependents: [service jboss.mbean.service."service.server.monitor:service=MyMonitor".start]
Environment
- Red Hat JBoss Enterprise Application Platform
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
