I'm trying to use Hibernate in several applications, each of which has their own EJB. So far the only way I know how to 'deploy' hibernated classes is by making a .SAR archive with the corresponding hbm.xml files and class-files and the (not very aptly named) jboss-service.xml that describes the HibernateFactory MBean.
Each works fine on its own. I'm developing more than one application however, and they run on the same JBoss server. For each application I have an .EAR and a .SAR (being able to put everything in the .EAR would have been much more convenient.) When I deploy all of it I get an error when it gets to the second .SAR file complaining: org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=HibernateFactory, name=HibernateFactory) Does it mean I can have only one .SAR with Hibernate data in it? Or is there a way to deploy the mapping data separately? If not that would be extremely inconvenient, as I don't like to create dependencies between otherwise completely unrelated applications and their EJBs. I did find references to a har-deployer using .HAR files. With these it seems possible to provide mapping data on a per .EAR basis. This is related to version 3.2.6 however, which I can't find anywhere. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849651#3849651 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849651 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
