Thread:
 Using Hibernate with JBoss / initilization order 
 jschulz   03 Nov 2003, 17:48 
 Re: Using Hibernate with JBoss / initilization ... 
 csak   18 Nov 2003, 17:24 
 Re: Using Hibernate with JBoss / initilization ... 
 tmaus   05 Mar 2004, 10:59 
 Re: Using Hibernate with JBoss / initilizati... 
 mathis   05 Mar 2004, 19:07 
 Facing problem with NotNull constraint with Jbo... 
 Kirti   28 Dec 2006, 07:40 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: csak (18 Nov 2003, 17:24) Replies: 0, Views: 38263
Subject: Re: Using Hibernate with JBoss / initilization order
On 03 Nov 2003 17:48, jschulz wrote:

>Hmm. This approach worked relativly good for me, I just avoided
>copying the hibernate libs into the server's lib directories by
>packing them into the '.sar'.

>However, when I restart the JBoss server, the hibernate service will
>not initlialize, because the the datasource I've configured isn't
>loaded at the point the '.sar' is loaded.
>After this happend, the only way to get the hibernate service running
>again, is to re-deploy it. :-/

>Is there a way to configure my hibernate service in a way that it only
>initializes AFTER the datasource is ready?

This part:

"...
    <depends>jboss.jca:service=RARDeployer</depends>
    <depends>jboss.jca:service=LocalTxCM,name=MySqlDS</depends>
..."

of the service description ensures that the sar is loaded after the
datasource is ready. You've probably omitted this part from the
configuration.
It works for me this way.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]