4 Replies Latest reply on Jul 29, 2003 4:51 AM by juhalindfors

    JNDI JBoss + WebSphere

    userid

      Hi,

      i have some trouble with connection to WebSphere EJB's from JBoss. Has someone experience with this topic?

      To connect from JBoss I use this settings:
      -----
      Properties props = new Properties();
      props.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
      props.put(Context.PROVIDER_URL, "IIOP://localhost:900");

      InitialContext initCtx = new InitialContext(props);
      -----

      But to get this peace of code working, I need classes from WebSphere. Where are tey, and are there any other additional classes?

      Thanks

        • 1. Re: JNDI JBoss + WebSphere

          The classes would be somewhere in WebSphere distribution. A WebSphere forum might be a more appropriate place to find out where exactly.

          -- Juha

          • 2. Re: JNDI JBoss + WebSphere
            simoncn

            You need IBM JDK, or IBM Portable Client code for any JDK.
            WebSphere client jars are bundled on WebSphere Client CD.

            • 3. Re: JNDI JBoss + WebSphere
              userid

              Now I have the WebSphere Client CD.
              And I wrote an standalone client to access the EJB's on WebSphere. But without an IBM JRE I cant access the EJB's. I tried the plugable client, but it fails. According to IBM the pluggable client only runs under Microsoft OS.

              And so my Question is:
              Has anybody an working solution to communicate from JBoss to WebSphere?
              I know that the main problem is on WebSphere side but this is the only forum I got an answer. Is it possible to run JBoss fine under IBM JRE.

              If all fails, are there any suggestions, how I can exchange information between JBoss and WebSphere with security and transaction?

              Thanks

              All suggestions are welcome

              • 4. Re: JNDI JBoss + WebSphere

                > Is it possible to run JBoss fine under IBM JRE.

                Yes.

                -- Juha