-->
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: Access Configuration Object Runtime
PostPosted: Tue Sep 30, 2008 7:56 pm 
Newbie

Joined: Mon Sep 29, 2008 7:16 pm
Posts: 1
I need to get access to the Configuration object of hibernate to get the list of PersistentClasses at run time. Is there anyway to do it?

Basically, I start my J2EE application with persistence.xml in JBoss. Hibernate automatically loads up my persistence unit and binds the entity manager and session factory to JNDI. I have a audit service which I can start and stop at any point. When I start my audit service, it needs the list of PersistentClass (as in hibernate's PersistentClass) to construct the configuration for audit objects. Hence the need for accesses the Configuration object at run time.

Any help to solve my problem is much appreciated. Thanks!

Ilavenil


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.