If you are connecting to a server under a different context then JSONP is possibly the way to go.
See: http://code.google.com/support/bin/answer.py?answer=65632&topic=11368 and http://eggsylife.blogspot.com/2008/10/gwt-and-cross-site-jsonp-in-j2ee.html for a few tutorials. eggsy On Oct 27, 2:47 pm, Jason Essington <[EMAIL PROTECTED]> wrote: > If you are connecting to the same server, just a different context, > then you shouldn't have any trouble at all. just set up the endpoint > URL on the client to match the servlet you want to connect to. > > careful, in this case, GWT.getModuleBaseURL() will probably contain > the context of the originating app, so you'll have to work a little > harder at getting the proper URL path. > > -jason > > On Oct 24, 2008, at 11:22 PM, vaibhav saxena wrote: > > > Hi Jason Essington > > > You are right that rpc will connect to server from which the host > > page is generating but in my project approach is little bit > > different. Let me understand you whole context. > > > My project was in dojo toolkit some months before. My whole team was > > working on that in which we have the server side codes and in web > > content the js files of dojo toolkit. Now my whole team decided to > > shift to GWT for some incompatability issues in dojo. We are working > > on the rest architecture to be compatable for other applications who > > understand the atom. > > > In GWT we tried with json and atom data and began to use the GWT-EXT > > as our widgets library. We did the whole setup for the gwt client > > and as the data was coming on the basis of rest architecture we > > didnt include the server in it. Rather the server was in some > > workspace and GWT client was in some workspace. > > > We used to test our gwt code using the external server code by just > > placing the compiled files over there. The host page generating from > > the same server and the the compiled js files is also on the same > > server but our client developement workspace is different. > > > Now we need the rpc for some user preference. We need to use the > > same server code may be with some changes on the servlet for rpc. > > Still the host page will be generate from the same server side and > > the compiled js will be placed over there too. The servlet will be > > in web inf directory. > > > i am confused in the client server directory structure of gwt. May > > be it is enought to understand my problem. please help me out. > > > Thanks > > > Regards > > Vaibhav Saxena > > > On Fri, Oct 24, 2008 at 11:54 PM, Jason Essington <[EMAIL PROTECTED] > > > wrote: > > > RPC uses XHR internally and as such is bound by the browsers Same > > Origin Policy. Simply ... No, RPC will not connect to a server that is > > different than the one the host page was loaded from. > > > -jason > > > On Oct 24, 2008, at 3:34 AM, vaibhav saxena wrote: > > > > HI groups, > > > i am doing the pocs over rpc and succeded to run the rpc. But i want > > > more than that. I want to run rpc with my existing servlet that i > > > have configured in another servlet container. Is there any way to > > > run rpc with another servlet . > > > > regards > > > Vaibhav saxena --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---