2 Replies Latest reply on Jul 12, 2011 1:56 AM by asookazian

    injecting a dependency from a remote server

    asookazian

      How does one go about injection in a use case which involves more than one app server in the same cluster or in a different cluster?  Underneath the covers, CDI is using JNDI, correct?  Otherwise, we must use web services?

        • 1. Re: injecting a dependency from a remote server
          asookazian

          so to be clear, we have dependency A in server X in cluster 0 and dependency B in server Y in cluster 1.

          • 2. Re: injecting a dependency from a remote server
            asookazian

            From the CDI spec:


            The unrestricted set of bean types for a session bean contains all local interfaces of the bean and their superinterfaces. If
            the session bean has a bean class local view, the unrestricted set of bean types contains the bean class and all superclasses.
            In addition, java.lang.Object is a bean type of every session bean.
            Remote interfaces are not included in the set of bean types.



            So if the object is remote, must we expose/consume web services (SOAP/REST) rather than simply use @Inject?