Hi
   
  This is in continuation to your reply.
   
  One more question regarding the implementation of Embedded mode B:
   
  What does the <ref bean > in the webApplicationContext file refer to - is it 
the Resource class name? :
   
  <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
  <property name="urlMap">
  <map>
  
  <entry key="/xyz">
  <ref bean="?????" />
  </entry>
  </map>
  </property>
  </bean>
   
   
  Thanks in advance for your time and interest.
   
   
  

Jerome Louvel <[EMAIL PROTECTED]> wrote:
  
Hi,

Check the Javadocs for a code snippet:
http://www.restlet.org/documentation/1.0/ext/com/noelios/restlet/ext/servlet
/ServletConverter.html

You parent Servlet class can be one of the Spring base Servlet classed
(HttpBeanServlet, etc.).

Best regards,
Jerome 

> -----Message d'origine-----
> De : kcr sk [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 25 avril 2007 22:40
> À : [email protected]
> Objet : RE: restlet newbie question
> 
> Hi
> 
> Also is there any example/tutorial for the below mode that 
> the restlet can be used (specified by you in one of the postings):
> 
> Embedded mode B: lighter version where Spring and the 
> Servlet container
> are not masked by the concept of Restlet Application. This 
> requires the
> creating of a special Servlet (maybe a Spring's 
> HttpBeanServlet subclass)
> and a bit of coding to convert Servlet's calls into Restlet's 
> calls. In this
> mode, no Restlet's Application is created, 
> Restlets/Filters/Routers/Finders
> are directly instantiated by Spring and configured like other 
> Spring beans.
> Of course you loose the Application services and the 
> portability of your
> Restlet code to other deployment environments.
> 
> Thanks in advance.
> 
> 
> 
> Jerome Louvel wrote:
> 
> 
> Hi,
> 
> You can check our tutorial which has sample standalone 
> applications like:
> http://www.restlet.org/documentation/1.0/tutorial#part11
> 
> All the code source is available in the distribution.
> 
> Best regards,
> Jerome 
> 
> > -----Message d'origine-----
> > De : kcr sk [mailto:[EMAIL PROTECTED] 
> > Envoyé : mercredi 25 avril 2007 18:31
> > À : [email protected]
> > Objet : RE: restlet newbie question
> > 
> > Hi
> > 
> > Are the examples posted in restlet wiki related to 
> standalone mode?
> > 
> > Thanks in advance.
> > 
> > 
> > 
> > Jerome Louvel wrote:
> > 
> > 
> > Hi,
> > 
> > If you only have to expose a single Web service using 
> > the Restlet API, then
> > I would recommend using the standalone mode, meaning 
> > using a Restlet HTTP
> > server connector has indicated here:
> > http://www.restlet.org/documentation/1.0/connectors
> > 
> > The advantage is that it is more lightweight and as 
> > performing as a Servlet
> > container. You can always deploy your Restlet 
> > Application in a Servlet
> > container later on if really needed.
> > 
> > Best regards,
> > Jerome 
> > 
> > > -----Message d'origine-----
> > > De : kcr sk [mailto:[EMAIL PROTECTED] 
> > > Envoyé : mercredi 25 avril 2007 16:25
> > > À : [email protected]
> > > Objet : RE: restlet newbie question
> > > 
> > > Hi
> > > 
> > > Thanks for the prompt reply.
> > > 
> > > My current project is a small project which 
> basically acts as 
> > > a service in a SOA enviornment.
> > > 
> > > I have an ejb that I am planning to expose as a non-soap 
> > > based web service in a servlet container.
> > > But I do not know if this is good strategy to use servlet 
> > > container just for the sake of web services (I am new to 
> > > webservices)? But at the same time I do not know the 
> > > advantages/disadvantages of using restlet in a 
> > standalone mode??
> > > 
> > > Your input and any pointers to examples is highly 
> appreciated.
> > > 
> > > Thanks in advance for your time and interest.
> > > 
> > > 
> > > 
> > > Jerome Louvel wrote:
> > > 
> > > 
> > > Hi Srinivas,
> > > 
> > > Could you enlighten us about your design context? 
> > > 
> > > 1) Do you need to deploy to a Servlet container or can 
> > > you use Restlets in
> > > the standalone mode? 
> > > 
> > > 2) Do you have a larger Spring application you need to 
> > > integrate with?
> > > 
> > > Best regards,
> > > Jerome 
> > > 
> > > > -----Message d'origine-----
> > > > De : Thierry Boileau [mailto:[EMAIL PROTECTED] 
> > > > Envoyé : mercredi 25 avril 2007 09:57
> > > > À : [email protected]
> > > > Objet : Re: restlet newbie question
> > > > 
> > > > Hello Srinivas,
> > > > 
> > > > here are some pointers that may help you learning how 
> > > to work with 
> > > > Restlet/Spring.
> > > > - developper FAQ : 
> > > http://www.restlet.org/documentation/1.0/faq#23
> > > > - some sample code : wiki.restlet.org
> > > > It may help getting more familiar with the 
> > > integration of Spring with 
> > > > the Restlet.
> > > > Personnally, I'm not able to give you a precise answer to 
> > > > your question 
> > > > about web services.
> > > > 
> > > > Best regards,
> > > > Thierry Boileau
> > > > 
> > > > > Hi all,
> > > > > I am new to rest and restlet.
> > > > > I have a Spring based project and I would like to 
> > expose a 
> > > > web service using 
> > > > > Restlet instead of SOAP.
> > > > > I came accross in this mailing list that Restlet (with 
> > > > Spring) can be used in 
> > > > > one of the following 3 ways but I am still not sure as 
> > > > which way to adopt and 
> > > > > if there is a code example that you can suggest 
> > specific to 
> > > > web services:
> > > > >
> > > > > 1) Standalone mode: based on the Spring extension 
> > > (SpringContext +
> > > > > SpringFinder) and a standalone HTTP server connector.
> > > > >
> > > > > 2) Embedded mode A: based on the ServerServlet 
> > adapter and 
> > > > either the
> > > > > SpringContext (via the WAR client and 
> > > > "war:///path/config.xml" scheme) or
> > > > > via the usage of the ServletContext accessible 
> > when casting 
> > > > Restlet's
> > > > > Context to ServletContextAdapter.
> > > > >
> > > > > 3) Embedded mode B: lighter version where 
> Spring and the 
> > > > Servlet container
> > > > > are not masked by the concept of Restlet 
> > Application. This 
> > > > requires the
> > > > > creating of a special Servlet (maybe a Spring's 
> > > > HttpBeanServlet subclass)
> > > > > and a bit of coding to convert Servlet's calls into 
> > > > Restlet's calls. In this
> > > > > mode, no Restlet's Application is created, 
> > > > Restlets/Filters/Routers/Finders
> > > > > are directly instantiated by Spring and configured like 
> > > > other Spring beans.
> > > > > Of course you loose the Application services and the 
> > > > portability of your
> > > > > Restlet code to other deployment environments.
> > > > >
> > > > >
> > > > > Any advice/help is highly appreciated.
> > > > >
> > > > > Thanks in advance. 
> > > > >
> > > > > 
> > > 
> > > 
> > > 
> > > ________________________________
> > > 
> > > Ahhh...imagining that irresistible "new car" smell?
> > > Check out new cars at Yahoo! Autos. 
> > > > 
> > cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGF
> > > ncwRzbGsDbmV3LWNhcnM-> 
> > > 
> > 
> > 
> > 
> > ________________________________
> > 
> > Ahhh...imagining that irresistible "new car" smell?
> > Check out new cars at Yahoo! Autos. 
> > > 
> cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGF
> > ncwRzbGsDbmV3LWNhcnM-> 
> > 
> 
> 
> 
> ________________________________
> 
> Ahhh...imagining that irresistible "new car" smell?
> Check out new cars at Yahoo! Autos. 
> > cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGF
> ncwRzbGsDbmV3LWNhcnM-> 
> 


       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Reply via email to