Mantis - Resin
Viewing Issue Advanced Details
58 minor always 03-28-05 00:00 03-28-05 00:00
ferg  
 
urgent  
closed 3.0.12  
3.0.12 no change required  
none    
none  
0000058: InitialContext lookup
RSN-49
Prashant Khanwale

cxt = new InitialContext(props)

cxt.lookup("foo/bar");


Notes
(0000061)
ferg   
03-28-05 00:00   
(from Prashant Khanwale)

 I just figured this out. I was supplying a java.util.Properties constructed using default properties. Now if you look up a propertiy, it is OK, but if you use it as a Hashtable, it ignores the default properties. Since the naming API requires a hastable, Resin uses the properties I supplied as a Hashtable , finds nothing inside it (correctly) and gives me its own context. So I do not think this is an issue with Resin. This is a problem with the Properties class. Thank you for your time. You might want to post this on your FAQ's to help others who might be in my situation.