Women in Technology

Hear us Roar



Article:
  J2EE Without the Application Server
Subject:   Spring v/s Annotations
Date:   2006-04-24 21:27:49
From:   James_Cooper
I believe the Java persistence API relies heavily on Annotations. Metadata support as available in J2SE 5 is good and more elegant than using DDs. Spring on the other hand requires hell lot of XML DDs.
Full Threads Newest First

Showing messages 1 through 1 of 1.

  • Spring v/s Annotations
    2006-04-27 00:23:40  guypardon [View]

    Hi,

    Yes, XML is still necessary to configure things, but in the future Java will (hopefully) learn from other technologies like Ruby/Rails and configuration will be more intelligent with less XML.

    In any case, the advantage of using tools like Spring and a modular persistence API is that the XML parser is always the same (i.e. the parser embedded in these tools), wherever you deploy. This means that you don't get new XML errors after testing, which already improves the situation a lot IMHO. In other words, this protects you from cross-appserver XML parsing problems (which still exist despite validation tools).

    Metadata is another approach, but on the other hand most people seem to be working on 1.4 still...

    Best,
    Guy