How to get the latest JNDI variable setting
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > How to get the latest JNDI variable setting




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to get the latest JNDI variable setting  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-08-05 11:40 PM

I have a JNDI variable ("Foo") defined from the websphere console.  In the c
ode I want to always get the latest console setting.

The JNDI documentation indicates that setting Context.AUTHORITATIVE to "true
" should by pass all caching.

My code is:
<code>
Hashtable env = new Hashtable();
env.put(Context.AUTHORITATIVE, "true");
javax.naming.InitialContext ctx = new javax.naming.InitialContext(env);
value = (String) ctx.lookup("Foo");
</code>

It picks up the inital setting of Foo, but never picks up any changes.

Any idea how this is supposed to work??

Thanks,
-- Frank





[ Post a follow-up to this message ]



    Re: How to get the latest JNDI variable setting  
Huub van Thienen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-16-05 11:08 PM

Hi Frank,

This looks like a caching problem. Whenever I modify a JNDI binding (which i
s not very often) I always restart WAS to refresh the caches. This is a rath
er crude solution, but it works for me. Try looking for JNDI and caching, th
ere must be a more civilize
d solution that is less annoying for your users.

Hope this helps,
Huub






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:24 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register