OT: Re: RESTlet + Spring

2009-01-21 Thread Rhett Sutphin
Hi Jean-Philippe, That is a spring problem, not a Restlet problem, so you're right to post to the spring forums. Just this once, though: it looks like the error you'd get if (as in the code you posted earlier) you have: The problem is value="persistenceUnitManager" -- yo

Re: Returning data after PUT/POST

2009-01-21 Thread Rhett Sutphin
> If you are both suggesting using POST to add an entry why use PUT > then? It seems to make PUT somewhat irrelevant unless performing an > update. PUT is useful for updates. It's also useful when the client determines the resource's URL. This latter case is pretty common -- some systems

Re: Returning data after PUT/POST

2009-01-21 Thread John D. Mitchell
On Wednesday 2009.01.21, at 10:56 , Jean-Philippe Steinmetz wrote: [...] > If you are both suggesting using POST to add an entry why use PUT > then? It seems to make PUT somewhat irrelevant unless performing an > update. This is a coming misunderstanding in coming to REST. For more informat

Re: Auto-Attachment of Resources to Router

2009-01-21 Thread Rhett Sutphin
Hi Jean-Philippe, On Jan 21, 2009, at 1:07 PM, Jean-Philippe Steinmetz wrote: > Quick question about attaching URI patterns and resource classes to > the router. Is there a way to make this happen more automagically > with annotations or some other mechanism? Adding each one by hand > will

Re: media type adaptor

2009-01-21 Thread Tim Peierls
On Tue, Jan 20, 2009 at 3:21 PM, Jerome Louvel wrote: > The other way would be to automatically generate Java source code based on > those annotations to hard code the dispatching. But I'm not sure you want to > go on this road which seems slippery to me, especially under Java 5 where it > would

Re: Returning data after PUT/POST

2009-01-21 Thread Jean-Philippe Steinmetz
Thanks for all the help. If you are both suggesting using POST to add an entry why use PUT then? It seems to make PUT somewhat irrelevant unless performing an update. I'm going to have to do some rethinking. I'm mainly using this rest service for passing serialized objects back and forth between

Auto-Attachment of Resources to Router

2009-01-21 Thread Jean-Philippe Steinmetz
Hello again, Quick question about attaching URI patterns and resource classes to the router. Is there a way to make this happen more automagically with annotations or some other mechanism? Adding each one by hand will get unwieldy and requires touching the main Application class every time I want

Re: RESTlet + Spring

2009-01-21 Thread Jean-Philippe Steinmetz
Hi again, I've tried posting this question on the Spring forums but haven't gotten any bites yet. I am hooking up my hibernate data source and so forth in Spring and am getting an error I can't quite figure out. org.springframework.beans.factory.BeanCreationException: Error creating bean with nam

RE: Re: Attaching a org.restlet.Directory to SpringRouter.

2009-01-21 Thread santoshkumar . babalad
I need the Context object to instantiate org.restlet.Directory(or its subclass). Since component in my case is a servlet container(tomcat 6), how/where do I get the context required for creating a directory? Below is how my config looks- WEB.XML: test com.noelios.restlet.ext.spring.Re

Re: Attaching a org.restlet.Directory to SpringRouter.

2009-01-21 Thread Ruben Hernando
hi! you have to attach a Directory: .

Attaching a org.restlet.Directory to SpringRouter.

2009-01-21 Thread santoshkumar . babalad
Hello, I am building a rest styled web app using restlet. Its integrated with spring using RestletFrameworkServlet and routes requests using SpringRouter. I am not able to attach a web directory to the router. I think if I fill up "??" in the following code, i would be through, Can some one hel

RE: RESTlet + Spring

2009-01-21 Thread Jerome Louvel
Hi Jean-Philippe, Good to hear! To customize the status page, have a look at the StatusService class and related property for your Application. Best regards, Jérôme Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-fou

Re: RESTlet + Spring

2009-01-21 Thread Jean-Philippe Steinmetz
Ok i've changed my depedencies to use restlet 1.1-SNAPSHOT and 2.5 for spring. I am getting what looks like a running system. Is there any way to customize this page... The server has not found anything matching the request URI You can get technical details here