Jerome Louvel | 1 Jan 2010 12:52
Gravatar

RE: Restlet GWT RPC 2.0

Hi Kevin,

Happy new year! Quick reply: 

1) I suggest that you have a look at this blog post:
http://blog.noelios.com/2009/12/17/restlet-a-restful-middleware-for-gwt-gae-
and-android/

2) Have a look at this tutorial:
http://wiki.restlet.org/docs_2.0/13-restlet/181-restlet/303-restlet.html

2) Please use a recent 2.0 snapshot to make the tutorial work:
http://www.restlet.org/downloads/unstable

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 : Kevin Daly [mailto:kedaly <at> sqm.ca] 
Envoyé : jeudi 31 décembre 2009 17:35
À : discuss <at> restlet.tigris.org
Objet : RE: Restlet GWT RPC 2.0

To give some more insight on the problem. When I run the code in the
debugger the code fails on line 229 of ClientAdapter.java. 

This line.
(Continue reading)

Bryan Hunt | 1 Jan 2010 15:56
Picon
Gravatar

Restlet 2.0 & GWT 2.0 Dev Mode

I'm starting to look at using Restlet 2.0 with GWT 2.0.  The docs for setting up a project:

http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/144-restlet/186-restlet.html

talk about setting up the old GWT Hosted Mode.  The new Dev Mode seems to be using Jetty instead of Tomcat, and
there doesn't seem to be any web.xml files for configuring the shell servlet.  Are there any new docs on how
to set up a project using Restlet 2.0 with GWT 2.0 Dev Mode?

Bryan

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434081

Rob Heittman | 1 Jan 2010 16:18
Gravatar

Re: Restlet 2.0 & GWT 2.0 Dev Mode

We should write some now that GWT 2.0 is not a moving target any more.  When working with Jetty and Dev Mode under 2.0 trunk, I have always just used the ServerServlet to attach Restlet to a path.  I do not believe it is really possible any more to attach Restlet to the root of the container (/), at least not without surgery to GWT's DefaultServlet, which in turn is a modified version of Jetty's that understands how to handle GWT modules ... and I hope we don't have to attack that.


All I do in practice, in my GWT 2.0 client applications, is make sure the root of any RESTful resources is configurable, and set it differently in Dev Mode than in production.  Then I usually attach Restlet (usually a redirector to my "real" Restlet server side running somewhere else) to /r under GWT using ServerServlet, same as any other JEE container.

If that practice sounds sane to everybody else, I'll write it up.

On Fri, Jan 1, 2010 at 9:56 AM, Bryan Hunt <bhunt <at> mac.com> wrote:
I'm starting to look at using Restlet 2.0 with GWT 2.0.  The docs for setting up a project:

http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/144-restlet/186-restlet.html

talk about setting up the old GWT Hosted Mode.  The new Dev Mode seems to be using Jetty instead of Tomcat, and there doesn't seem to be any web.xml files for configuring the shell servlet.  Are there any new docs on how to set up a project using Restlet 2.0 with GWT 2.0 Dev Mode?

Bryan

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434081

Tim Peierls | 1 Jan 2010 17:43
Gravatar

Re: Restlet 2.0 & GWT 2.0 Dev Mode

That answers the question I was trying to formulate, Rob. Yes, please do write it up.


The current Restlet-GWT sample project is already set up for Restlet 2.0 and GWT 2.0 -- I had no trouble getting things running in dev mode using Ant.

--tim

On Fri, Jan 1, 2010 at 10:18 AM, Rob Heittman <rob.heittman <at> solertium.com> wrote:
We should write some now that GWT 2.0 is not a moving target any more.  When working with Jetty and Dev Mode under 2.0 trunk, I have always just used the ServerServlet to attach Restlet to a path.  I do not believe it is really possible any more to attach Restlet to the root of the container (/), at least not without surgery to GWT's DefaultServlet, which in turn is a modified version of Jetty's that understands how to handle GWT modules ... and I hope we don't have to attack that.

All I do in practice, in my GWT 2.0 client applications, is make sure the root of any RESTful resources is configurable, and set it differently in Dev Mode than in production.  Then I usually attach Restlet (usually a redirector to my "real" Restlet server side running somewhere else) to /r under GWT using ServerServlet, same as any other JEE container.

If that practice sounds sane to everybody else, I'll write it up.

