You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by "L. Yeung" <l_...@yahoo.com> on 2004/12/31 02:40:21 UTC
Geronimo Home Variable
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
Re: Geronimo Home Variable
Posted by Dain Sundstrom <ds...@gluecode.com>.
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