On Aug 3, 1:35 pm, Jeff Chimene <[email protected]> wrote: > On 08/03/2009 08:18 AM, Dominic Holt wrote: > hy this is a good idea). > > So you're saying that a Java app that listens on 127.0.0.1:80 won't > handle a GWT RPC call? I've never tried it, so I'm just asking... > > GWT uses the browser's XMLHTTPRequest object.
Well, since this is an HTTP request, the listening socket should respond to such protocol. It doesn't matter whether it's Apache/ Tomcat, IIS, or who knows what listens to the specified port at the specified local socket, as long as the expected response is compatible with the XMLHTTPRequest's own handlers. On my system, I have different (PHP) projects setup on port 80 using different IP addresses (project1.local=127.0.2.10, project2.local=127.0.2.11, ...) so no need of any internet connection to develop anything. I'm using Apache/PHP, but I could have taken the (very) long road and used a custom made Java application that would have listened to the request, ran the specified script, and returned the response. It's all a matter of how "custom" (home made) you want your application to be. Of course this is all theory as, IMO, I don't mind using third party software that works (!) but I've been playing with Netty (http://jboss.org/netty/) for other networked Java applications and it's a very active and promising project. With an HTTP protocol support, one could actually write something with it to handle GWT-RPC requests. Other than that, having a server bound to local ports also doesn't require an internet connection, and you could use the embedded Derby driver as your "server" side database. Personally, I don't like SQLlite, so I'd rather use MySQL, but if you want to be all-Java, Derby is fine, IMHO. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
