Re: Starting a new web application, using Restlets

2008-03-10 Thread Marcus
Thankyou Jerome, I am so impressed with the helpfulness of people in the Restlet community. It's another reason I am persevering with it! I have adopted the approach and I am now getting the results I was hoping for. I now have some more specific questions which I will post under my original

SSL and KeyStores

2008-03-10 Thread Bruno Harbulot
Hello, Whilst looking into Issue 376 , I've been trying to implement a test that uses HTTPS, since I can't find one in the current test suite. There are a few problems I came across, mainly related to Issue 281

Re: Shut down a Restlet server using kill?

2008-03-10 Thread Aaron Crow
Hi Jerome and All, A related question: Is there a programmatic way to tell the Restlet engine to do a clean shutdown, and if so, what's the contract that it fulfills? I see that there is an Application.stop() method, but I'm a little confused about the purpose it serves. Code diving suggests i

Re: Issue 376

2008-03-10 Thread Bruno Harbulot
Hi Jerôme, I've been busy with other things since I volunteered last week, so I haven't started to work on the getRemoteUser() sub-problem yet, but I think I've got a reasonable patch regarding the client certificates. There are a few problems, though. 1. Even with a clean download of the SV

Re: Streaming multiple large data files through Restlet

2008-03-10 Thread John D. Mitchell
On Fri, Mar 7, 2008 at 7:41 AM, Jon Blower <[EMAIL PROTECTED]> wrote: [...] > Thanks very much to everyone for very helpful responses on this. > Perhaps I should go into a bit more detail about our application. We > are writing an application for climate scientists that allows them to > run cl

Re: Root URIs under Windows

2008-03-10 Thread Paul J. Lucas
On Mar 10, 2008, at 10:22 AM, Jerome Louvel wrote: We made the choice to keep the URI reference unchanged and to provide Reference.decode()/encode() static methods instead. Well, at least update the Javadoc so it specifically says that the strings returned are not decoded. Now, maybe we co

RE: Root URIs under Windows

2008-03-10 Thread Jerome Louvel
Hi Paul, We made the choice to keep the URI reference unchanged and to provide Reference.decode()/encode() static methods instead. Now, maybe we could add getDecodedPath() and similar methods, but it might crop the class. Any thought? Best regards, Jerome > -Message d'origine- > De

RE: ModificationDate of representation of static resource using CLAP protocol

