You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Lon Varscsak <lo...@gmail.com> on 2014/08/21 04:44:01 UTC
Getting to the ServerRuntime
I have a static method in a library that I need to get access to the
ServerRuntime (created in a Tapestry application). How would I go about
doing something like this?
Thanks,
Lon
Re: Getting to the ServerRuntime
Posted by Markus Reich <ma...@markusreich.at>.
Hi,
you can access via servletContext
CayenneRuntime runtime = WebUtil.getCayenneRuntime(getServletContext());
Meex
2014-08-21 4:44 GMT+02:00 Lon Varscsak <lo...@gmail.com>:
> I have a static method in a library that I need to get access to the
> ServerRuntime (created in a Tapestry application). How would I go about
> doing something like this?
>
> Thanks,
>
> Lon
>
--
*Markus Reich*
Waldweg 62
6393 St. Ulrich am Pillersee
www.markusreich.at / www.meeximum.at
markus.reich@markusreich.at