3 Replies Latest reply on Apr 5, 2010 3:48 PM by David Jitendranath

    Using Hibernate layer packaged in an ear

    David Jitendranath Novice

      I have the hibernate layer  (class and mapping files) packaged as .class files and not a jar in the classes directory of an ear archive.

      I want another web service war deployed in the same JBoss AS environment that needs to use the hibernate layer for database access.

      What is the least invasive way of getting this to work?  How can I provide classpath for the webservice war to access the hibernate objects?


      I did read through this doc http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch13.html  but the application ear is an older App and we don't want to make changes to the existing ear by removing the hibernate layer from it and packaging a HAR.


      Env details

      Hibernate 3.0

      JBoss AS 5.1