File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RPC - any negative affect when override doGet?

 
Alexander Streltsov
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any negative affect when override doGet in RemoteServiceServlet?
 
Maneesh Godbole
Saloon Keeper
Posts: 10967
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
RemoteServiceServlet is designed to be used as a "normal class whose methods can be invoked". Why do you wish to override doGet()
 
Alexander Streltsov
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. Nice place. We just started project on GWT.
Now we do registration module, need e-mail confirmation by link (GET).
Need to create HttpServlet or just override doGet in RPC?
 
Maneesh Godbole
Saloon Keeper
Posts: 10967
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now we do registration module, need e-mail confirmation by link (GET).

You mean where your application will send the newly registered user a confirmation mail which he has to click before some specified time out limit?
If yes, it is easiest to create a separate servlet.
 
Alexander Streltsov
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:it is easiest to create a separate servlet.


yes, i have both versions, they work fine for now. Question: is there any reason do not use override doGet in RPC (may it cause any problems?).
 
Maneesh Godbole
Saloon Keeper
Posts: 10967
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I see no reason why not to thought I have never done it myself. The RemoteServiceServlet nor it's ancestor AbstractRemoteServiceServlet do not provide concrete implementation of doGet() s you really wouldn't be overriding. But like I said, I would still have a separate servlet.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic