The application uses a maximum of deployment descriptor and annotation configuration?

Assume you have been tasked with building an ejb-jar containing an EJB application. The EJB
application contains local, remote, and web service and-point EJBs that provide reusable services
within an enterprise. When the application is deployed clients will access the remote session
beans using the global JNDI name java/: ServiceLayer / <bean_name>. All of the EJBs are
located in the com.acme.servicelayer package and are deployed as class files. The application
uses a maximum of deployment descriptor and annotation configuration?

Assume you have been tasked with building an ejb-jar containing an EJB application. The EJB
application contains local, remote, and web service and-point EJBs that provide reusable services
within an enterprise. When the application is deployed clients will access the remote session
beans using the global JNDI name java/: ServiceLayer / <bean_name>. All of the EJBs are
located in the com.acme.servicelayer package and are deployed as class files. The application
uses a maximum of deployment descriptor and annotation configuration?

A.
Name the jar servicelayer.jar with the following structure:
/ (Root)
I � META � INF /
I � MANIFEST.MF
I � classes/
I � com/
I � acme/
I � servicelayer /
<list of classes>

B.
Name the jar servicelayer.jar with the following structure:
/ (Root)
I � META � INF/
I � MANIFEST.MF
I � ejb � jar.xml
I � classes/
I � com/
I � acme /
I � servicelayer/
<list of classes>

C.
Name the jar servicelayer.jar with the following structure:
/(Root)
I � META � INF /
I � ejb � jar.xml
I � com/
I � acme/
I � servicelayer/
<list of classes>

D.
Name the jar servicelayer.jar with the following structure:
/ (Root)
I � META � INF/
I � MANIFEST.MF
I � ejb-jar.xml
I � com/
I � servicelayer/
<list of classes>

Explanation:
Structure of an Enterprise Bean JAR:
Assembly Root
ejb-jar.xml
glassfish-ejb-jar.xml (optional, not used hereNot D, Not C, not B))
META-INF
MANIFEST.MF
All .class files for this module
References: The Java EE 6Tutorial, Packaging Enterprise Beans in EJB JAR Modules



Leave a Reply 6

Your email address will not be published. Required fields are marked *


Oscar

Oscar

C. package is com.acme.servicelayer.

Tamer Saleh

Tamer Saleh

C

Rafael

Rafael

Why C and not D?