Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RPC & RF to manage db connection

 
Robert Spero
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic