Managing a JPA/Hibernate session

2009-02-17 Thread Peter Becker
Hello, I'm using Restlet above a JPA persistence layer with Hibernate as provider. That works reasonably well, but unfortunately I haven't found a way to handle the persistence sessions properly. What I would like to see is that a new session is opened whenever needed and is closed after all r

Re: GZIP Encoding and content length

2009-02-17 Thread Tamás Cservenák
Cool, now only to release it ;) Thanks, ~t~ On Tue, Feb 17, 2009 at 6:34 PM, Thierry Boileau < thierry.boil...@noelios.com> wrote: > Hello Tamás > > Thanks for your report, the fix is available in the svn repository. It > will be available in 4 hours in the future snapshot. > > best regards, > T

Re: GZIP Encoding and content length

2009-02-17 Thread Thierry Boileau
Hello Tamás Thanks for your report, the fix is available in the svn repository. It will be available in 4 hours in the future snapshot. best regards, Thierry Boileau > Hi there, > > after upgrading from 1.1.1 to 1.1.2 of restlet, i discovered a strange > problem. We are using Encoder in this w

[Restlet] ?media= only available for registered types

2009-02-17 Thread Paul Austin
I've been looking at the TunnerlFilter and have noticed that the ?media= query string extension only works if the media type is registered as a MetadataExtension with the the MetadataService. Is this by design?Or would it be possible if a metadata entry was not found to set the mediaType based on t

RE: Re: Using ChallengeGuard

2009-02-17 Thread Jerome Louvel
Hi there, The default security model (Orga., Group, User and even Role) is fully optional from the point of view of the new Authenticator/Authorizer/Guard filter classes. The idea is that for people without anything special in place to cover those needs, to provide a solid and extensible default

RE: JAX-RS and media types

2009-02-17 Thread Jerome Louvel
Hi guys, Fabio has uploaded a small reproducible test case: "Issue with content-negotiation and JAX-RS" http://restlet.tigris.org/issues/show_bug.cgi?id=730 My feeling is that this should be fixed in the next 1.1.3 release which is about one month away. Would that be good for you Fabio and fe

RE: Using roles & state of the snapshot (was: Re: Using ChallengeGuard)

2009-02-17 Thread Jerome Louvel
Hi Simon, To complete my previous answer: the default security model proposed by Restlet (Organization/User/Group/Role) is optional. They are not required to make the Authenticator/Authorizer/Verifier/Guard/ChallengeGuard classes work. So, the usage scenario that you propose should work fine. T