Oracle provides a JMS resource adapter example that is available when you install and configure the examples component of WebLogic Server. This example demonstrates how to use a JMS resource adapter that is deployed on a foreign application server. This example interoperates with the WebLogic JMS service using a simple employee clock-in application.
This example shows how to:
Configure and use a WebLogic Server cluster
Configure and use WebLogic connection factories.
Configure and use distributed topics and queues.
Deploy the JMS resource adapter on one of the supported foreign application servers listed in Supported Application Servers.
Configure JMS resource adapter config-properties
file, which specifies:
A WebLogic JNDI context for the WebLogic Server instance that provides the JMS service
An adminobject
element, which maps the local JNDI name sample/destination/queue
to the destination bound to the WebLogic JNDI as DistributedQueue
An adminobject
element, which maps the local JNDI name sample/destination/topic
to the destination bound in the WebLogic JNDI as DistributedTopic
A connection factory bound in the local JNDI name as a sample or factory that maps to the connection factory bound to WebLogic JNDI as weblogic.jms.ConnectionFactory
Configure the resource-ref
and resource-env-ref
elements in a servlet's web.xml
deployment descriptor file that map to the local JNDI names defined for the JMS resource adapter's connection factory and destinations
Configure activation-config
elements required to allow MDBs to consume inbound messages
When installed, the JMS resource adapter example is located in the ORACLE_HOME
\wl_server\samples\server\examples\src\samples\jms\resourceAdapter
directory. For more information, see Sample Applications and Code Examples in Understanding Oracle WebLogic Server.