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 post, as I think that this avenue of the thread is now closed.

"Jerome Louvel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

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
create a dedicated virtual host, especially if you host several domain names
on the same IP.

We are also currently writing a book on Restlet that will provide a more
detailed methodology on how to design your Restlet applications, and how to
you the Restlet framework. See this link:
http://www.restlet.org/documentation/books

Best regards,
Jerome

-----Message d'origine-----
De : news [mailto:[EMAIL PROTECTED] De la part de Marcus
Envoyé : lundi 10 mars 2008 06:54
À : [email protected]
Objet : Re: Starting a new web application, using Restlets

Thanks Code Dude,

As mentioned I have already gone through all of the first
steps, and the
more in-depth tutorial.
I am not currently using an IDE - although it is a steeper
learning curve, I
am getting my feet wet quickly.

I see very little point in using servlets and an application
container like
TomCat, as the Restlet framework uses the SimpleFramework
libraries, and
this seems very tidy to me.

What I am really after is almost a handful of 'steps', that outline a
process on how to get started. Although there are a handful
of code snippets
around, what I feel would be very handy would be a full
implementation
example. i.e. Starting with an idea for a web application,
and showing how
to design it RESTfully and implement it using the framework.

In my original post, I have outlined what I 'believe' would
be the starting
steps in my example provided. I will try to adopt these steps
to start with.

"code dude" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
How about downlaoding a decent IDE like netbeans or eclipse
and reading and
implementing simple RESTLETS in quik start tutorial ->
http://www.restlet.org/documentation/1.0/firstSteps


On 3/10/08, Marcus <[EMAIL PROTECTED]> wrote:
<Newbie Alert/>

Hi Everyone,

First a bit of background info:
    * I am doing some R&D towards adopting RESTful practices
in the web
applications I develop.
    * I am coming from a M$-centric development environment,
and I am very
keen to 'escape' and
        so have been learning Java and Servlets.
    * I have digested (as best I could) Roy Fielding's dissertation.
    * I have gone through the tutorials on Restlets and got them all
working.

So, I would like to now start a prototype project to see
whether this is the
best environment for me to use.
The prototype will be based on a CMS system for managing
websites. The basic
datatypes I'll be referring to for now will be:
    * Customer
    * Site
    * Page

(Where there are multiple customers in the system, each of
whom could have
multiple sites, each of which will be made up of multiple pages).

I assume that these datatypes will actually be resources.

I am really stuck with how to actually make a start on this.
I guess I'll
start by creating my resources as subclasses of Resource. I
can see there
being 2 resources for each datatype (CustomersResource,
CustomerResouce,
SitesResource, SiteResource, PagesResource, PageResource...)

I guess I'll then make these resources access the relevent database
(planning on using MySql) tables to populate themselves
(based on the ids
retrieved from the query string using the
request.getAttributes().get()
method).

Do I then attach the resources to a router (defining the path to the
resources) inside the createRoot overridden method of my Application
subclass, and then attach an instance of this application to a new
component's default virtual host?

As you may be able to tell, I have an extremely basic grip of
this to start
with, and I'm hoping that this thread could become useful for
other newbies
starting their journey in understanding Restlets.

I can tell its a powerful framework, but just where to begin!?!

Thankyou all in advance for any help contributed.


Marcus.





Reply via email to