We are trying to put some values into the JBoss global JNDI, which will make the 
values accessible across several apps that do not share codebases.  Basically, we are 
storing the component version numbers as a String in the global JNDI.  The idea is 
that we could do something like this:


  | Context ctx = new InitialContext();
  | String version = (String) ctx.lookup("MyCompany/Application/Version");
  | 

I have been able to successfully do a bind and lookup on the value.  The problem is 
that it seems that JBoss is somehow caching values across restarts (or I am just 
totally confused).  I am working with different versions of our components (I have 
verified that the correct versions are out there) and at least half the time it shows 
the wrong versions, which I can only attribute to some sort of persistence/caching 
issue.  The weirdest part of it all is that I have verified that the value I am 
putting in is correct (i.e. I have debugged using JBoss IDE/Eclipse and have inspected 
the value of the version and it is correct when I put it in).

If anyone has any ideas for this problem I would greatly appreciate any input.

Cheers,

Ben


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823393#3823393

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823393


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to