Contents Using Java Singletons Is OK If They're Used Correctly ........201 Prefer Scheduled Updates to Real-Time Computation ...202 Use a Serialized Java Class to Add Compiler Type Checking to message-Driven Bean Interactions .202 Always Call setRollbackOnly when Application Exceptions Occur...................203 Limit Parameters to ejbCreate 202 Don't Use Data Transfer Objects in ejbCreate.................204 Don't Use XML to Communicate as a DTO Mechanism Unless You Really,Really Have To 204 Appendix Pattern code Listing ..................................207 References....… ....241 ...243Using Java Singletons Is OK If They’re Used Correctly . . . . . . . .201 Prefer Scheduled Updates to Real-Time Computation . . . . . . . . .202 Use a Serialized Java Class to Add Compiler Type Checking to Message-Driven Bean Interactions . . . . . . . . . . . . . . . . . . . . . . .202 Always Call setRollbackOnly when Application Exceptions Occur . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203 Limit Parameters to ejbCreate . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203 Don’t Use Data Transfer Objects in ejbCreate . . . . . . . . . . . . . . . . .204 Don’t Use XML to Communicate as a DTO Mechanism Unless You Really, Really Have To . . . . . . . . . . . . . . . . . . . . . . . . . .204 Appendix Pattern Code Listing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .241 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243 x Contents