Hello Friends,
I have a problem in reading a resource bundle.
I have a properties file with elements
driver=oracle.jdbc.driver.OracleDriver.
url=jdbc
racle:thin:@csc-3far0699:1521:tibco.
username=scott.
password=tiger.
It is reading fine with resouce bundle. But i retrived the keys using getkeys() into an Enumeration keys. When I looped it with keys.hasNextElement() and in loop Iam printing keys.nextElement()......it is looping infinitly by printing only the key username.
for(Enumeration keys=bundle.getKeys();keys.hasMoreElements()
{
System.out.println(keys.nextElement());
}