Greetings,
I'm using the Hibernate MBean in JBoss3.2.3 (Hibernate 2.1.4). I'm trying to generate the jboss-service.xml file but somehow the factory is not being binded to the JNDI tree. There are no errors. Here is an extract of my jboss-service.xml that's generated:
Code:
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HelloWorldHibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=HelloWorldDS</depends>
<attribute name="MapResources"></attribute>
<attribute name="JndiName">java:/HelloWorldHibernateFactory</attribute>
..... snip .....
</server>
You'll notice that my mapping files are not being named inside the MapResources attribute. What's to note:
a) The generate hibernate.sar has got the hbm.xml files and jboss-service.xml in it.
b) I am using a hbm2java methodology. I generate the Java class files before calling the hibernatedoclet task.
The wiki page
http://www.hibernate.org/72.html says that I only need to have a fileset under the hibernatedoclet task pointing to my generated java files. I followed that instruction and it's not working out for me.
A more primary question for me is: if the MapResources attribute is empty, will it cause the binding to the JNDI tree to fail ?
Thank you in advance for any pointers.
Alistair[/url]