IBM®
跳转到主要内容
    中国 [选择]    使用条款
 
 
Select a scope:Search for:    
    首页    产品    服务与解决方案     支持与下载    个性化服务    
跳转到主要内容

developerWorks 中国  >  XML | Java technology  >

XML and Java technologies: Data binding, Part 2: Performance

After kicking the tires in Part 1, take data binding frameworks out for a test drive

developerWorks

Return to article


Code and test data download

Downloading the code jar gives you full source code for the test program and all the data binding framework test cases. When the jar is unpacked (using jar -xvf xmlbind.jar" in an empty directory, or using a zip file tool) you'll find a test.sh file in the root directory. This is the actual Linux script I used to generate the results shown in the charts, and you can use it as an example of the command line parameters expected by the test program -- but note that to run it you'll need to also download the jar files for any frameworks you want to test and copy them into the lib subdirectory (see the Resources section for links to the framework sites). The jar files for the test program itself, the JiBX runtime, and the XMLPull parser used by the JiBX are already present in the lib subdirectory, and the XML documents used are in the docs subdirectory (along with the JavaDocs for the code).

If you want to see the meanings of the command line parameters used by the test program, run the command line:

java -cp lib/xmldb.jar com.sosnoski.xmlbench.BindBench

and you will see a listing of all the options.

The JiBX mapped binding code included in the com.sosnoski.xmlbench.bindings.jibxmap package classes represents an earlier version of the JiBX framework than what is currently under development. The runtime methods call by the hand-coded marshalling and unmarshalling methods have not changed significantly, but the XDoclet format shown in the files is no longer accurate. For details of the current format, see the JiBX site (linked in Resources).

    关于 IBM 隐私条约 联系 IBM 使用条款