This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes Handling session in WS Server/Client using Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Handling session in WS Server/Client using Hibernate" Watch "Handling session in WS Server/Client using Hibernate" New topic
Author

Handling session in WS Server/Client using Hibernate

Marek Krokosinski
Ranch Hand

Joined: Jun 10, 2011
Posts: 64
Hello.

I have simpe Web Service Server/Client in JAX-WS. I wanted to implement session managment using hibernate. Is it possible?

On WS Server I have a hibernate. I have mapped the database tables.

On client I want to have possibility to create new session, to authorize myself using that session, and keep the session alive until (for example) my log out. Should I use the Session class ? Or maybe I should create @WebMethod on server which handles the connection to the database, and use that method on client? How should I keep session then ?

Please, give me some advice how to realize that plan, sample code are welcome of course.

Best regards !
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Handling session in WS Server/Client using Hibernate