[
https://issues.jboss.org/browse/AS7-1869?page=com.atlassian.jira.plugin.s...
]
Scott Marlow commented on AS7-1869:
-----------------------------------
https://github.com/scottmarlow/jboss-as/blob/master/jpa/util/src/main/jav...
shows the new class method that can call to get the ServiceName for the JPA service (in
jpa-util module).
// get the JPA service that you want RiftSaw to depend on
ServiceName jpaService = JPAServiceNames.getJPAServiceName();
// Your probably already building the RiftSaw service via code like this.
ServiceBuilder riftSawServiceBuilder = serviceTarget.addService(riftSawServiceName,
RiftSawService);
// specify that RiftSaw depends on the JPA service
riftSawServiceBuilder.addDependency(jpaService);
// start the RiftSaw service
riftSawServiceBuilder.install();
Specifying dependency on JPA service.
-------------------------------------
Key: AS7-1869
URL:
https://issues.jboss.org/browse/AS7-1869
Project: Application Server 7
Issue Type: Feature Request
Components: JPA / Hibernate
Affects Versions: 7.0.1.Final
Reporter: Jeff Yu
Assignee: Scott Marlow
Fix For: 7.1.0.Beta1
In RiftSaw project, we want to make sure when we starting that RiftSaw service, the JPA
service has been started already. So we need to a way to specify this dependency.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira