File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Got another sample quiz item to run by ya... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Got another sample quiz item to run by ya..." Watch "Got another sample quiz item to run by ya..." New topic
Author

Got another sample quiz item to run by ya...

Mike Cunningham
Ranch Hand

Joined: Nov 14, 2000
Posts: 129
This was from the IBM sample 287 test.
Given the design goal of having an application be as robust as possible, which techniques should the developer AVOID using in the design:
A) Use persistent HttpSessions to manage application state data.
B) Use stateful session EJBs to manage application state data.
C) Make references to node-specific resources.
D) Make all resource references via java:comp/env JNDI references.
Any help on this would be much appreciated.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Given the design goal of having an application be as robust as possible, which techniques should the developer AVOID using in the design:
A) Use persistent HttpSessions to manage application state data.

Avoid based on the fact that HttpSession data is only available for HTTP clients?
B) Use stateful session EJBs to manage application state data.

This should be ok.
C) Make references to node-specific resources.

Avoid for the obvious reasons.
D) Make all resource references via java:comp/env JNDI references.

This should be ok.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Swapan Mazumdar
Ranch Hand

Joined: Jul 23, 2003
Posts: 83
Originally posted by Lasse Koskela:
C) Make references to node-specific resources

Hi Lasse,

I am preparing for the test 287 and would be writing the exam soon. What does the above quoted statement means literally?
arunij katiliyar
Greenhorn

Joined: Mar 09, 2005
Posts: 26
AVOID OPTIONS A , B , C.

OPTIONS C becomes a failure in failover as result of sticky sessions or server affinity .OPTION A no good . OPTION B becomes a failure in failover .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Got another sample quiz item to run by ya...