Thread:
 Alternative JBoss configuration 
 jarkko   16 Dec 2003, 19:33 
 Re: Alternative JBoss configuration 
 sgwood   16 Dec 2003, 21:08 
 Re: Alternative JBoss configuration 
 knuterik   26 Aug 2004, 15:04 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: knuterik (26 Aug 2004, 15:04) Replies: 0, Views: 36716
Subject: Re: Alternative JBoss configuration
On 16 Dec 2003 21:08, sgwood wrote:

>>Hello,
>> Is it possible to configure JBoss/Hibernate so that hibernate can
>>lookup the mapping files from another jar (e.g. myHibernateClasses.
jar)


>I think the closest you are going to get is:
>myEar.ear
> hibernateStartup.sar
>   META-INF/
>            jboss-service.xml
>   eg/
>      package/
>             MyClass.hbm.xml
> myHibernateClasses.jar
>   eg/
>      package/
>             MyClass.class
>
>The Jboss Hibernate MBean needs to be able to find the hbm.xml files
>specified in the MapResources attribute in the MBean descriptor on the
>classpath of the SAR.

I tried to make my .ear file have this structure and the web application 
starts OK, nut the .sar file is not deployed/initialised.

Do I have to specify something in the default or jboss deployment 
descriptors for this to work?
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]