Use JAXB or NOT

Discussions

EJB design: Use JAXB or NOT

  1. Use JAXB or NOT (1 messages)

    Hi,

    In out project, we are interacting with few external system with xml over http. The business logic components works with Java Objects which are built from these XMLs and vice versa. We were considering using JAXB, but when I saw amount of Code that JAXB generates and the way it generates it, I thought defining custom beans for each XML type (There are about 60) and writing parser/formatter would be better. What are the standard practices/patterns people use in this situation? Are there any good experiences with JAXB?

    Thanks,
    Unmesh
  2. Jaxb - best practices[ Go to top ]

    At first I'd like to note that XML is the best way to interact with 3-rd party systems. Secondly, JAXB is the best API for XML in Java. Thus, I recommend it. You can read about export of XML using JAXB in terms of Domain Driven Desing for more information.