javaxmljibx

XML to POJO Mapping


I have a service that does the following:

  1. receives different XML requests
  2. turns them into JIBX-generated Java objects
  3. maps the JIBX-generated Java objects into POJOs
  4. sends the POJOs to another service
  5. gets a POJO response back
  6. maps POJO back into JIBX-generated Java objects
  7. turns JIBX-generated Java objects back into XML
  8. returns XML to client.

I'd like to make this process more efficient. Can anyone suggest how? Can JIBX map directly into my POJOs?


Solution

  • Yes Jibx can map directly to your POJOs using Jibx mapping files. I think the below link will be very helpful to understand Jibx binding.

    Jibx Introduction