Q1: | What sort of state can stateless Session beans have? |
A1: | Somewhat surprisingly, stateless Session beans can store state, but it must be independent of the client. |
Q2: | What is the prefix that will appear in all JNDI lookups? |
A2: | The java:comp/env context is guaranteed to exist in an J2EE environment. |
Q3: | How are EJB system exceptions different from regular Java exceptions? |
A3: | RemoteExceptions can be caused by network problems, which, in the context of distributed J2EE enterprise applications, represent a system-level rather than application-level exception. |
Q4: | How is the timeout for a stateful Session bean defined? |
A4: | Surprisingly, the mechanism for specifying the timeout interval for a stateful Session bean is not mandated in the EJB specification. |
3.142.166.31