JBoss Community

Defining a generic Dependency

created by Michael Künzli in Beginner's Corner - View the full discussion

Hi

 

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

 

The following basically works:

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

 

 

My problem is the name of the jar auth-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 (perhaps wildcards....)?

 

 

Thank you for your help.

 

Regards

Michael

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community