Hello,
I deploy my HAR file into JBoss...
and it takes more than one minutes to configurate Hibernate...
I am using the latest 3.0 release.
It takes about 1 seconds for "mapping a class"...
My hbm.xml files starts all with :
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
....
Look at this :
Here over 17 seconds why ?
Code:
2005-06-29 11:50:54,219 INFO [org.hibernate.impl.SessionFactoryImpl] building session factory
2005-06-29 11:51:13,326 INFO [org.hibernate.impl.SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
2005-06-29 11:51:13,336 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{}
2005-06-29 11:51:13,336 INFO [org.hibernate.impl.SessionFactoryImpl] Checking 123 named queries
2005-06-29 11:51:15,319 INFO [org.jboss.hibernate.jmx.Hibernate] SessionFactory successfully built and bound into JNDI [java:/HIBERNATE]
and there : about 500ms for a xml file....
Code:
2005-06-29 11:50:46,468 INFO [org.hibernate.cfg.HbmBinder] Mapping class: utopix.centrix.mapping.application.catalog.model.HibModel -> models
2005-06-29 11:50:46,468 INFO [org.hibernate.cfg.Configuration] Found mapping documents in jar: my/mapping/application/customers/HibCustomer.hbm.xml
2005-06-29 11:50:47,209 INFO [org.hibernate.cfg.HbmBinder] Mapping class: utopix.centrix.mapping.application.customers.HibCustomer -> customers
2005-06-29 11:50:47,219 INFO [org.hibernate.cfg.Configuration] Found mapping documents in jar: my/mapping/application/documents/HibDocument.hbm.xml
[/code]