Re: client perfomance question

2007-07-02 Thread Evgeny Shepelyuk
Hi Jerome! Ok so if i understood correctly. I can use Client instance inside my applications (not restlet meaning of application, but just external app that contacts my RESTful service) as singleton ? I can create on instance of clietn, set my settings to it and share it to all my JSP/classes

Restlet and Velocity template location.

2007-07-02 Thread Stuart Owen
Hi, I'm trying to use the TemplateRepresentation for the Velocity extension as part of a webapp, but I am having problems configuring the template location. The API docs for TemplateRepresentation species that only the template name is required and the full path is resolved by the configuration.

Re: client perfomance question

2007-07-02 Thread Jerome Louvel
Hi Evgeny, Yes, you can use a Client instance as a singleton as you describe. There is no need for a full Restlet application for that. Cheers, Jerome Evgeny Shepelyuk a écrit : Hi Jerome! Ok so if i understood correctly. I can use Client instance inside my applications (not restlet

Re: Second 1.1 beta 1 snapshot

2007-07-02 Thread Sean Landis
- Added JAXB 2.0 and StAX 1.0 libraries. Hi Jerome, Is there a reason that JAXB 2.1.3 wasn't used? Thanks, Sean

Re: form submission fails to redirect on success

2007-07-02 Thread Avi Flax
Jerome: That seems like a great solution. I took a look at Response.java and I really like that you also added a setLocationRef() method, but kept setRedirectRef() and getRedirectRef(), both for backwards compatibility and because sometimes those methods really do make sense. Very nice! Thanks,

Re: Restlet and Velocity template location.

2007-07-02 Thread Avi Flax
Stuart, I myself had some issues with this recently, when developing my first Restlet app. However, my app is standalone, i.e. it doesn't use the Servlet adapter to run inside a Servlet Server, it uses one of the included extensions to embed an HTTP server. I think that may make a big difference

RE: Second 1.1 beta 1 snapshot

2007-07-02 Thread Jerome Louvel
Hi Sean, The reason was that upon JavaSE 6.0 support (with includes JAXB 2.0) in Restlet 2.0, I wanted to be automatically compatible. But, now that I think about it again, we could also maintain a JAXB 2.1 extension along with a org.restlet.resource.JaxbRepresentation class added to Restlet

Re: access local file in tomcat container

2007-07-02 Thread Thierry Boileau
Hello Julien, if you want to access files that are located inside your WebContent directory, you can use the integrated war client just as follow: Representation rep = getContext().getDispatcher().get(war:///files/file.xml).getEntity(); and then use the representation as you want. NB: