3 Replies Latest reply on Apr 1, 2015 5:41 PM by jaikiran

    Wildfly Circular Dependency Deployment

    vaughnmb

      How do you deploy EJB circular dependencies in Wildfly?

       

      For example...

       

      EJB Project A  is injected into EJB Project B.   EJB Project B is injected into EJB Project A.   How can you deploy those because Wildfly throws the error of  "EJB Project A was rolled back with the following failure message: "JBAS014771: Services with missing/unavailable dependencies".   It is missing EJB Project B so it won't deploy.

        • 1. Re: Wildfly Circular Dependency Deployment
          jaikiran

          Circular EJB dependencies shouldn't be a problem. What exactly does the code look like?

          • 2. Re: Wildfly Circular Dependency Deployment
            vaughnmb

            The problem is that Wildfly checks for valid EJB dependencies on deployment.  Can you turn that option off?   If you have circular EJB dependencies, you can't ever deploy the two projects unless you could somehow deploy them simultaneously

            • 3. Re: Wildfly Circular Dependency Deployment
              jaikiran

              So these 2 EJBs are part of 2 different top level deployments? If not, then it shouldn't fail. The EJB spec allows circular dependencies within the application.

               

              Anyway, there isn't any config option to disable skipping these kind of dependencies. More details about your application packaging and the EJBs might help us understand the deployment better and maybe someone can then suggest a solution or workaround.