You don't change hibernate-deployer-service.xml. That file should be left intact. Along the lines of:
Code:
<server>
<mbean code="org.jboss.hibernate.har.HARDeployer" name="jboss.har:service=HARDeployer">
<attribute name="ValidateDTDs">false</attribute>
</mbean>
</server>
You then want to package all your hibernate persistant classes, and their hbm.xml files into a jar named *whateveryouwant*
.har The har extension is required.
Inside the har archive, you need a META-INF directory with a hibernate-service.xml descriptor file, that's where you throw your mbean configuration.
Code:
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<attribute name="DatasourceName">java:/DefaultDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.Oracle9Dialect</attribute>
</mbean>