This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling session in WS Server/Client using Hibernate

Marek Krokosinski
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 !
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic