Re: Trailing slashes in dir names in Restlet's Maven repo

2009-06-11 Thread Jerome Louvel
Hi Aron, Thierry has just deployed a new version of our Web site based on Restlet 2.0. The trailing slashes are now correctly displayed for our Maven repository! Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~

RE: from the org.restlet.data.Request, get the HttpServletRequest

2009-06-11 Thread webpost
thanks Jerome, that was perfect! I'm using the latest Version 2.0 Milestone 3 . ;-) -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2361226

Dynamic restlet/routing discovery

2009-06-11 Thread Jools Enticknap
Hi All, Firstly, as a user of the restlet toolkit for over a year now I'd like to say a big thanks to the authors for developing such a complete and useful implementation. You've saved me many a late night :-) I have been involved in developing a product which is used to manage social networking

Can I use Jetty and/or Tomcat with Restlet?

2009-06-11 Thread webpost
I hope this is server agnostic. Is there a recommended server that I should use? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2361147

JDBC Connection Singleton and Concurrency

2009-06-11 Thread webpost
Hi In order to connect to a MySQL Database I use the singleton pattern to get a Connection Object. I'm wondering if there will be any concurrency problems with that if I have several hundred requests per minute. Is there some sort of best practice for database connection? I've heard about

RE: Re: Re: Last-Modified Header

2009-06-11 Thread Jerome Louvel
Hi Rob, Actually, we did try to facilitate this use case in Restlet 2.0. We introduced the RepresentationInfo class, subclass of Variant and parent of Representation. It contains two properties, “modificationDate” and “tag”, necessary for conditional processing. In ServerResource, there

RE: JDBC Connection Singleton and Concurrency

2009-06-11 Thread Jerome Louvel
Hi Jean, Usage of connection pools sounds like a good idea in your case. Have a look at this project: http://commons.apache.org/dbcp/ Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com

RE: Can I use Jetty and/or Tomcat with Restlet?

2009-06-11 Thread Jerome Louvel
Hi there, No special recommendation. We just leverage the Servlet API so any recent Servlet container should work. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine-

Re: Re: Re: Last-Modified Header

2009-06-11 Thread Rob Heittman
Excellent. I missed that one in the mix of ServerResource newness! I'll try it out on some expensive Representations and publish a benchmark. On Thu, Jun 11, 2009 at 9:23 AM, Jerome Louvel jerome.lou...@noelios.comwrote: Hi Rob, Actually, we did try to facilitate this use case in Restlet

RE: Re: Re: Last-Modified Header

2009-06-11 Thread Jerome Louvel
Cool! This class definitely needs more tests and feed-back to be as perfect as possible when 2.0 RC1 goes out. Cheers, Jerome De : Rob Heittman [mailto:rob.heitt...@solertium.com] Envoyé : jeudi 11 juin 2009 16:06 À : discuss@restlet.tigris.org Objet : Re: Re: Re: Last-Modified Header

2.0m3 and content negotiation

2009-06-11 Thread Fabian Mandelbaum
Hello, what's the status of the content negotiation bug in 2.0m3? is this fixed in current snapshot? I'm still getting application/octet-stream for all media types other than xml with code like this: @Get public Representation represent() throws ResourceException { // Build and return

Restlet with a large dataset

2009-06-11 Thread Jean-Christophe Malapert
Hello, I have a large dataset (a few millions of rows). I am very interesting for the use of restlet framework on my large dataset. Is it possible to transfer a large response by streaming without having memory problems on the server side ? That means, in my case, to be able to make streaming

Restlet with a large dataset

2009-06-11 Thread webpost
Hello, I have a large dataset (a few millions of rows). I am very interesting for the use of restlet framework on my large dataset. Is it possible to transfer a large response by streaming without having memory problems on the server side ? That means, in my case, to be able to make streaming

RE: 2.0m3 and content negotiation

2009-06-11 Thread Jerome Louvel
Hi Fabian, This one has just been fixed in SVN trunk but there more issues pending. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Fabian Mandelbaum

Re: Restlet with a large dataset

2009-06-11 Thread Bruno Harbulot
Hi Jean-Christophe, You should be able to keep the memory usage small if you write to the OutputStream directly, using an OutputRepresentation: return new OutputRepresentation(MediaType.APPLICATION_XML) { @Override public void write(OutputStream

Trouble Getting Query Parameters

2009-06-11 Thread Andrew Moore
I'm new to Restlet and I'm having trouble accessing the query parameters in my ServerResource. I'm using a URI comparable to: http://localhost:8080/myapp/zipcodes/{zip}/locations/{location}/users/{user}?callback=someCallbackFunction The client is written in EXT.js and is expecting me to wrap

Re: Trouble Getting Query Parameters

2009-06-11 Thread Andrew Moore
I'm starting to understand what may be going on... when EXT.js makes the request for my URI, the query string looks like this: ?_dc=1244741620627callback=stcCallback1001 And the org.restlet.engine.util.FormReader is not able to parse the parameters. Here's the error: 06/11/2009 11:33:40.640

Re: Trouble Getting Query Parameters

2009-06-11 Thread Andrew Moore
I just did a test with curl both with and without that initial ampersand in there... yes, that ampersand is causing the parsing problem. Since this is EXT.js creating this, I guess I'll have to figure out a way to change it or something. Should the FormReader be able to handle an initial