4 Replies Latest reply on Aug 1, 2007 10:20 AM by s j

    anyway to findout which ejbs are available remotely/locally

    s j Newbie

      Is there a way to find out at runtime (by enquiring the conatiner ?) whether an EJB is available locally or remotely so that I can access the correct proxy without knowing the deployment details?

      I need to know this so that I can get the benefits of locally available ejbs. One approach could be to try and first look up a local proxy if available. If it is availbale then use it, otherwise look up the remote proxy and use it. But this requires two lookups in the remote proxy case. Can this be optimized further?