Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 5031385
Votes 0
Synopsis m-let file format should be XML
Category jmx:classes
Reported Against tiger
Release Fixed
State 11-Closed, Will Not Fix, request for enhancement
Priority: 4-Low
Related Bugs 4716827 , 5072268 , 5108724
Submit Date 14-APR-2004
Description
The m-let service (javax.management.loading.MLet) defines a text file format that describes MBeans to be loaded.  That format looks like XML, but is not quite.  Here's an example:
<MLET
  CODE = com.example.mlets.MyMLet
  CODEBASE = http://codehost/mlets
  ARCHIVE = "MyMLet.jar"
  NAME = MyMLet>
</MLET>

There's no XML header that would declare a namespace and character encoding.  There's no defined syntax for comments.  Tools that can handle XML files can't handle this.

Plainly, now that XML is part of the core Java platform, it would make sense to use a real XML format here.  Rather than trying to allow both the old format and the new with the same API, the proposal would be to deprecate the existing MLet.getMBeansFromURL methods and add new methods that expect an XML file.  The exact schema for this file is yet to be defined but it would lead to files very similar to the example above.
Work Around
N/A
Evaluation
Cannot fix for Tiger because of required J2EE 1.4 compatibility.  Should address in Mustang.
  xxxxx@xxxxx   2004-04-14
Although vaguely desirable, MLets are not widely used enough to justify this change, especially since by default it would be incompatible with existing MLet files.
Posted Date : 2008-09-17 14:42:00.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang