0% found this document useful (0 votes)
38 views4 pages

Java Means Durga Soft: DURGA SOFTWARE SOLUTIONS, 202 HUDA Maitrivanam, Ameerpet, Hyd. PH: 040-64512786

The document discusses the Fast Line Reader design pattern which provides a more efficient way to access tabular, read-only data compared to using entity beans. It directly accesses persistent data using JDBC instead of entity beans or Hibernate, improving performance for applications that need to browse or export large quantities of read-only data. The Fast Line Reader pattern uses JDBC persistence logic directly rather than EJB components or Hibernate to avoid potential performance issues when the main requirement is for performance.

Uploaded by

Ashok Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views4 pages

Java Means Durga Soft: DURGA SOFTWARE SOLUTIONS, 202 HUDA Maitrivanam, Ameerpet, Hyd. PH: 040-64512786

The document discusses the Fast Line Reader design pattern which provides a more efficient way to access tabular, read-only data compared to using entity beans. It directly accesses persistent data using JDBC instead of entity beans or Hibernate, improving performance for applications that need to browse or export large quantities of read-only data. The Fast Line Reader pattern uses JDBC persistence logic directly rather than EJB components or Hibernate to avoid potential performance issues when the main requirement is for performance.

Uploaded by

Ashok Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

JAVA Means DURGA SOFT

DURGA SOFTWARE SOLUTIONS ,202 HUDA Maitrivanam, Ameerpet , Hyd. Ph: 040-64512786 Page 1
JAVA Means DURGA SOFT

Fast Line Reader

Sometimes applications access data in a tabular fashion, such as when browsing a


catalog or a list of names or when exporting data in batches for use elsewhere. This kind of data
access is usually read-only. In such situations, using entity beans to represent persistent data
incurs overhead and provides little benefit. Entity beans are best for coarse-grained access to
individual business entities, and are not effective for read-only access to large quantities of
tabular data.

The Fast Lane Reader design pattern provides a more efficient way to access tabular,
read-only data. A fast lane reader component directly accesses persistent data using JDBC
components, instead of using entity beans. The result is improved performance and less coding,
because the component represents data in a form that is closer to how the data are used.

EJB components & Hibernate persistence logics are called as OR (Object Relational)
Mapping persistence logics. Since EJB components are distributed components so their
persistence logic can be accessed from remote clients also.

Hibernate is not a distributed technology so its persistence logic cannot be accessed


from remote clients. To access the hibernate logic from remote clients also we need to keep
hibernate persistence logic in EJB components like Session Bean component.

Problem: If java client application takes the support of EJB entity components or hibernate
persistence logic to interact with database software then that process may kill the performance
of the application.

DURGA SOFTWARE SOLUTIONS ,202 HUDA Maitrivanam, Ameerpet , Hyd. Ph: 040-64512786 Page 2
JAVA Means DURGA SOFT

Solution: Use Fast Line Reader design pattern. This makes java application to take the support
of JDBC persistence logic directly to interact with the database software.

Note: Fast Line Reader design pattern is useful when you requirement is mainly performance.

DURGA SOFTWARE SOLUTIONS ,202 HUDA Maitrivanam, Ameerpet , Hyd. Ph: 040-64512786 Page 3
JAVA Means DURGA SOFT

DURGA SOFTWARE SOLUTIONS ,202 HUDA Maitrivanam, Ameerpet , Hyd. Ph: 040-64512786 Page 4

You might also like