Thanks
Regards,
Rodney

On Fri, Aug 28, 2009 at 10:51 AM, viola.lu <[email protected]> wrote:

>
> Maybe you can refer to ServerProxy from below, and call its method
> getGeronimoHome().
>
> https://svn.apache.org/repos/asf/geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/ServerProxy.java
>
> Jack Cai wrote:
> >
> > I think you can simply get it from system property using this key:
> > org.apache.geronimo.home.dir. I'm not 100% percent sure that this will
> > always work (for example, when server is started using gshell commands,
> > e.g., start-server) - you can do a test.
> >
> > There is another way to fall back, which is to get the ServerInfo gbean
> > from
> > kernel, and read the home info from it. But that will make your code
> > depend
> > all Geronimo classes.
> >
> > -Jack
> >
> > On Thu, Aug 27, 2009 at 2:58 PM, Rodney B. Cabahug
> > <[email protected]
> >> wrote:
> >
> >> Hello. How do you get the value for the geronimo.home or the
> installation
> >> directory of geronimo from inside a session bean?
> >> Regards,
> >> Rodney
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/getting-the-geronimo.home-value-inside-a-session-bean-tp25167289s134p25183296.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>

Reply via email to