PDA

View Full Version : how to set rails as server providing data?



tang9528
18 Aug 2008, 2:02 AM
hi,all

gxt default j2ee as server provide data

but how to set rails as server providing data ?

for example


MailServiceAsync service = (MailServiceAsync) GWT.create(MailService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) service;
String moduleRelativeURL = GWT.getModuleBaseURL() + "service";
endpoint.setServiceEntryPoint(moduleRelativeURL);
Registry.register("service", service);

how to use rails replace?

thanks

darrellmeyer
18 Aug 2008, 10:05 PM
GWT RPC requires Java on the server. If you want to use rails you will not be able to use GWT RPC. The GXT data loading and data api work with any server side technology using XML and JSON. Take a look at HttpProxy, JsonReader, and XmlReader for more details.

tang9528
18 Aug 2008, 11:57 PM
thanks darrellmeyer,