Chapter 5 Client Design
243
EJB Component Files
Service endpoint interface class and
generated class files
META INF
ejb jar.xml
client jaxrpc mapping file.xml
wsdl
WSDL files
Figure 5.9
EJB Module Packaging
For EJB tier client components, the
service ref
element is defined in the
deployment descriptor of the
ejb jar.xml
file and the
client jaxrpc mapping
file.xml
mapping file. The WSDL files are in a
META INF/wsdl
directory. The
service endpoint interface as well as generated class files are stored in the mod
ule's root directory.
The client developer should ensure that the
resource ref
definition in the
client deployment descriptor is correct and that the JAX RPC mapping file is
packaged in the correct module.
5.4.4.2
J2SE Clients
J2SE clients using stubs or dynamic proxies should package the service endpoint
interface with the application client, and they should be referenced by the class path
attribute of the package's manifest file. J2SE clients also must provide a JAX RPC
runtime. For example, a J2SE client is packaged along with its supporting classes or
with references to these classes. (See Figure 5.10.) The service endpoint interface as
well as the necessary generated files may be provided in a separate JAR file.
New Page 1