-->
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: Hibernate-Configuration so slow to get ready ;o(
PostPosted: Wed Jun 29, 2005 6:18 am 
Beginner
Beginner

Joined: Wed May 12, 2004 4:27 am
Posts: 21
Location: Montreux (CH)
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]


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.