-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate with Axis2 on Tomcat
PostPosted: Thu Nov 08, 2007 7:23 pm 
Newbie

Joined: Wed Oct 24, 2007 11:02 pm
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3

I am writing a very simple web service with Axis2 1.3 on Tomcat 5.5.
How do I hook up hibernate to Tomcat so my web service can use it.

I successfully read from database running my POJO in console. I can also expose the POJO in Axis2 as a web service, but I cannot run the methods using hibernate in the service.

Any suggestions?

I'm very new to the java web development and any help would be appreciated.

J


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 10, 2007 10:16 am 
Newbie

Joined: Tue Nov 06, 2007 10:55 am
Posts: 3
Location: Netherlands
use the HibernateSessionRequestFilter http://www.hibernate.org/43.html to locate a valid hibernate session.

From the axis service, just use: HibernateUtil.getSessionFactory().getCurrentSession() and you're in business


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.