• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Best Practise and why  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Customer EJB retrieving customer information from a database is to be displayed in a JSP. In order for the EJB provider to make the information from the Customer EJB available to the application assembler, the BEST approach is to provide the application assembler with a:
a) Wrapper object delegating all method calls to the remote Entity bean. The wrapper object provides access to only the getter methods defined in the Entity bean.
b) Jar file containing the Customer bean's stubs, remote and home interface.
c) Wrapper object delegating all method calls to the remote Entity bean. The wrapper object provides access to the bean's getter and setter methods.
d) Wrapper object acting as a local attribute cache for the remote Entity bean. The wrapper object provides access to the bean's getter methods.
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roland,
Please note that your name violates the JavaRanch naming standard. http://www.javaranch.com/name.jsp Please change your display name to your real first name - space - your real last name.
Thanks
 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Are you just making a read of the info, or are you updating the data first, then displaying the results?
/rick
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!