Packaged JMS Application Module References In weblogic-application.xml Packaged JMS Application Module References In ejb-jar.xml

5-4 Configuring and Managing JMS for Oracle WebLogic Server Figure 5–1 Relationship Between a JMS Application Module and Descriptors In an EJB Application

5.3.2.1 Packaged JMS Application Module References In weblogic-application.xml

When including JMS modules in an enterprise application, you must list each JMS module as a module element of type JMS in the weblogic-application.xml descriptor file packaged with the application, and a path that is relative to the root of the application. For example: module nameAppScopedEJBsname typeJMStype pathjmsappscopedejbs-jms.xmlpath module Configuring JMS Application Modules for Deployment 5-5

5.3.2.2 Packaged JMS Application Module References In ejb-jar.xml

If EJBs in your application use connection factories through a JMS module packaged with the application, you must list the JMS module as a res-ref element and include the res-ref-name and res-type parameters in the ejb-jar.xml descriptor file packaged with the EJB. This way, the EJB can lookup the JMS Connection Factory in the applications local context. For example: resource-ref res-ref-namejmsQueueFactoryres-ref-name res-typejavax.jms.QueueConnectionFactoryres-type resource-ref The res-ref-name element maps the resource name used by java:compenv to a module referenced by an EJB. The res-type element specifies the module type, which in this case, is javax.jms.QueueConnectionFactory. If EJBs in your application use Queues or Topics through a JMS module packaged with the application, you must list the JMS module as a resource-env-ref element and include the resource-env-ref-name and resource-env-ref-type parameters in the ejb-jar.xml descriptor file packaged with the EJB. This way, the EJB can lookup the JMS Queue or Topic in the applications the local context. For example: resource-env-ref resource-env-ref-namejmsQueueresource-env-ref-name resource-env-ref-typejavax.jms.Queueresource-env-ref-type resource-env-ref The resource-env-ref-name element maps the destination name to a module referenced by an EJB. The res-type element specifies the name of the Queue, which in this case, is javax.jms.Queue.

5.3.2.3 Packaged JMS Application Module References In weblogic-ejb-jar.xml