• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in j2ee design pattern

 
Minu Jain
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are designing an n-tier java app. you have already decided that some of your JSPs will need to get data from a Customer entity bean. you are trying to decide whether to use a customer stub object or a transfer object. which statements are true? (choose two).
A. the stub will increase network traffic
B. the stub will increase the logic necessary in the JSPs
C. in both cases, the JSPs can use EL expressions to get data
D. only the tranfer object will need to use business delegate
E. using the stub approach allows you to design the application without using a service locator.
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please QuoteYourSources
 
Salim Khatib
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A. the stub will increase network traffic
C. in both cases, the JSPs can use EL expressions to get data

Should be the right answers,

Stub is the local object in the JVM but will make
remote calls over the network for fetching the data eventually
increasing the network traffic

EL expression can be used for both stubs and Tranfer objects.

Lets me know if I am wrong








 
Minu Jain
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you so much for the explanations.
your answers match!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic