JMS STEP 1: CREATE FOREIGN SERVER IN A WEBLOGIC SERVER
Introduction and Definitions
A Foreign Server represents a JNDI provider that is outside WebLogic server. It contains information that allows a local WebLogic Server instance to reach a remote JNDI provider, thereby allowing for a number of foreign connection factory and destination objects to be defined on one JNDI directory.
Create a JMS Module
- Services > Messaging > JMS Modules
- Select New
- Name: HostSystemModule
- Leave the other options empty
- Targets: obdx_server
- Press Next
- Leave “Would you like to add resources to this JMS system module” unchecked and press .
Create a foreign Server
- Services > Messaging > JMS Modules
- Select HostSystemModule and press
- Select Foreign Server and
- Name: ForeignServer (Once you create a foreign server, you cannot rename it. Instead, you must delete it and create another one that uses the new name)and Click to proceed to the targeting page or click to create the foreign server.
To configure additional properties for the new foreign server
- Services > Messaging > JMS Modules
- Select HostSystemModule
- Click on ForeignServer
- On the Configuration > General tab
- Enter Following details
- JNDI Initial: enter the name of the class that must be instantiated to access the JNDI provider. For example (weblogic.jndi.WLInitialContextFactory)
- JNDI Connection URL: enter the URL that WebLogic Server uses to contact the JNDI provider. (http://IP:port)
- Click .
Create foreign connection factories
- Services > Messaging > JMS Modules
- Select HostSystemModule
- Click on ForeignServer
- On the Configuration> Connection Factories tab press
- Enter Following details
- Name: enter a name for the foreign connection factory.
- Local JNDI Name : specify the name that the remote object will be bound to in the local server's JNDI tree and is used to look up the object on the local server.
- Remote JNDI Name: specify the name of the remote object that will be looked up in the remote JNDI directory.
- Click .
Create foreign destinations
- Services > Messaging > JMS Modules
- • Select HostSystemModule
- • Click on ForeignServer
- • On the Configuration>Destination tab press
- • Enter Following details
- Name: enter a name for the foreign destination.
- Local JNDI Name :specify the name that the remote object will be bound to in the local server's JNDI tree and is used to look up the object on the local server.
- Remote JNDI Name: specify the name of the remote object that will be looked up in the remote JNDI directory.
- • Click .