Sun Java Solaris Communities My SDN Account Join SDN
 

JavaOne Online Technical Sessions

Pump Up Your Technical Knowledge
Listen and watch as industry luminaries bring you the latest on Java technologies
Begin Product Tab Sub Links Active Sub LinkJavaOne Technical Sessions JavaOne Hands-on Labs

Harvard's Dataverse Network: A JSF/EJB 3.0 Technology Data Sharing Solution on Java EE 5
TS-4656


Presenter: Merce Crosas, Harvard University; Bob Treacy, Harvard University


The Harvard-MIT Data Center provides an open source platform for management, dissemination, exchange, and citation of virtual collections of quantitative and qualitative research data. HMDC is the principal distributor of quantitative social science data from major international data consortia for Harvard and MIT and a leader in research in digital libraries and statistical methodology. HMDC is affiliated with The Institute for Quantitative Social Science at Harvard University. When HMDC decided to update its technology in 2006, some of the considerations in this decision were the need for I18n, a rich client interface enabling students, researchers, and librarians to organize their work, and support for complex relationships between the entities that make up such a system.

The latter requirement may have steered the HMDC away from Enterprise JavaBeans (EJB) technology in the past, but it felt that the POJO model in the EJB 3.0 architecture was well suited to its needs and chose to develop on Java EE 5. The main components of its development environment are the GlassFish application server, PostgreSQL database, and the Apache Lucene search engine. HMDC used the Sun Java Studio Creator application development tool to get started with JavaServer Faces application development and NetBeans release 5.5 as its main IDE for development in EJB 3.0 software and integration of the JavaServer Faces components with the EJB architecture. It also adapted its JavaServer Faces application pages to use Shale Tiles and adapted Shale Tiles to work with the JavaServer Faces 1.2 platform.

This case study of HMDC's experience in getting started in the Java EE 5 environment is geared to developers who are starting or considering moving to Java EE 5. It includes a demo of the HMDC application and illustrates the code that is driving it. Code samples include end-to-end JavaServer Faces/EJB technology interactions, modeling entity relationships with persistence annotations, Java technology-based code for persistence of entities involving many-to-many and other types of relationships, session facades for entities, and extended persistence contexts with stateful session beans. The session shows how HMDC uses JavaServer Faces technology to build a rich client interface, including the use of cascading style sheets in its JavaServer Faces application pages. It also presents sample code integrating its JavaServer Faces 1.2 application pages with Shale Tiles and code demonstrating its use of the Apache Lucene search engine.

Watch The Session
You need to be a registered Sun Developer Network member to view this multimedia session. If you are a registered SDN member, please click on "Watch Multimedia" button to log-in to view the multimedia session. If you wish to join SDN, please click here.

 
 
FREE White Papers on Java SE, Java EE, cloud computing and database technologies.
New SDN Member Only Offers Every Month Discounts, FREE white papers and more!
Java University and JavaOne Training Sessions

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.