Forums Register Login

2 Mock questions

+Pie Number of slices to send: Send
hi friends
Found these 2 mock questions in an IBM sample test.

For question 1, B is correct for sure. I'm doubtful about A because, how can you say for sure that businessMethod1 has not been configured with 'RequiresNew' ? For businessMethod2, I think its not having 'RequiresNew' since ejbLoad() was not called before it. And what do you think of D ? Isn't it correct ?
For question 2, I think it is C or D. What do you all think ?
1. The following sequence of method calls occurred on a CMP entity bean instance when a session bean invoked the CMP's businessMethod1() and businessMethod2() methods from the same session bean method entityBean.ejbActivate() entityBean.ejbLoad() entityBean.businessMethod1() entityBean.businessMethod2() entityBean.ejbStore() entityBean.ejbPassivate() Assuming that the session bean is configured with 'Required', what MUST be TRUE about the scenario that generated these method calls?
A. The business methods are NOT configured with 'RequiresNew'
B. Any persistent state changes that occur as a result of businessMethod1() are in the same transaction scope as changes made by businessMethod2().
C. Any persistent state changes that occur as a result of businessMethod1() are in a different transaction scope than changes made by businessMethod2().
D. ejbStore() will write the resultant state of the entity bean to the persistent store.
(Choose 2 answers)
2. The following are all true about Message Listener ports configured in the application server to support message-driven beans EXCEPT:
A. The same listener port can be used for more than one message-driven bean.
B. The listener port is bound to a specific JMS provider and a specific queue or topic managed by that JMS provider.
C. Listener ports can be configured to be started explicitly or automatically started when the Application Server starts.
D. Listener ports will ignore any messages posted to the queue or topic for which they are configured prior to being started.
(Choose the best answer)
Thanks
Vipin
+Pie Number of slices to send: Send
Hi Vipin,
For question 1, I'd say B,D.
Question 2 is out of scope of the SCBCD exam IMO (anyway I cannot reply ).
Best,
Phil.
+Pie Number of slices to send: Send
Thanks Phil, I also got the same answers.

Vipin
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 669 times.
Similar Threads
CMTransaction Question
Hard ICE question
287 Pre-assessment test questions - Please answer
158 doubts..
ICE 287 answers for WebSphere 5.0
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:49:33.