Hi,
the current JMX configuration mechanism used with JBoss allows configure a fixed set
of properties
only because JBoss cannot handle the setProperty() attribute AFAIK.
I have implemented a small extension in HibernateServiceMBean so you can now specify a
dynamic set
of additional properties in hibernate-service.xml.
e.g.:
<?xml version="1.0" encoding="UTF-8"?>
<service>
<mbean code="cirrus.hibernate.jmx.HibernateService"
name="jboss.jca:service=Hibernate">
<depends>jboss.jca:service=RARDeployer</depends>
<attribute name="JndiName">java:/HibernateFactory</attribute>
...
<attribute name="AdditionalProperties">
<properties>
<property name="hibernate.transaction.factory_class"
value="cirrus.hibernate.transaction.JTATransactionFactory"/>
...
</properties>
</attribute>
</mbean>
</service>
If you think it is an interesting approach I can suply a patch and doc.
BTW: It seems the nice Transaction API (that we use in order to be portable between
both J2EE and
pure Java envs) is not widely used in J2EE because the
hibernate.transaction.factory_class property
is not currently exposed via JMX and I didn't find any complaint in forums ;-)
Jiri.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel