List two things a stateful bean can call on its SessionContext that a message-driven bean can never call on its MesageDrivenContext
The solution on page 461 lists the following two methods isCallerInRole() getEJBHome() Does this mean that those are the only two methods that should be included? What about getCallerPrincipal() getEJBLocalHome() I suppose the question was just asking for two of the four methods. Thanks.
all the four methods are shown in Page 456. But what is the exception that is thrown at runtime if any of these methods are called from a MDB? Prasad
Cowgirl and Author
posted 13 years ago
Originally posted by Prasad Kuppa: all the four methods are shown in Page 456. But what is the exception that is thrown at runtime if any of these methods are called from a MDB? Prasad
Howdy -- good question: the answer to that is on page 560 of the book -- the Container is supposed to throw an IllegalStateException if any of these methods are invoked on the context of a message-driven bean. This is also covered on pages 320 and 321 of the spec. cheers, Kathy
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads