Re: RequestCycle.get() in WebResource

2008-03-07 Thread Johan Compagner
see for example Image that one can old an Resource directly to make a session relative resource so yes resources can be serialized On Fri, Mar 7, 2008 at 5:31 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > Johan, thanks a lot for your explanations! > > On 07.03.2008, at 15:47, Johan Compagner wr

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Kaspar Fischer
Johan, thanks a lot for your explanations! On 07.03.2008, at 15:47, Johan Compagner wrote: do you need a transaction around the resource when only the lastModifiedTimeStamp is ask for? Yes, unfortunately. is your resource really cachable? I am writing a WebResource that returns files from

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Johan Compagner
head request must be really fast because the happen a lot and you should not be loading so much then So you just have to see if you can create a resourcestream that only has the right timestamp johan On Fri, Mar 7, 2008 at 12:31 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > I should add tha

Re: How to enclode WebResource requests in transaction (Was: RequestCycle.get() in WebResource)

2008-03-07 Thread Johan Compagner
do you need a transaction around the resource when only the lastModifiedTimeStamp is ask for? is your resource really cachable? johan On Fri, Mar 7, 2008 at 2:15 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > I have a general question on how to wrap transaction boundaries around > requests >

How to enclode WebResource requests in transaction (Was: RequestCycle.get() in WebResource)

2008-03-07 Thread Kaspar Fischer
I have a general question on how to wrap transaction boundaries around requests to a WebResource. As discussed in the thread http://markmail.org/message/tbpg65xd5x26v7xf there are two possible requests: an ordinary web request (with a RequestCycle) and a HEAD request (where no RequestCycle

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Johan Compagner
yes there is not request cycle when doing resources why do you need it? johan On Fri, Mar 7, 2008 at 1:06 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > On 07.03.2008, at 13:01, lars vonk wrote: > > > I guess you can't. Since you are in the Application init method I > > don't think there is a

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Kaspar Fischer
On 07.03.2008, at 13:01, lars vonk wrote: I guess you can't. Since you are in the Application init method I don't think there is a requestcycle available (request cycles represents the processing of a request). I am not trying to get the request cycle inside my application's init(), but in get

Re: RequestCycle.get() in WebResource

2008-03-07 Thread lars vonk
I guess you can't. Since you are in the Application init method I don't think there is a requestcycle available (request cycles represents the processing of a request). Lars On Fri, Mar 7, 2008 at 12:19 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > How can I get hold of the current request cycl

Re: RequestCycle.get() in WebResource

2008-03-07 Thread Kaspar Fischer
I should add that I want the cycle in order to access the context of my external content repository. I am setting up this context as described in http://markmail.org/message/varxr2or2ba6tr7g . On 07.03.2008, at 12:19, Kaspar Fischer wrote: How can I get hold of the current request cycle in a sub

RequestCycle.get() in WebResource

2008-03-07 Thread Kaspar Fischer
How can I get hold of the current request cycle in a subclass of WebResource? In public final class RepositoryFileResource extends WebResource { /* ... */ public IResourceStream getResourceStream() { RequestCycle cycle = RequestCycle.get(); cycle is null. P.S. I am regi