0 Replies Latest reply on Sep 23, 2002 7:04 PM by tlh1005

    Calling a Weblogic EJB from a Jboss EJB

    tlh1005

      Hello,

      I have stubs from a thirdparty's EJB which is deployed on a remote Weblogic server. I have succesfully connected to this EJB using a standalone Java client. I now wish to connect to their EJB using an EJB I wrote and deployed on Jboss. When trying to get the InitialContext I recieve a netsocket exception as if it cannot even find the remote Weblogic server. Below is a snippet of my code:


      properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      properties.put(Context.PROVIDER_URL, "iiop://xx.xx.xx.xx:7001");
      properties.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");


      I thought I was supposed to use Weblogic's ContextFactory just as I did with the working client I wrote but this did not work. So now I am trying Jboss' factory. Also notice that I have changed the url to be "iiop" rather than Weblogic's proprietary "t3" protocal. But as I said before, it seems it cannot find the server. Any help or a pointer to a tutorial would be greatly appreciated. So far the suggestions I have gotten are to deploy my bean in Weblogic.... surely there is a better option than purchasing a $30,000 appserver.

      ThankYou,
      T. Harris