Re: Returning data after PUT/POST

2009-01-20 Thread Jean-Philippe Steinmetz
Based on the way i've currently constructed my app this may not be possible. If I want to add a resource named car I perform a PUT on a url like http://localhost/myapp/car/ instead of http://localhost/myapp/car/15. This is because I do not want the client to be responsible for managing identifiers

RESTlet + Spring

2009-01-20 Thread Jean-Philippe Steinmetz
Hi All, I'm working on integrating restlet and spring for use in a web app to be run under Tomcat. After reading up on the Spring extension (thank you Jerome) I have decided to go the restlet as the main controller route. This is due to the fact that Spring is only being used as a Dao implementati

RE: HttpRequest suggestion

2009-01-20 Thread Jerome Louvel
Hi Rémi, Thanks for the patch, that helped me fix this issue more quickly. I added more documentation, reverted the order of "forwardedAddresses" to the one in the HTTP header and added a member variable to store the "address" property. Also, I've added a "ciua" variable in Resolver to get the

RE: media type adaptor

2009-01-20 Thread Jerome Louvel
Hi Tim, Thanks for the frank feed-back. I do like type safety-ness very much but I don't see how the usage of annotations would help here. My understanding is that there are two ways to deal with annotations: 1. At compile time, using 'javac' (Java 6) or 'apt' (Java 5) 2.

RE: media type adaptor

2009-01-20 Thread Jerome Louvel
Sounds good Cliff, I think that the Tunnel and Metadata services are very flexibly and should let you achieve what you need. Let me know if something isn't clear. Best regards, Jérôme Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Tec

Re: media type adaptor

2009-01-20 Thread Rhett Sutphin
Hi, One small comment re: >@Variant("xml") >Representation toXml(); I might make the annotation @RepresentsVariant("xml") (or similar) to allow the possibility for @AcceptsVariant("xml") or @StoresVariant("xml"). Rhett On Jan 20, 2009, at 2:21 PM, Jerome Louvel wrote: > Hi Tim, >

RE: Re: Re: Tomcat appears to swallow Allow: header

2009-01-20 Thread Jerome Louvel
Hi Rob, That is really weird, I've checked the again code in branch 1.1 and in trunk : both are identical. The changes were only made in the ServletCall#sendResponse() method. I would suggest to double check that your 1.1 build does contain the fix or to trace it down manually. Let me know! Be

Re: RESTlet + Spring

2009-01-20 Thread Rhett Sutphin
Hi Jean-Philippe, At first glance, the error seems to be a generic spring error -- that one of the wired dependencies is of the wrong type. Looking at your XML, I wonder if it is failing here: > value="persistenceUnitManager"/> > I think those should be "ref" instead of "v

RE: Re: Browse a Directory from a web application inside jboss

2009-01-20 Thread Jerome Louvel
Hi Ruben, Your component should be automatically started on first request handling. But there might be something not fully initialized on the first call. To workaround this, I would suggest to use the "init-method" attribute on your component element in the Spring XML. Best regards, Jérôme

Re: Returning data after PUT/POST

2009-01-20 Thread Rhett Sutphin
Hi Jean-Philippe, > Based on the way i've currently constructed my app this may not be > possible. If I want to add a resource named car I perform a PUT on a > url like http://localhost/myapp/car/ instead of http://localhost/myapp/car/15 > . This is because I do not want the client to be resp

RE: Issue 694

2009-01-20 Thread Jerome Louvel
Hi Kevin, I've checked all options and couldn't find any option to control the reopening of tickets. However, I've noticed that you aren't a member of the Restlet project on Tigris. That might explain why... I've just sent out an invitation to your Tigris ID/Mail. Also, your comment did pr

RE: StackOverflowError

2009-01-20 Thread Jerome Louvel
Hi Nicholas, The extra check seems like a good idea. I've checked in the change in SVN 1.1 branch and SVN trunk. 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: RESTlet + Spring

2009-01-20 Thread Jean-Philippe Steinmetz
I'm using maven to manage all the dependencies. It's possible something is incorrectly done in my pom. For Spring I am using 2.5.6 for spring-core, spring-context and spring-web. I am using 2.0.8 for spring-hibernate3 and spring-jpa. For restlet I am using 1.1.1 for everything. Here is my pom.xml

Re: Issue 694

2009-01-20 Thread Kevin Conaway
Thanks Jerome On Tue, Jan 20, 2009 at 4:53 PM, Jerome Louvel wrote: > Hi Kevin, > > I've checked all options and couldn't find any option to control the > reopening of tickets. > > However, I've noticed that you aren't a member of the Restlet project on > Tigris. That might explain why... I've j

RE: RESTlet + Spring

2009-01-20 Thread Jerome Louvel
Hi Jean-Philippe, I've noticed that we declare a dependency on Spring 2.5 and not on the latest 2.5.6. This may be the cause of your issue. I've just updated the dependency in SVN branch 1.1 and trunk. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~

Re: Returning data after PUT/POST

2009-01-20 Thread Donald S Strong
Hi Jean-Philippe, > If I want to add a resource named car I perform a PUT on a url like http://localhost/myapp/car/ instead of http://localhost/myapp/car/15. I agree with Rhett, use POST and then GET. POST http://localhost/myapp/car creates the car object with a new ID and redirects to the URI