-->
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.  [ 4 posts ] 
Author Message
 Post subject: Only one ssession factory in my application
PostPosted: Mon Feb 19, 2007 6:26 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:46 am
Posts: 31
Hi
I am using hibernate in y web application . I used to create session factory using
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();

but i need this session factory to be created only one through out my whole application only once.and i need to check wheather to check wheather session factory object is available or not and then create......

how to do this

bye
mano


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 9:51 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
make it in every servlet if it isn't already made. store it in the servlet context

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 10:33 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:46 am
Posts: 31
Hi
Can u tel me how to create a servlet in Jsf how do i get response and request objects


bye
mano


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 10:39 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
I suggest you go read up on using JSF and Servlets

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.