I have a singleton startup ejb A which depends on another singleton startup ejb B which is in another module. I added depends on annotation but the deployment failed with no ejb found exception.
Then I moved the startup ejb to the module where the other startup ejb is placed. The startup ejb are initializing fine now.
Then I tried injecting the singleton ejb A using inject annotation in a stateless ejb from another module and the deployment failed with no ejb exception.
Can anyone help me fix this issue.
P.S Also I would like to know how to use dependson annotation when the startup singleton ejb are in different modules. I used the jarname.jar#EjbName but it did not work.