[jboss-jira] [JBoss JIRA] Commented: (AS7-1869) Specifying dependency on JPA service.

Scott Marlow (JIRA) jira-events at lists.jboss.org
Fri Sep 30 16:05:26 EDT 2011


    [ https://issues.jboss.org/browse/AS7-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631613#comment-12631613 ] 

Scott Marlow commented on AS7-1869:
-----------------------------------

https://github.com/scottmarlow/jboss-as/blob/master/jpa/util/src/main/java/org/jboss/as/jpa/util/JPAServiceNames.java 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

        


More information about the jboss-jira mailing list