Hi Ranchers,
Some of my beans read stuff from property files.
My earlier approach was using the Property class and IO to read the files. They were kept in
tomcat's bin folder and it worked alright.
But when I changed the approach to using PropertyResourceBundle class, the files could no more be read from that location. After traversing through forums I came to the conclusion that I must keep the files inside WEB-INF/Classes and that too in the same package structure as my classes. Also I must call the file with its package path (say com.dcall.dc.myProp).
On the contrary, my code when kept on WebSphere 4.0 works finele where I keep the property files inside "WebSphere/AppServer/properties" folder and specify simply the proerty file name to PropertyResourceBundle class's setBundle().
Any thoughts?
Debashish
--------------
SCJP2, SCWCD 1.4, PMP, ITIL Foundation, Cloud Foundry Certified Developer, AWS SA Associate