Yup, that looks nice; submit a patch.

The JMX property for transaction.factory_class is called
transactionStrategy (just for confusion's sake)....




                                                                                       
                                               
                    Jiri Luzny                                                         
                                               
                    <[EMAIL PROTECTED]>                 To:     [EMAIL PROTECTED]      
                       
                    Sent by:                                cc:                        
                                               
                    [EMAIL PROTECTED]       Subject:     [Hibernate] JMX config        
                               
                    eforge.net                                                         
                                               
                                                                                       
                                               
                                                                                       
                                               
                    09/02/03 05:58 PM                                                  
                                               
                                                                                       
                                               
                                                                                       
                                               




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




**********************************************************************
Any personal or sensitive information contained in this email and
attachments must be handled in accordance with the Victorian Information
Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
(Commonwealth), as applicable.

This email, including all attachments, is confidential.  If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this email or attachments.  Any confidentiality or
privilege is not waived or lost because this email has been sent to you in
error.  If you have received it in error, please let us know by reply
email, delete it from your system and destroy any copies.
**********************************************************************





-------------------------------------------------------
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


Reply via email to