Problems related to unbind of jndi in weblogic cluster.

Posted on 2009-12-30
Last Modified: 2013-12-10
I have 4 Weblogic 9.2 servers in cluster.

And the JNDIs are maintained in the weblogic cluster, using the following code:
Hashtable ht = new Hashtable();
ht.put(WLContext.REPLICATE_BINDINGS, "true");
ht.put(WLContext.ALLOW_EXTERNAL_APP_LOOKUP, "true");
Context ctx= new InitialContext(ht);

While adding the new jdni property works absolutely fine (when a new property is added on one server it gets reflected onto the other servers in the cluster).

The deletion of the jndi property thats giving problems, the property is removed only from the server where the property deletion is initiated, it remains as it is on other servers.

what I suspect is that Context.unbind() id not propogated accross the servers in cluster as it is in the case of context.bind(), need help in the matter and its kinda urgent.

Thanks - humanonomics.
Question by:humanonomics
    LVL 4

    Expert Comment

    Hi ,

    Here we have to consider few points, above code snippet is present in u r application code right ? If you better undeploy the application and delete the temporary files and then deploy. If the cluster communication is workign properly then, it all the managed servers in the clusters should update their local JNDI Tree with Cluster level JNDI.

    Is the clustering happening properly in other areas like .... r u able to replicate u r sessions ?

    Other wise you can increase the logging level to get more information from the servers or please test your multicast communcation.


    LVL 7

    Accepted Solution

    found the solution, rather the root of the problem, the weblogic implementation of jndi works in following manner:
    for adding new JNDI, its replicated properly accross all the servers.
    For Deletion (unbind) and updation (rebind), the replication works in a selective way, if the property is added via say server1, and if the property is deleted / updated on server1 then it will be reflected accross all the servers. But if a property is added via server1 and updated/deleted via server2 then, it will not be reflected accross the cluster, will only change stuff on server2.

    right now I am working on the work around.

    Thanks -- humanonomics
    LVL 4

    Expert Comment

    thanks for the info.
    LVL 7

    Author Comment

    no problem :-)

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Getting exception while initializing beans in spring 1 32
    method argument as final 1 54
    changePi Challenge 15 57
    json example 39 81
    I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now