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: sgwood (16 Dec 2003, 21:08) Replies: 1, Views: 37415
Subject: Re: Alternative JBoss configuration
On 16 Dec 2003 19:33, jarkko wrote:

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

>Example:
>myEar.ear
> hibernateStartup.sar
>   META-INF/
>            jboss-service.xml

> myHibernateClasses.jar
>   eg/
>      package/
>             MyClass.class
>             MyClass.hbm.xml


>This configuration would allow to deploy the EAR in exploded format.

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.
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]