RE: Re: Post JSON Object with GWT ClientResource

2011-09-29 Thread Jason Richards
Thank you for the example. It got me further along. Now I am getting a 415 error from the server and I am not sure if it is on the client side or server side. Here is my client code: Button btnSendTest = new Button(Send Test); final Label testLabel = new Label(Test Label);

RESTLet 2.0.9 - Multiple @Get and @Post Annotations or other alternatives ?

2011-09-29 Thread D G
Hello, I am new to RESTLet and using 2.0.9. What I want to do is have multiple methods with @Get @POST annotation. I have access to the VO classes (value objects) and so I don't need to use JSON or XML representation. I have used the excellent tutorial available at

2.0.3: re-deploying a JAXRS application without restarting the JVM

2011-09-29 Thread Simon Temple
I'm trying to all add classes to my JaxRs application at run-time but this seems to hang Restlet - I can connect to the HTTP port but get no response. Is it possible to hot deploy JaxRS classes? I currently do something a bit like this to redeploy: comp.stop this.application.stop();

Re: 2.0.3: re-deploying a JAXRS application without restarting the JVM

2011-09-29 Thread Stephan Koops
Hi Simon, AFAIK there is nothing implemented in the JAX-RS runtime to support this. I can't say anything about the hot deployment of Restlet. Do you tried to denbug it? I meen: Start in debug mode, try again and interrupt, if Restlet hangs. best regards    Stephan -Ursprüngliche

RE: Is Multiple Get and Put annotations Possible?

2011-09-29 Thread D G
I don't see a section called Annotations Parameter. Am I missing some thing here ? Also, is there any tutorial or documentation with details @ annotation in RestLet. Thanks, Deep -- View this message in context:

Re: Is Multiple Get and Put annotations Possible?

2011-09-29 Thread Stephan Koops
Hi Deep, if you mean @Get(...) @Get(...) public ... { } That is not allowed from Java, so you can't compile it. If you mean @Get(...) @Put(...) public ... { } Than it is nonsense from REST point of view. For the documentation I can't help you. bets regards   Stephan -Ursprüngliche

RE: Re: 2.0.3: re-deploying a JAXRS application without restarting the JVM

2011-09-29 Thread Simon Temple
I found that once I stopped the component: comp.stop I could no longer call my JaxRs resources. If I restart the application like this after I've loaded new resource classes they work :-) ArrayListjavax.ws.rs.core.Application apps = new ArrayListjavax.ws.rs.core.Application( ); apps.add(

RE: Re: 2.0.3: re-deploying a JAXRS application without restarting the JVM

2011-09-29 Thread Simon Temple
Stephan Looking at the JAX-RS plugin I see what you mean. I'd need some sort of clear() method to operate on: private final ResourceClasses resourceClasses; I tried running clear() on getRootResourceClasses() but it's unmodifiable :-( Looking at the Restlet interface I'm not sure I can find

RE: Re: 2.0.3: re-deploying a JAXRS application without restarting the JVM

2011-09-29 Thread Simon Temple
Apologies for the multiple postings... IMHO, I think setApplications() should not Add the given applications to the available applications I think it should *replace* the available applications with those given. wdyt? --

RE: Re: 2.0.3: re-deploying a JAXRS application without restarting the JVM

2011-09-29 Thread Simon Temple
Added a change to JaxRsrestlet.java @SuppressWarnings(deprecation) public JaxRsRestlet(Context context, RoleChecker roleChecker, MetadataService metadataService) { super(context); this.extensionBackwardMapping = new ExtensionBackwardMapping(

Re: Re: 2.0.3: re-deploying a JAXRS application without restarting the JVM

2011-09-29 Thread Stephan Koops
Hi Simon, as I implemented the JAX-RS-extension three and a half years ago, the JaxRsRestlet was add-only, because all the things in a javax.ws.rs.Application are added to the Restlet-JAX-RS-Instance. So, if you remove, you have to see, what providers and so on you have to remove, and which