permaculture playing cards*
The moose likes GWT and the fly likes RPC - any negative affect when override doGet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "RPC - any negative affect when override doGet?" Watch "RPC - any negative affect when override doGet?" New topic
Author

RPC - any negative affect when override doGet?

Alexander Streltsov
Greenhorn

Joined: Sep 12, 2013
Posts: 4
Any negative affect when override doGet in RemoteServiceServlet?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

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()


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Alexander Streltsov
Greenhorn

Joined: Sep 12, 2013
Posts: 4
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

Joined: Jul 26, 2007
Posts: 10451
    
    8

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

Joined: Sep 12, 2013
Posts: 4
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

Joined: Jul 26, 2007
Posts: 10451
    
    8

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.
 
Don't get me started about those stupid light bulbs.
 
subject: RPC - any negative affect when override doGet?