skip to main |
skip to sidebar
JIBX - Starting From Code
JIBX Starting from existing Java Code !
- Download Jibx http://jibx.sourceforge.net/
- Refer to Sample code which comes with Jibx \jibx_1_2_1\jibx\examples\starter
- Start with the code and create the bindings and XSDs using BindGen tool
- java -cp ..\..\lib\jibx-tools.jar;bin org.jibx.binding.generator.BindGen org.jibx.starter.Customer
- You can also do this using eclipse Run Configurations, Just add all the jars which are shipped with Jibx in classpath.

- Compile the existing class files with the generated bindings so that it will have JIBX binding attached to the class files. This will increase the size of the existing class files, plus you will see some JIBX related class files like JiBX_bindingCustomer_access.class, JiBX_bindingFactory.class.
- java -cp .:lib/support.jar:/home/dennis/jibx/lib/jibx-bind.jar org.jibx.binding.Compile binding.xml
- Now run the Test.java sample program which does the marshaling and un marshaling and you should be good to go.
No comments:
Post a Comment