Hi Duong,
1) No, the sample code is not based on GWT-RPC API. The server side is
based on Restlet and I simply answer to requests (in this case AJAX
requests) with a simple line of plain text (it could be XML)
2) Let me think about it! :)
Best regards,
Thierry Boileau
--
Restlet ~ Core developer ~ http://www.restlet.org <http://www.restlet.org/>
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
<http://www.noelios.com/>
Mail sent on the 09/10 and apparently lost.
---
Hello Duong,
what kind of problem are you experiencing with the creation of directories?
best regards,
Thierry Boileau
Wow, thank you Thierry.
(1) I will find time to try GWT-Restlet example just sent to the list.
Is your example to the list using just JSON string or JSONP with GWT-1.5
JavaScript Overlay Types?
2) Back to Restlet Directory, the Restlet example using RestletServlet
is working under tomcat-6 and jdk6 in standard web mode of .war file for
http://budhnet.com/index.html which become http://budhnet.com/ under
restlet. Now, using GWT compile code of muweb application, the entry
point of standard web http://budhnet.com/muweb/index.html work as
expected. Under restlet the entry point to the directory
http://budhnet.com/muweb/ does not work under tomcat but work with
Restlet server component and main entry point to start the Restlet
Application with FILE client protocol.
I follow the instruction for under web.xml
<context-param>
<param-name>org.restlet.application</param-name>
<param-value>com.dbgroups.psi.privacy.Psi</param-value>
</context-param>
<context-param>
<param-name>org.restlet.clients</param-name>
<param-value>FILE</param-value>
</context-param>
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>
com.noelios.restlet.ext.servlet.ServerServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
Other URIs under router attach are working as expected, except the
directory attached. The same directory structures work under Restlet
component server. According to the attached log, the file absolute paths
are right. /muweb/ and /gwt-compiled-app/ are directory targets to GWT
mudule with index.html are entry points. Env: jdk1.6 (U3), tomcat
6.0.14, linux CentOS (clone of RedHat enterprise).
There are some hosting services that provide either Tomcat-6 or
Glassfish v.3. I think simple integration with popular servlet engines
to make GWT compiled file working as static client that use restlet JSON
service as in your example (i have not looked into it yet) make restlet
work seamlessly in both client and server side using OSGi as the Vision
of Restlet. http://budhnet.com/ http://budhnet.com/muweb/#Home
http://budhnet.com/muweb/#AccountingJobs are the way for Restlet and GWT
working together. Please help and test for this very practical architect
to take restlet to the mass production level, especially with GUICE DI
of reslet resources (please post if someone has made it work under new
restlet).
Best Regards
Duong BaTien
DBGROUPS and BudhNet
I'd love to hear other points of view, though.
Justin
Hi:
I am exiting with both GWT and Restlet, but have not had time to look at
Reslet-GWT API for client side. On the GWT front, the cited tutorial
demonstrates a new Java overlay integration between Java and JavaScripts
via JSONP. Last time, i looked at the Restlet there is
org.restlet.ext.json_2.0 extension that i plan to dive into. I still
have issue with creating directory resource using
com.noelios.restlet.ext.servlet.ServerServlet in Tomcat 6. The directory
resource work fine under Restlet component server. Please let me know if
anyone has made it work under tomcat or glassfish v3.
BTW, i think Restlet is exiting, so does GWT-1.5. Is there any example
to show server-side Restlet JSON service, even better to integrate with
GWT 1.5 JSONP using Java overlay? My strategy is to separate client-side
and server-side services so my server is only 1 of many possible service
sources for GWT mashup, where GWT application is compiled and served
under directory resource of Restlet under a Servlet engine available at
hosted sides such as GoDaddy. Is it a recommended practice? I can take
criticism so please share your experience.
Duong Batien
DBGROUPS and BudhNet