You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Fredrik Liden <fl...@translate.com> on 2006/06/20 09:56:30 UTC
Deployment advice
Hello,
I have a Web App where Cayenne is deployed using one of the 3 Web
deployment options. I'm wondering if it is possible at the same time to
be able to get a cayenne context from a call that is not related to a
httpServlet request or a HttpSession. So in addition to using it in
Jsp's and Servlets, could I set it up so that it can also be called from
say Spring Scheduled tasks or DWR calls where the functionality is in
JavaBeans that don't have a httpRequest (or so I think)
Thanks,
Fredrik
Re: Deployment advice
Posted by Kevin Menard <km...@servprise.com>.
You can create DataContexts whenever you like. I think the norm is to
have one per session and then one per the whole application, but I've
created ones in Tapestry listener methods with no problems. The only
thing that may need to be considered is loading the configuration if
you'll be doing it completely outside the servlet container.
--
Kevin
On Tue, 20 Jun 2006 03:56:30 -0400, Fredrik Liden <fl...@translate.com>
wrote:
> Hello,
>
> I have a Web App where Cayenne is deployed using one of the 3 Web
> deployment options. I'm wondering if it is possible at the same time to
> be able to get a cayenne context from a call that is not related to a
> httpServlet request or a HttpSession. So in addition to using it in
> Jsp's and Servlets, could I set it up so that it can also be called from
> say Spring Scheduled tasks or DWR calls where the functionality is in
> JavaBeans that don't have a httpRequest (or so I think)
>
> Thanks,
>
> Fredrik