0 Replies Latest reply on Nov 15, 2010 2:15 AM by mikalfa

    Defining a generic Dependency

    mikalfa Newbie

      Hi

       

      I've got a problem with Service Dependency defined by @Depends annotation.

       

      Example:

      I would like to make a Stateless EJB dependend on another.

       

      The following basically works:

      @Stateless
      @LocalBinding(jndiBinding = MyServiceLocal.JNDI_NAME)
      @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
      @Depends( {
              "jboss.j2ee:ear=my.ear,jar=impl-1.5.0-SNAPSHOT.jar,name=SomeService,service=EJB3" })

       

       

      Problem:

      The name of the jar impl-1.5.0-SNAPSHOT.jar is subject to change.

       

      My question:

      How can I either make the dependency in another way or make it generically (maybe by using wildcards....)?

       

       

      Thanks for any hints.

       

      Regards

      Michael