Today I tried it with JBoss 4.0 and I got it to work. Many thanks for the 
solution.

One thing though, your suggestion of changing 
code="net.sf.hibernate.jmx.HibernateService" to 
code="net.sf.hibernate.jmx.Hibernate"

gave me an error saying it couldn't find the ClassLoader for 
net.sf.hibernate.jmx.Hibernate. So I changed it back to its original, and then 
it worked.

So in the end it turned out all I needed to do was change  
name="jboss.jca:service=HibernateFactory"
into name="your.app:service=HibernateFactory

I suppose I could have figured this out myself if I had known more about the 
workings of the hibernate-service.xml file. Or maybe it's general JMX 
knowledge? I tried to look for some more documentation on this, but all I can 
find are example files that are exactly the same as mine. If anyone can give me 
a pointer where I can learn more about hibernate-service.xml in particular or 
JMX in JBoss in general I would be very much obliged.





View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864054#3864054

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864054


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to