-->
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.  [ 3 posts ] 
Author Message
 Post subject: JBoss configuration
PostPosted: Mon Oct 20, 2003 4:43 am 
Beginner
Beginner

Joined: Fri Oct 17, 2003 4:11 am
Posts: 40
Hallo,
i put Hibernate in JBoss (JMX) and it works! Instead of hibernate.cfg.xml the Hibernate's configuration is in jboss-service.xml, rights? Now, how can i retrive this configuration within an application? When i make "new Configuration().configure()" the program ask for the hibernate.cfg.xml file!
Thanx for any help!

Gio


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 20, 2003 3:54 pm 
Newbie

Joined: Thu Sep 25, 2003 12:59 pm
Posts: 4
Location: Denver, CO
The JMX component creates the SessionFactory and binds it into JNDI. You then need to lookup the SessionFactiory from JNDI in your application. There should be no reason to call Configration.configure() in your code. That is being done by the JMX Component.

_________________
Rob Stokes


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2003 4:08 am 
Beginner
Beginner

Joined: Fri Oct 17, 2003 4:11 am
Posts: 40
Thanx for ur reply!
I'd like to use "generateShemaCreationScript" that is a method of Configuration so i need to get a Configuration object to call:
Code:
config.generateSchemaCreationScript(dialect)


Any idea?!
Gio


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