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