I have some questions that I wonder, could you help me a favour?
5. Given the design goal of having an application be as robust as possible, which techniques should the developer AVOID 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. ANS:- B,C Select 2 answers.
Should this be A, C? The question is asking which options should be avoided, and thus, I think we should not use presistent HttpSession to store data.
9. When setting up the JMS server, in a test environment which is already running message-driven beans (MDB), which of the following properties MUST be configured to correctly communicate messages to a new MDB? A. Queue JNDI name B. Initial state to: Started C. Queue name D. Connection factory JNDI name E. Listener port name ANS :- b,c Select 2 answers.
I am a bit wonder, since the server is already configured to support MDB, we now just add a new one. Thus, there should be no effort for the server part. In Howard's book pages 210 and 211, when we create a new MDB, we need to provide the listener port name, and thus, I think E is one of the answers. How about another one? I guess should be B, as A and D are related to server config, and C is not required in the DD, while Destination Type is required. Any comments are welcome. Thanks. Nick [ March 25, 2004: Message edited by: Nicholas Cheung ]
The answers for Q1 should be B and C. Here is the reasons: 1. Stateful Session EJBs have a limited lifespan and are NOT intended to survive server crashes. (Keep in mind the question requires an app be as robust as possible.) 2. Systems that have JSP/servlet front-ends should use HttpSession objects to store session-oriented state on behalf of a client. For systems that do not have a servlet/JSP front-end, Stateful Session EJBs should be used to track session-oriented state similar to the way a web-based system would use an HttpSession object. This was the primary intent of Stateful Session EJBs when they were created. 3. Persistent HttpSessions can cover-up the session failover situations. Hope this helps. BL [ March 26, 2004: Message edited by: Brycex Lin ]
Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182108/" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...