I think it is about the new Virtual Deployment Framework (VDF)
See i.e.
http://www.packtpub.com/article/develop ... ign=ramsaiThis configuration is still valid for pre 5.0 releases of JBoss AS. With the introduction of the new Virtual Deployment Framework (VDF), you now have to provide your SessionFactory configuration using the Hibernate XML schema. For example, if you want to link your SessionFactory to your MySQL database, you have to add the following service-hibernate.xml. (Be aware, the suffix is -hibernate.xml and not –service.xml.)
<hibernate-configuration xmlns="urn:jboss:hibernate-deployer:1.0">
<session-factory name="java:/hibernate/SessionFactory"
bean="jboss.test.har:service=Hibernate,
testcase=TimersUnitTestCase">
<property name="datasourceName">java:/MySqlDS</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<depends>jboss:service=Naming</depends>
<depends>jboss:service=TransactionManager</depends>
</session-factory>
</hibernate-configuration>
The preceding configuration file needs to be stored in the META-INF folder of your Hibernate archive (HAR) file.
Now it is clear for me