Home // ICSEA 2012, The Seventh International Conference on Software Engineering Advances // View article


The Consolidated Enterprise Java Beans Design Pattern for Accelerating Large-Data J2EE Applications

Authors:
Reinhard Klemm

Keywords: caching; Enterprise Java Beans; object consolidation; software design patterns; software performance

Abstract:
J2EE is a specification of services and interfaces that support the design and implementation of Java server applications. A key concept in J2EE is Entity Enterprise Java Beans (EJBs). Their purpose is to persist the state of application objects and to share objects between transactions. Although typically desirable, the persistence in entity EJBs can also incur a heavy performance penalty. In this article, we describe a novel software design pattern aimed at improving the performance of entity EJBs in J2EE applications with large numbers of EJB instances. The pattern maps multiple real-world entities of the same type (e.g., users) to a single consolidated entity EJB (CEJB), thereby significantly reducing the number of required entity EJB instances. Consequently, CEJBs can increase EJB cache hit rates and database search performance. We present detailed quantitative assessments of performance gains from CEJBs and show that CEJBs can accelerate some common EJB operations in large-data J2EE applications by factors between 2 and 14.

Pages: 691 to 698

Copyright: Copyright (c) IARIA, 2012

Publication date: November 18, 2012

Published in: conference

ISSN: 2308-4235

ISBN: 978-1-61208-230-1

Location: Lisbon, Portugal

Dates: from November 18, 2012 to November 23, 2012