Re: Development mode cross site RPC requests

2011-05-21 Thread Lars
Hmmm, I glanced over that thinking it wouldn't allow me to do the convenient 
browser-refresh to test my client-side code...

I should really look into it further.

Thanks for the smack to the head ;-)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Development mode cross site RPC requests

2011-05-21 Thread Lars
My thinking exactly.  Definitely worth investigating.

Thanks for your suggestions!

- Lars

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Development mode cross site RPC requests

2011-05-21 Thread Lars
Y'know I thought about that... In fact I thought about even using such a 
setup in prod mode.  That way i could take advantage of the optimized 
across-the-wire serialized data transfers built in to GWT and save the 
client from downloading all the XML parsing logic. That would be done in 
this server side component.

If I ever have time I'd like to explore that to see if there is a 
performance hit for this extra step or if the optimized transfers would make 
it a overall benefit.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Development mode cross site RPC requests

2011-05-21 Thread Lars
Anyone have a suggestion?

Writing a GWT based front end that interacts with a C++ backend system.  I 
do not have direct access to the backend systems but interact with it by 
making ajax XML requests (no JSON).

Now, when I run in development mode cross-domain violations prevent me from 
making these XML requests from http://127.0.0.1: to 
http://backend.system.com/blah.cgi

My ugly solution is to make a bunch of static .xml files in my war directory 
representing each of the possible request returns and using GWT.isProdMode() 
to request those files if false or use the real data server if true.  
Obviously not ideal.

Any better solutions?

(BTW, i've searched the groups and didn't find any similar situations... 
which is surprising to me!)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Development mode cross site RPC requests

2011-05-20 Thread Thomas Broyer
Did you try this? 
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Development mode cross site RPC requests

2011-05-20 Thread Ben Imp
You could create a server side component for your GWT app, and delegate 
fetching the XML data to that.

-Ben

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Development mode cross site RPC requests

2011-05-20 Thread Ben Imp
I would think that the servlet would increase the performance of the 
application by a bit.  XML parsing in JS can't be fun, or fast, for that 
matter.  This assumes the latency between wherever you would run your 
application server and the target C++ backend isn't too high, though.  
Otherwise you are making a big triangle of a route, as opposed to simply 
back and forth.  Probably still worth it, since then you can leverage 
awesome java XML parsing libraries.

You may see some performance penalty for switching servers, I suppose.  I 
seem to recall that Tomcat wasn't quite as zippy as Apache.

-Ben

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.