Add a GBean reference to ServerInfo:
infoFactory.addReference("ServerInfo", ServerInfo.class);Once you have a serverInfo reference simply call resolve, to resolve a File or URI against geronimo.home. If you actually want geronimo.home, call getBaseDirectory() on serverInfo. My guess is you want the resolve method as it handles all sorts of weird platform issues such as paths containing spaces on windows.
-dain
-- Dain Sundstrom Chief Architect Gluecode Software 310.536.8355, ext. 26
On Dec 30, 2004, at 5:40 PM, L. Yeung wrote:
Is there a way to retrieve ${geronimo.home} variable inside a gbean? Thanks.
-len
__________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250
