GeeCON Prague 2014*
The moose likes GWT and the fly likes RPC & RF to manage db connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » GWT
Bookmark "RPC & RF to manage db connection" Watch "RPC & RF to manage db connection" New topic
Author

RPC & RF to manage db connection

Robert Spero
Greenhorn

Joined: Jun 22, 2013
Posts: 10
I am having a real hard time understanding requestfactory and rpc with hibernate or even if request facrory and hibernate do the samething! I have a root panel with a button where i want the button to run a query and return some data using the server side implementation as the server has access to a database that the clients dont. I have hibernate done from a previous plan old java project which i am redoing in gwt so i just want the database connection opened in the context seassion and in the request session have the clients run the query.

So is the only difference that rpc implements a server side database connection for every client who presses the button and request factory is one time connection and every time they press the button i can code it as just a query through the context connection on the server side that has access to the database.

Thamks for the help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RPC & RF to manage db connection