Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8974315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:39:21+00:00 2026-06-15T18:39:21+00:00

When is it appropriate to use a data bean or access bean in Websphere?

  • 0

When is it appropriate to use a data bean or access bean in Websphere? Apologies if I’m asking basic questions, I’m new to Websphere.

In my case, I’m trying to find a list of catalogues by product. Initially I’ve been using the access bean. This works, but it sometimes returns very large result sets / seems very memory intensive.

CatalogEntryDescriptionAccessBean cedabp = new CatalogEntryDescriptionAccessBean();
Enumeration cde = cedabp.findByCatalogEntry(productCatIdLong);

The data bean provides the same method:

CatalogEntryDescriptionDataBean cedabp = new CatalogEntryDescriptionDataBean();
Enumeration cde = cedabp.findByCatalogEntry(productCatIdLong);

Why would I use one bean over the other? Is one more appropriate for reading or writing data? Is the data provided by one cached / more current than the other?

Update:

I found that the two classes have the following relationship:

CatalogEntryDescriptionAccessBean
|_ CachedCatalogEntryDescriptionAccessBean
  |_ CompactCatalogEntryDescriptionAccessBean
    |_ CatalogEntryDescriptionDataBeanBase
      |_ CatalogEntryDescriptionDataBean

So the Data Bean inherits from the Access Bean, hence why it contains the same visible methods.

Interestingly, IBM’s documentation states:

Access beans provide … caching of the
home object, and reduced call traffic to the enterprise bean. Using access beans has additional
advantages:

At run time the access bean caches the enterprise bean home object
because look ups to the home object are expensive, in terms of time
and resource usage. The access bean implements a copyHelper object
that reduces the number of calls to the enterprise bean when commands
get and set enterprise bean attributes. Only a single call to the
enterprise bean is required when reading or writing multiple
enterprise bean attributes.

At the moment, I’m confused about what purpose the Data Bean serves, if the Access Bean is using CMP to reduce calls to the Entity Bean?

I’ve found some more documentation that states:

A data bean is a Java bean that is used in JSP pages to retrieve
information from the enterprise bean. A simple data bean extends its
corresponding access bean and implements the SmartDataBean interface.
By extending an access bean, the data bean provides a simple
representation (indirectly) of an entity bean: it encapsulates the
properties that can be retrieved from or set within the entity bean.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:39:22+00:00Added an answer on June 15, 2026 at 6:39 pm

    DataBean’s implement more caching than a AccessBean, so potentially reduce calls to the database.

    DataBean’s are appropriate for use in the JSP pages that make up the site / web application as the number of instances is likely to be low and it should help control the number of transactions hitting the database.

    AccessBean’s are much less memory intensive, so can be more appropriate to looping processes etc.

    You’d normally expect to find AccessBean’s used in back-end WebSphere commands and reports etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What algorithm would you use to create an application that given appropriate data (list
I often find it confusing as to when it is appropriate to use: rs.Close
I was trying use a set of filter functions to run the appropriate routine,
Is it possible to use WCF Data Services to provide CRUD access to an
would it be appropriate to use PHP's sscanf to read user submitted sentences and
When is it appropriate to use openGl-es on the iPhone versus other toolkits? I
When is it appropriate to use connection pooling and what happens when the maximum
I'm not sure when it is appropriate to use a cursor. I need to
How are file descriptors and file pointers related? When is it appropriate to use
I'm trying to POST some multipart form data to my server using a Browser

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.