Home > Documentation > User's guide > Deployment > Deployment plans > geronimo-application-client.xml |
The Geronimo deployment plan for a Java EE application, which is usually packaged as a JAR file, is called "geronimo-application-client.xml". The geronimo-application-client.xml deployment plan is an optional file, but is typically used when deploying a client application JAR file that uses the Geronimo client application container. It is used to specify a moduleId for the deployed module, any third party dependencies, a callback handler definition, any message destinations, resources, additional GBeans, and references to any external GBeans, EJBs, services, or resources.
The geronimo-application-client.xml deployment plan can be packaged as follows:
The geronimo-application-client.xml deployment plan is defined by the geronimo-application-client-2.0.xsd schema located in the <geronimo_home>/schema/ subdirectory of the main Geronimo installation directory. The geronimo-application-client-2.0.xsd schema is briefly described here:
http://geronimo.apache.org/schemas-2.1/docs/geronimo-application-client-2.0.xsd.html
The root XML element in the geronimo-application-client-2.0.xsd schema is the <application-client> element. The top-level XML elements of the <application-client> root element are described in the sections below. The deployment plan should always use the application client namespace, and it typically requires elements from Geronimo System, Geronimo Naming, and Geronimo Security namespaces. A typical deployment for geronimo-application-client.xml can be presented as follows:
The <sys:client-environment> XML element uses the Geronimo System namespace, which is used to specify the common elements for common libraries and module-scoped services for the client application JVM, and is described here:
The <sys:client-environment> element contains the following elements:
The <sys:environment> XML element uses the Geronimo System namespace, which is used to specify the common elements for common libraries and module-scoped services, and is described here:
The <sys:server-environment> element contains the following elements:
The <naming:gbean-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for resolving GBean references, resource references, and Web services references, and is described here:
It is used to map GBean references to GBeans in other applications using the ref-name provided in the GBean deployment descriptor.
The <naming:ejb-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for resolving EJB references, resource references, and Web services references, and is described here:
It is used to map EJB references to EJB's in other applications using remote home and remote interface. The application which contains the EJB being referenced should either be in same EAR or should be included in dependency list of this application. Also note as the EJB's referenced are in a different JVM all the Client interfaces should also be included in current application.
The <naming:service-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for
resolving EJB references, resource references, and Web services references, and is described here:
It is used to map service references to service's in other applications. The application which contains the EJB being referenced should either be in same EAR or should be included in dependency list of this application.
The <naming:resource-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for resolving EJB references, resource references, and Web services references, and is described here:
It is used to map resource references to resources's like JDBC resources, JMS resources, etc. configured outside the current application.
The <naming:resource-env-ref> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for resolving EJB references, resource references, and Web services references, and is described here:
It is used to map resource references to administrative objects deployed as a part of connectors.
The <naming:message-destination> XML element uses the Geronimo Naming namespace, which is used to identify the common elements for resolving EJB references, resource references, and Web services references, and is described here:
It is used to configure a JMS queue or topic which acts like a destination for the messages delivered.
The <sec:default-subject> element uses the Geronimo deployment namespace described here:
The <realm-name> element uses the Geronimo deployment namespace described here:
It names the security realm used for JAAS login.
The <resource> element uses the Geronimo deployment namespace described here:
It specifies the name of a callback class provided by the application for JAAS authentication. This class must implement the javax.security.auth.callback.CallbackHandler interface and follow its specification, as this class will be used by the application client container to collect authentication information from the user.
The <resource> element uses the Geronimo deployment namespace described here:
It contains the definition of all the module-scoped connector resources. The connector resource can be both external and internal to the application client.
The <sys:service> element uses the Geronimo deployment namespace described here:
It is used to define GBean(s) that are configured and deployed with the application client. These additional Geronimo services will be deployed when the application is deployed (and stopped when the application is stopped). Normally, the implementation classes for these services are included at the server level and referenced using a dependency element.
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2011, The Apache Software Foundation, Licensed under ASL 2.0. |