2008-03-10 Thread Jerome Louvel
Hi Keke, I've implemented the suggested change. It will work only if CLAP resource is file based. Checked in SVN trunk. Let me know if it works fine. Best regards, Jerome > -Message d'origine- > De : keke [mailto:[EMAIL PROTECTED] > Envoyé : samedi 8 mars 2008 08:31 > À : discuss@res

Re: Root URIs under Windows

2008-03-10 Thread Paul J. Lucas
On Mar 10, 2008, at 1:45 AM, Thierry Boileau wrote: I've tested this code below with both Restlet 1.1 (snapshot) and Restlet 1.0.8 and it works. Could you tell us more about your code? I have my own classes derived from Directory and DirectoryResource. I override DirectoryResource.handleGet

RE: Streaming multiple large data files through Restlet

2008-03-10 Thread Jerome Louvel
Hi Jon, [...] > Yes, I'm sure we could present our data in any form, either as a > stream or a channel. We have pretty much complete control over the > system. The approach of a limited set of HTTP writer threads sounds > good. OK > If this approach could be completely hidden from me (the

RE: Long stream of IOExceptions from getEntityAsForm

2008-03-10 Thread Jerome Louvel
Hi Sean, Good catch! This is now fixed as suggested in SVN trunk and 1.0 branch. Best regards, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Sean > Envoyé : samedi 8 mars 2008 12:04 > À : discuss@restlet.tigris.org > Objet : Re: Long stream of IOExce

Re: Streaming multiple large data files through Restlet

2008-03-10 Thread Jon Blower
Hi Jerome, Thanks for this - I'm glad that you're interested in supporting this scenario. > In your case, will you be able to produce your dynamic data as an > InputStream or as a ReadableChannel? If so, a limited set of HTTP writer > threads could pull the data from processed Restlet requests

RE: RESTlet XML rendering issues

2008-03-10 Thread Jerome Louvel
Elliot, We just released 1.0.8 and 1.1 M2 so it will take us a little while to reach 1.0.9 and 1.1 M3. Thierry is currently working on automating the refreshing of the snapshot version on the Web site (Zip, exe and Javadocs) daily. Stay tuned. Best regards, Jerome > -Message d'origine--

RE: restlet + spring --- managed resources

2008-03-10 Thread Jerome Louvel
Hi Brian, Please find attached the test case that we use for Spring. It doesn't produce a circular reference issue even if it looks similar to the one you use. Best regards, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Brian Donnovan > Envoyé : same

Re: RESTlet XML rendering issues

2008-03-10 Thread Elliot Long
Superb guys, thanks! Good to know there's an active community backing this up. Any idea when this will make it into the website's downloads section, or will i need to check it out from subversion? -Elliot On 10 Mar 2008, at 14:14, Rob Heittman wrote: Great! I confirmed that trunk now run

Re: Shut down a Restlet server using kill?

2008-03-10 Thread Rob Heittman
I know somebody's already done jsvc integration, though I don't think it's in trunk. I'm going to have to implement procrun integration myself in the next few weeks for a project, unless somebody already has, and cares to contribute it ... hint hint ... - R On Mon, Mar 10, 2008 at 1:37 AM, code

Re: JSR-311 implementation initiative

2008-03-10 Thread Rob Heittman
Thanks for this, Stephan ... I admit to not yet really being sure what I'm going to use JSR 311 for in production, but it's great to get early and practical experience with it in the context of Restlet. On Mon, Mar 10, 2008 at 8:09 AM, Stephan Koops <[EMAIL PROTECTED]> wrote: > Now the code has r

Re: RESTlet XML rendering issues

2008-03-10 Thread Rob Heittman
Great! I confirmed that trunk now runs Elliot's test case on Mac JDK5. On Mon, Mar 10, 2008 at 7:09 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > Hi Rob and Elliot, > > Thanks for nailing this issue. I have applied the patch to SVN trunk (only > renaming getTransformer to createTransformer).

Re: Restlet and Velocity template location.

2008-03-10 Thread Stian Soiland-Reyes
On Wed, Mar 5, 2008 at 8:03 AM, cleverpig <[EMAIL PROTECTED]> wrote: > 1.I put template file in template directory which under > classpath:templates\people.vm,by the way,I use Eclipse to develope > these. > 2.put velocity.properties under classpath: > resource.loader = file I do it like this:

Re: JSR-311 implementation initiative

2008-03-10 Thread Stephan Koops
Hi all, as Jerome announced two month ago, I'm working to implement the JAX-RS API (JSR 311, [2]). Now the code has reached a status, that interested developers could play a little bit with it. You will find a little tutorial in the Restlet wiki [5] and more examples in the project org.restlet.ex

RE: Streaming multiple large data files through Restlet

2008-03-10 Thread Jerome Louvel
Hi Jon, This is a very interesting use case. We should aim at supporting it. Thanks for detailing it so clearly. The Restlet API has the potential to support this scenario, limiting the number of threads to the minimum, but no HTTP server connector currently supports this. Even the Grizzly conne

RE: RESTlet XML rendering issues

2008-03-10 Thread Jerome Louvel
Hi Rob and Elliot, Thanks for nailing this issue. I have applied the patch to SVN trunk (only renaming getTransformer to createTransformer). I have also added the property in the SVN 1.0 branch, without the new method. Best regards, Jerome > -Message d'origine- > De : Rob Heittman [m

RE: Error on server

2008-03-10 Thread Jerome Louvel
Hi Jahid, Are you sure you have updated all the JARs, including the com.noelios.restlet.ext.simple.jar file? I checked the code and the trace has definitely a lower log level. Could you send me the new log trace for 1.0.8? Best regards, Jerome > -Message d'origine- > De : news [mai

Re: Root URIs under Windows

2008-03-10 Thread Thierry Boileau
Hello Paul, I've tested this code below with both Restlet 1.1 (snapshot) and Restlet 1.0.8 and it works. Could you tell us more about your code? best regards, Thierry Boileau public static void main(String[] args) throws Exception { Component component = new Component(); com

Re: Error on server

2008-03-10 Thread Jahid
Hi Jerome, I was using 1.0.7, then i moved to use 1.0.8 as you mentioned on your last post. But still the problem is same. Please if you think that there is some other way to solve this. Please let me know. This is really important for me. Thanks a lot for replying. Regards, Jahid

RE: Error on server

2008-03-10 Thread Jerome Louvel
Hi Jahid, Which version are you using? Check the latest 1.0.8 or 1.1 M2, those messages now have a lower log level preventing their display by default. Best regards, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Jahid > Envoyé : dimanche 9 mars 2008

Re: Read simple POST content

2008-03-10 Thread Thierry Boileau
Hello Peter, if you want to get the raw data, you can use netcat (in listening mode => "nc -l -p ") instead of your server. You will get all headers and message body of the request sent by the mobile phone. best regards, Thierry Boileau On Fri, Mar 7, 2008 at 11:12 PM, Peter Neubauer <[EMAIL PR

RE: Starting a new web application, using Restlets

2008-03-10 Thread Jerome Louvel
Hi Marcus, Your approach to resources modeling sounds good. Resource subclasses, attached to a root router will compose your application. Then you can just attach your application to the component's default virtual host. Once you deploy to a real server with a domain name, you might want to cre