Hi Jerome/Jima
   
  This email is in reference to a posting between you 
both-http://restlet.tigris.org/servlets/ReadMsg?list=discuss&msgNo=1790 
   
  I have 4 questions:
   
  1) I followed the exact code mentioned in the attached files of the above 
thread but I did not get to test with the following url sucessfully: 
 
//restlet/myresource">http://localhost:7000/<context-root>/<servlet-name>/restlet/myresource
  Instead I get the following error:
  Error 404--Not Found. From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is 
given of whether the condition is temporary or permanent.
   
  If this is a deployment issue as Jima mentioned, please let me know as how 
you resolved it.
  
2) I modified the TestServlet.java to extend from spring's FrameworkServlet and 
overidden its intFrameworkServlet() to create the ServletConvertor. In this 
case, the application deployment in the application server expects the spring's 
web application context file but I am not sure 
org.springframework.web.servlet.handler.SimpleUrlHandlerMapping must refer to? 
In other words, must it refer to the subclass of Resource (MyResource) or ?
   
  Below is the current content of the spring's webapplication context file:
   
  <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xmlns:util="http://www.springframework.org/schema/util";
 xsi:schemaLocation="
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/util 
http://www.springframework.org/schema/util/spring-util-2.0.xsd";>
   
   <bean 
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
  <property name="urlMap">
   <map>
      <entry key="/servletXXX-restlet">
     <ref bean= <do not know what goes in here????>   />
    </entry>
   </map>
  </property>
 </bean>
  </beans>

  
Your help is highly appreciated as I am under the deadline gun and all these 
technologies(Spring, restlet, servlet ) are new to me.
   
  3) Since I am new to all this, I guess I really do not understand the 
benefits of Embedded mode B - Is it not an overhead to use ServletConvertor in 
a Spring Servlet in order to  create extra restlet related objects like router, 
resource. How is this different from not having a restlet. 
   
  4) In embedded mode B, how do the calling client evoke a business method in a 
url; Will the url be 
http://localhost:7000/<context-root>/<servlet-name>/restlet/myresource/businessMethod?methodParameter1=17,
 methodParameter1=<xml...>
   
  Thanks a ton in advance.
  
 

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

Reply via email to