Below is an example of a jboss. The implementing class is specified by the ejb-class tag. Local and remote interfaces are specified with the local and remote tags, respectively. JNDI bindings are specified through the jndi-name and the local-jndi-name tags. The management interface is specified by the management tag. The ObjectName can be explicitly set with the object-name tag. The default is: jboss.
JBoss offers the capability to create message producers and consumers through the Producer and Consumer annotations or through the jboss. If you want to know all the details, you can get the DTD for jboss-web. A graphical view of the DTD is given in Figure 7. Resource references are links to resource factory bindings. The jboss-web. An example web. An EJB reference see servlet2. This call will look like this:. To be allowed this call, the servlet must declare a reference to the ejb its using in the its deployment descriptor.
Two types of references exist; internal and external. An EJB reference is called internal when the servlet is in the same application unit as the bean B. This means that the servlet and ejb is physically packaged in the same ear.
You don't have to provide anything in the jboss-web. A mapping to an ejb-local-ref required by the web. A mapping to a service-ref required by the web. A mapping to a resource-ref required by the web. A mapping to a resource-env-ref required by the web. A mapping to a message-destination-ref required by the web. A mapping to a persistence-context-ref required by the web. A mapping to a persistence-unit-ref required by the web.
A mapping to a post-context required by the web. A mapping to a pre-destroy required by the web. A mapping to a data-source required by the web. Annotation Configuration Elements Attribute Description class-name Name of the class of the annotation. The element, such as ServletSecurity , which represents servlet security. The element, such as RunAs , which represents the run-as information. The element, such as MultiPart , which represents the multi-part information.
List of condition elements, which indicate what kind of listener to add to the Context of the application. Valid choices are:.
0コメント