geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <dsundst...@gluecode.com>
Subject Re: Geronimo Home Variable
Date Fri, 31 Dec 2004 01:59:52 GMT
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


Mime
View raw message