Accessing JNDI from Standalone JAVA application - Weblogic

This is a discussion on Accessing JNDI from Standalone JAVA application - Weblogic ; Hi, I want to access the JNDI tree from my=20 standalone java application. (ie I have=20 one weblogic server contains all my ejbs and client - swing - application w= hich accesses that. )=20 Here I don't want to ship ...

+ Reply to Thread
Results 1 to 2 of 2

Accessing JNDI from Standalone JAVA application

  1. Default Accessing JNDI from Standalone JAVA application

    Hi,
    I want to access the JNDI tree from my=20
    standalone java application. (ie I have=20
    one weblogic server contains all my ejbs and client - swing - application w=
    hich accesses that. )=20
    Here I don't want to ship weblogic.jar=20
    file to the client with swing application=20
    because it is of ~ 20 MP.
    Any other way to specify the INITIAL_CONTEXT_FATORY class.
    My code is=20
    Hashtable env =3D new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFac=
    tory");
    env.put(Context.PROVIDER_URL, DTEConfig.PROVIDER_URL);
    But since I don't want to give the=20
    weblogic.jar bundle to my client, how he=20
    could manage this with out weblogic.jndi.WLInitialContextFactory=20
    with him to get the initialContext ?
    -Rajan Kumar




  2. Default Re: Accessing JNDI from Standalone JAVA application


    You can strip out the jndi related classes from the weblogic.jar which can =
    be distributed
    to the client installation. I don't think you will be violating any bea lic=
    ensing
    policies with this.

    Rajan Kumar <k.rajan@lntinfotech.com> wrote:
    >Hi,
    > I want to access the JNDI tree from my=20
    >standalone java application. (ie I have=20
    >one weblogic server contains all my ejbs and client - swing - application
    >which accesses that. )=20
    > Here I don't want to ship weblogic.jar=20
    >file to the client with swing application=20
    >because it is of ~ 20 MP.
    > Any other way to specify the INITIAL_CONTEXT_FATORY class.
    > My code is=20
    >Hashtable env =3D new Hashtable();
    >env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFa=

    ctory");
    >env.put(Context.PROVIDER_URL, DTEConfig.PROVIDER_URL);
    > But since I don't want to give the=20
    >weblogic.jar bundle to my client, how he=20
    >could manage this with out weblogic.jndi.WLInitialContextFactory=20
    >with him to get the initialContext ?
    >-Rajan Kumar
    >
    >




+ Reply to Thread