1 Reply Latest reply on Jan 18, 2008 5:09 AM by fmsoares .

    Make WebLogic use a JNP RMI implementation

    fmsoares . Newbie

      Hi!

      WebLogic uses normally a proprietary protocol called T3 in it's RMI implementation, but I would like to connect to an application server that is running on JBOSS, which the protocol is JNP. When I try to connect I'm getting a java.net.UnknownHostException: Unknown protocol: 'JNP'.
      Does anyone know how can I make WebLogic use a JNP RMI implementation instead?

      Thanks in advance,

      fmsoares

        • 1. Re: Make WebLogic use a JNP RMI implementation
          fmsoares . Newbie

          Posted: Fri Jan 18, 2008 10:05 am Post subject:

          --------------------------------------------------------------------------------

          The problem is resolved now.

          I can now connect weblogic 10 web application to application server running on a JBOSS Server by:

          1. Include jbossall-client.jar from $JBOSS_HOME/client in the application classpath

          2. Set the system properties

          System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");

          3. Get the connection

          Connection conn = Factory.Connection.getConnection("jnp://host:1099/...")
          ....