-->
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: Properties from Configuration
PostPosted: Thu Sep 04, 2003 10:52 am 
Regular
Regular

Joined: Thu Sep 04, 2003 10:43 am
Posts: 61
I would like to get the properties from the sessionFactory.
My real-problem is this:
I have a J2EE application which will run on JBoss or Orion. In a configuration file there is property hibernate.transaction.manager_lookup_class
I would like to have it back from Hibernate instead or reading again the file.
My last pourpose is to make a "safe" setRollbackOny. I must know if I'm inside a transaction and to know it I need to have a TransactionManager, but I need to know which class to use to have the transaction manager.
Can anybody help me?
Thanks
Alessandro


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 04, 2003 11:12 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Configuration.getProperties() ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 04, 2003 11:45 am 
Regular
Regular

Joined: Thu Sep 04, 2003 10:43 am
Posts: 61
gavin wrote:
Configuration.getProperties() ?


But if I have only the sessionFactory (which is cached)? The configuration object was destroyed after used, I keep only the sessionFactory in cache.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 04, 2003 11:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
IN that case, no, there is no API for this.


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.