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