1Z0-895 · Question #36
A developer is writing client code to access a session bean deployed to a server instance. The client can access the session bean under which of these circumstances? (Choose three)
The correct answer is A. The client is deployed in the same JVM as the session bean and the session bean has a local interface. B. The client is deployed in the same JVM as the session bean and the session bean exposes a no- interface D. The client is deployed in a different JVM from the session bean and the session bean has a remote interface. D: If your architecture has a requirement whereby the client application (web application or rich client) has to run on a different JavaVirtual Machine (JVM) from the one that is used to run the session beans in an EJB container, then you need to use the remote interface.
Question
Options
- AThe client is deployed in the same JVM as the session bean and the session bean has a local interface.
- BThe client is deployed in the same JVM as the session bean and the session bean exposes a no- interface
- CThe client is deployed in a different JVM from the session bean and the session bean has a local interface.
- DThe client is deployed in a different JVM from the session bean and the session bean has a remote interface.
- EThe client is deployed in a different JVM from the session bean and the session bean has a nointerface
How the community answered
(44 responses)- A73% (32)
- C9% (4)
- E18% (8)
Explanation
D: If your architecture has a requirement whereby the client application (web application or rich client) has to run on a different JavaVirtual Machine (JVM) from the one that is used to run the session beans in an EJB container, then you need to use the remote interface.
Topics
Community Discussion
No community discussion yet for this question.