GWT RPC interface issue?

Check out documentation for RemoteServiceRelativePath annotation it explains pretty well what this annotation does. In your case, your service must be located at GWT. GetModuleBaseURL() + "stockPrices that means that if your GWT app is at mygwtapp then your service must be at mygwtapp/stockPrices It's up to you to install some service at this URL, usually by defining servlet implementing the service interface You can use any other path instead of stockPrices just make sure there is real service behind this path on the server Your remote services need some remote path (entry point), either by using RemoteServiceRelativePath annotation, or by setting it through ServiceDefTarget interface If service has no entry point, it cannot be called.(Remember: this path is URL on the server) For example, instead of using RemoteServiceRelativePath you can define your service without this annotation, and then when you instantiate async service proxy, you explicitly set path: StockPriceServiceAsync stockService = GWT.

Create(StockPriceService. Class); ((ServiceDefTarget) stockService). SetServiceEntryPoint("/services/stock.

Service").

Check out documentation for RemoteServiceRelativePath annotation, it explains pretty well what this annotation does. In your case, your service must be located at GWT. GetModuleBaseURL() + "stockPrices" ... that means that if your GWT app is at /mygwtapp, then your service must be at /mygwtapp/stockPrices.It's up to you to install some service at this URL, usually by defining servlet implementing the service interface.

You can use any other path instead of "stockPrices", just make sure there is real service behind this path on the server. Your remote services need some remote path (entry point), either by using @RemoteServiceRelativePath annotation, or by setting it through ServiceDefTarget interface. If service has no entry point, it cannot be called.

(Remember: this path is URL on the server) For example, instead of using @RemoteServiceRelativePath, you can define your service without this annotation, and then when you instantiate async service proxy, you explicitly set path: StockPriceServiceAsync stockService = GWT. Create(StockPriceService. Class); ((ServiceDefTarget) stockService).

SetServiceEntryPoint("/services/stock. Service").

Yeah, I understood, thanks for your response! – Delli Jul 8 at 8:45.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions