1Z0-895 · Question #66
A developer wants to package an enterprise bean FooBean within a .war file: @Stateless public xlass FooBean { public void foo () {} } Which package approach is correct?
The correct answer is D. / (Root). To include enterprise bean class files in aWARmodule, the class files should be in the WEB- INF/classes directory. Note: Enterprise beans often provide the business logic of a web application. In these cases, packaging the enterprise bean within the web application'sWARmodule…
Question
Options
- A/ (Root)
- B/ (Root)
- C/ (Root)
- D/ (Root)
How the community answered
(36 responses)- A11% (4)
- B6% (2)
- C6% (2)
- D78% (28)
Explanation
To include enterprise bean class files in aWARmodule, the class files should be in the WEB- INF/classes directory. Note: Enterprise beans often provide the business logic of a web application. In these cases, packaging the enterprise bean within the web application'sWARmodule simplifies deployment and application organization. Enterprise beans may be packaged within aWARmodule as Java programming language class files or within a JAR file that is bundled within theWARmodule. The Java EE 6Tutorial, Packaging Enterprise Beans inWAR Modules
Topics
Community Discussion
No community discussion yet for this question.