-->
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: Hibernate with EntityManager startup time - serialization?
PostPosted: Sat May 31, 2008 4:59 pm 
Newbie

Joined: Thu Jun 14, 2007 4:19 pm
Posts: 6
Hello

I've found many WEB pages describing ways to serialize and (leter) to deserialize a configuration for a *pure* Hibernate Core.

I've got a standalone Java application using hibernate-entitymanager (i.e. JPA).

Question:
Is it possible to serialize and (leter) to deserialize my Configuration to speedup startup time of my standalone application using Hibernate EntityManager (i.e. JPA)?

Regards and smiles,
Adaslaw


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 5:37 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I dont' think it's possible. But it worth a look at Ejb3Configuration

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 6:05 pm 
Newbie

Joined: Thu Jun 14, 2007 4:19 pm
Posts: 6
Hello

Thank for your reply, Emmanuel!

Well... But I'm not sure what you mean ;)

I was reading about Ejb3Configuration and its method:

Code:
createEntityManagerFactory()


... looks interesting but ... this method is depreciated :(

Can you give a little hint how Ejb3Configuration can help me to speedup my application startup time?

Regards,
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 05, 2008 4:50 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Ejb3Configuration has thew same methods as Configuration which is at the heart of the optimization you were talking about before. That' why I headed you in this direction. I am not sure they will actually work in practice for EJB3, that's all.

_________________
Emmanuel


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.