JDK-5106222 : Transactional support should be added to JMX
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-09-23
  • Updated: 2008-06-18
  • Resolved: 2008-06-18
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Name: em98259			Date: 09/23/2004


A DESCRIPTION OF THE REQUEST :
JMX does not currently support the notion of a transaction. JMX being a management API, it should provide transactional support.

One possible way to add transactional support is to extend the MBeanServerConnection interface to add beginTrans, commit, rollback ... methods. And for MBeans that support transactional behavior to implement an interface similar to the EJB interface javax.ejb.SessionSynchronization.

JUSTIFICATION :
Complex management systems require transactional support to ensure that system configuration is always left in a consistent state regardless of management operations failures.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Similar to Session EJB programatic transactional model.
ACTUAL -
Currently no support is provided through JMX.
(Incident Review ID: 311644) 
======================================================================

Comments
EVALUATION It is not currently planned to support transactions directly in the JMX 2.0 API. However, the "client context" mechanism described in CR 5072267 could be used to communicate a transaction id from the client to the server. MBeans being accessed in this context will be able to see the transaction id. Discussion in the JSR 255 Expert Group led to the conclusion that the most usual way transactions will work is that the client will begin the transaction, with respect to a database for example, and communicate the id to one or more servers before committing the transaction.
24-01-2008

EVALUATION This should certainly be considered for version 2.0 of the JMX API. ###@###.### 2004-09-23
23-09-2004