-->
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.  [ 1 post ] 
Author Message
 Post subject: Building session factory in a stateless session bean -- how
PostPosted: Mon Oct 13, 2003 4:11 pm 
Newbie

Joined: Wed Oct 01, 2003 10:51 am
Posts: 5
Currently, I have :
sessionFactory = new Configuration().configure().buildSessionFactory();

with the hibernate.cfg.xml.

I need to move this into a stateless session bean.
the manual says:
From setSessionContext()

1. Call Hibernate.configure()

2. Obtain a JNDI InitialContext

3. look up the SessionFactory in the JNDI context and save it to an instance variable
--------------------------------------------------

I don't quite understand how to do step 2 and 3

BTW, I am using WebSphere Studio.

Thanks you much for your help


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

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.