Skip to main content

Handling session in JAX-WS application which uses Hibernate

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2005-04-04


I have simpe JAX-WS Web Service Server/Client. 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 !