On Fri, Jan 1, 2010 at 9:56 AM, Bryan Hunt <bhunt <at> mac.com> wrote:
I'm starting to look at using Restlet 2.0 with GWT 2.0.  The docs for setting up a project:

http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/144-restlet/186-restlet.html

talk about setting up the old GWT Hosted Mode.  The new Dev Mode seems to be using Jetty instead of Tomcat, and there doesn't seem to be any web.xml files for configuring the shell servlet.  Are there any new docs on how to set up a project using Restlet 2.0 with GWT 2.0 Dev Mode?

Bryan

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434081


Bryan Hunt | 1 Jan 2010 18:16
Picon
Gravatar

Re: Restlet 2.0 & GWT 2.0 Dev Mode

Rob,

How are you registering the ServerServlet with the embedded Jetty that GWT is launching?

Bryan

On Jan 1, 2010, at 9:18 AM, Rob Heittman wrote:

We should write some now that GWT 2.0 is not a moving target any more.  When working with Jetty and Dev Mode under 2.0 trunk, I have always just used the ServerServlet to attach Restlet to a path.  I do not believe it is really possible any more to attach Restlet to the root of the container (/), at least not without surgery to GWT's DefaultServlet, which in turn is a modified versi on of Jetty's that understands how to handle GWT modules ... and I hope we don't have to attack that.

All I do in practice, in my GWT 2.0 client applications, is make sure the root of any RESTful resources is configurable, and set it differently in Dev Mode than in production.  Then I usually attach Restlet (usually a redirector to my "real" Restlet server side running somewhere else) to /r under GWT using ServerServlet, same as any other JEE container.

If that practice sounds sane to everybody else, I'll write it up.

On Fri, Jan 1, 2010 at 9:56 AM, Bryan Hunt <bhunt <at> mac.com> wrote:
I'm starting to look at using Restlet 2.0 with GWT 2.0.  The docs for setting up a project:

http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/144-restlet/186-restlet.html

talk about setting up the old GWT Hosted Mode.  The new Dev Mode seems to be using Jetty instead of Tomcat, and there doesn't seem to be any web.xml files for configuring the shell servlet.  Are there any new docs on how to set up a project using Restlet 2.0 with GWT 2.0 Dev Mode?

Bryan

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434081


Rob Heittman | 1 Jan 2010 18:59
Gravatar

Re: Restlet 2.0 & GWT 2.0 Dev Mode

I use Eclipse and OSGi manifests, so the Restlet bundles are open in my IDE and declared as dependencies of my GWT project -- I need org.restlet and org.restlet.ext.servlet.  But however you get the jars onto the classpath will be fine -- I'll document a few other choices when I write this up officially.  Then in the war directory of my GWT project, I place a WEB-INF/lib/web.xml with contents like this:


<?xml version="1.0" encoding="UTF-8"?>
<web-app>

<servlet>
<servlet-name>adapter</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
<init-param> <!--  In my case I have a dummy value here, as my component takes care of application attachment ... but see the ServerServlet docs-->
 <param-name>org.restlet.application</param-name>
 <param-value>org.restlet.Application [or your actual Application]</param-value>
</init-param>
<init-param>
 <param-name>org.restlet.component</param-name>
 <param-value>[my component here]</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>adapter</servlet-name>
<url-pattern>/r/*</url-pattern>
</servlet-mapping>

</web-app>


On Fri, Jan 1, 2010 at 12:16 PM, Bryan Hunt <bhunt <at> mac.com> wrote:
Rob,

How are you registering the ServerServlet with the embedded Jetty that GWT is launching?

Bryan

On Jan 1, 2010, at 9:18 AM, Rob Heittman wrote:

We should write some now that GWT 2.0 is not a moving target any more.  When working with Jetty and Dev Mode under 2.0 trunk, I have always just used the ServerServlet to attach Restlet to a path.  I do not believe it is really possible any more to attach Restlet to the root of the container (/), at least not without surgery to GWT's DefaultServlet, which in turn is a modified version of Jetty's that understands how to handle GWT modules ... and I hope we don't have to attack that.

All I do in practice, in my GWT 2.0 client applications, is make sure the root of any RESTful resources is configurable, and set it differently in Dev Mode than in production.  Then I usually attach Restlet (usually a redirector to my "real" Restlet server side running somewhere else) to /r under GWT using ServerServlet, same as any other JEE container.

If that practice sounds sane to everybody else, I'll write it up.

On Fri, Jan 1, 2010 at 9:56 AM, Bryan Hunt <bhunt <at> mac.com> wrote:
I'm starting to look at using Restlet 2.0 with GWT 2.0.  The docs for setting up a project:

http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/144-restlet/186-restlet.html

talk about setting up the old GWT Hosted Mode.  The new Dev Mode seems to be using Jetty instead of Tomcat, and there doesn't seem to be any web.xml files for configuring the shell servlet.  Are there any new docs on how to set up a project using Restlet 2.0 with GWT 2.0 Dev Mode?

Bryan

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434081



webpost | 2 Jan 2010 22:51
Picon

Support for Expect and 100 Continue, or ways of faking it

Hi,

I'm writing an application to support some existing clients which use the Expect and 100 Continue HTTP
mechanics to ensure a data PUT will be allowed before sending the data.

Looking around the site and archives I see this isn't currently supported in Restlet 2.0 and issue 413 has no
identified milestone.

So first, am I missing something and is this supported somewhere in the current development branch?  I'm
pretty tolerant to use bleeding edge code.

If though as I suspect this functionality isn't supported is there currently any way to bluff this at all via
a custom connector or filter?  I really didn't see any mechanism to send back a response to the client at the
point its pausing after sending the Expect header.

Any thoughts much welcomed.

Thanks,
Garry

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434272

Jenkins, Dustin | 3 Jan 2010 04:50
Picon

RE: How to REST in SpringFramework

The bean name or id needs to be the path to the Resource.

    <bean id="/pollSystemResource"
class="com.smartcrop.webapp.service.PollSystemResource" autowire="byName"/>
</beans>

Rather than:

    <bean id="pollSystemResource"
class="com.smartcrop.webapp.service.PollSystemResource" autowire="byName"/>
</beans>

Then your Router need only be:

<bean id="root" class="org.restlet.ext.spring.SpringRouter" />

Dustin

-----Original Message-----
From: gozfidan [mailto:gurkan <at> resolution.com]
Sent: Thu 12/31/2009 11:59 AM
To: discuss <at> restlet.tigris.org
Subject: How to REST in SpringFramework

Hi,
I am new to REST and trying to integrate with my Spring application. I have
done
some searching bu got stuck. I have changed the web.xml and add
RestletServlet-servlet.xml
but not sure how to implement Resource?

web.xml
	<servlet>
        <servlet-name>RestletServlet</servlet-name>

<servlet-class>org.restlet.ext.spring.RestletFrameworkServlet</servlet-class>
    </servlet>
	
	
RestletServlet-servlet.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

	<bean id="root" class="org.restlet.ext.spring.SpringRouter">
        <property name="attachments">
            <map>
                <entry key="/poll">
                    <bean class="org.restlet.ext.spring.SpringFinder">
                        <lookup-method name="createResource"
bean="pollSystemResource" />
                    </bean>
                </entry>
            </map>
        </property>
    </bean>

    <bean id="pollSystemResource"
class="com.smartcrop.webapp.service.PollSystemResource" autowire="byName"/>
</beans>

and I have this PollSystemResource if I extend it with SpringResource
I get an error for  [cannot find symbol constructor SpringResource()]

If my steps are correct, how do I implement my Resources
thanks.
--

-- 
View this message in context: http://n2.nabble.com/How-to-REST-in-SpringFramework-tp4237720p4237720.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434026

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434317
Attachment (winmail.dat): application/ms-tnef, 3399 bytes
Xavier Méhaut | 3 Jan 2010 12:17
Picon
Favicon

Video streaming ressource

Happy new year to everyone (Bloavez mad deoc'h in breton),

I would like to know if there exists something as restlet extension to deal with the video streaming concern, because of it is in fine a ressource as others, even if it is a continuous resource.
We could consider a ressource as for instance H264 stream and its representation as a video container like MOV, AVI, FLV and so on... The protocol used could also be chosen among RTSP, Sockets, HTPP, ....

best regards
Xavier

dean the bean | 3 Jan 2010 20:41
Picon
Favicon

Restlet and Spring bean scope in v2.0m

Anyone have any experience in scoping Spring beans using Session or Singleton?  I'm extending
ServerResource and I am wondering how concurrency is handled since none of the annotated methods are
synchronized.  Should I go ahead and synchronize the method?  I guess I should dig into the source code and
see for myself, but off-hand anyone have experience running into race conditions using non-Prototype
scoped beans?  Is this just a Spring issue then?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2434420


Gmane