Originally posted by Howard Kushner:
[ December 03, 2003: Message edited by: Howard Kushner ][/QB]
Originally posted by mark sev:
The answer to question 6 has to be B and C. Because all documentation says the setRollbackOnly() can only be called on CMT.
Although not required, application beans should explicitly make the decision
to cause a rollback and not leave it to the container. They can do this by
calling the EJBContext.setRollbackOnly method. Remember, application
exceptions result in a commit unless you explicitly call the setRollbackOnly
Note that setRollbackOnly is only available for container-managed
transactions; bean-managed transactions must use the rollback method of
the UserTransaction object.
Originally posted by Serge Adzinets:
I'm in doubt about this question:
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
Select 2 answers.
Answer A is obviously wrong, E seems to be wrong too, because you set up the listener port in the DD, not in the test environment.
But, you should specify both names and jndi names for both queue and connection factory. So, A, C and D are all correct
Could you show me my mistake?
[ February 09, 2004: Message edited by: Serge Adzinets ]