Q&A

Q1: Why would it be pointless to deploy the getter of a multi-valued cmr-field using the RequiresNew transaction attribute?
A1: This would be pointless because the returned collection cannot be used outside of the transaction in which it was materialized.
Q2:What happens to the current transaction when an EJB throws an application exception?
A2: The bean may or may not mark the transaction for rollback; consult the bean's documentation.
Q3:When using SQLj Part 2, why should the Java class acting as an abstract data type define a static variable serialVersionUID?
A3: To provide forward compatibility with future versions of the class.

Get Sams Teach Yourself J2EE™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.