Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Best Practise and why  RSS feed

 
Steven Lau
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.
 
Thomas Paul
mister krabs
Ranch Hand
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
 
Rick Salsa
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!