-->
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: how can i run the flow code after jboss start?and nerver ...
PostPosted: Mon May 24, 2004 4:58 am 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
the two line spend too much time!
Code:
Configuration objConfig = new Configuration();
SessionFactory objSessionFactory = objConfig.configure().buildSessionFactory();


i want the two line code,run after the jboss server start,in my code,nerver run the two line again(because the two line spend too much too much too much time)

thanks a lot!


Top
 Profile  
 
 Post subject: Re: how can i run the flow code after jboss start?and nerver
PostPosted: Mon May 24, 2004 5:02 am 
Beginner
Beginner

Joined: Wed May 12, 2004 4:27 am
Posts: 21
Location: Montreux (CH)
strange need, you could just install Hibernate into JBoss as recommended...

but if you do need this, create a MBean that does it at startup and deploy it !

linuxaid wrote:
the two line spend too much time!
Code:
Configuration objConfig = new Configuration();
SessionFactory objSessionFactory = objConfig.configure().buildSessionFactory();


i want the two line code,run after the jboss server start,in my code,nerver run the two line again(because the two line spend too much too much too much time)

thanks a lot!


Top
 Profile  
 
 Post subject: could you provide more detailed content!
PostPosted: Mon May 24, 2004 5:08 am 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
thanks a lot!


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.