|Oracle® Fusion Middleware User's Guide for Oracle B2B
11g Release 1 (188.8.131.52.0)
Part Number E10229-06
In Oracle B2B, you can configure third-party JMS providers to exchange messages. For this, you can configure a remote JNDI queue so that B2B can publish messages to a queue or topic on a remote server, or a queue or topic on a third-party JMS server.
This appendix contains the following topic:
You can bind any remote server JNDI context to a Weblogic server by using the Foreign JNDI Provider option in the Weblogic Server console.
This procedure has two steps:
Creating the target JMS server, module, and queue.
Setting up an environment for B2B to write to the JMS queue.
To set up a target JMS server, module, and queue in a computer (say Host1):
Install Weblogic server.
Install Admin server and SOA server.
Create a test JMS server by selecting the SOA server as the target as shown in Figure F-1.
Figure F-1 Creating a Test JMS Server
Create a test JMS module as shown in Figure F-2.
Figure F-2 Creating a Test JMS Module
Launch the test JMS module that you created and create a connection factory with target as SOA server. Create a JMS Queue and with the target as the created test JMS server as shown in Figure F-3.
Figure F-3 Creating a Test JMS Queue
Once you have created a test JMS server, module, and queue on Host1, you need to set up another computer (say Host2) to enable B2B to write to the JMS queue on Host1.
To set up Host2:
Install Weblogic server and SOA server.
Note:Ensure that all the server names and the domain names for Host2 are different from the ones that you have specified for Host1.
Log on to the Weblogic server console.
Navigate to Foreign JNDI Providers under Services on the left-hand navigation panel.
In the Foreign JNDI Providers page, click New to add a test JNDI provider called
Click the newly added JNDI provider name and under the General tab, enter values corresponding to the Weblogic server credentials of Host1.
For example, specify
weblogic.jndi.WLInitialContextFactory as the Initial Context Factory name and
> for the Provider URL as shown in Figure F-4.
Figure F-4 Configuring Connection to Remote Server
Save the changes to complete setting up connection to the remote server.
Click the Links tab.
Create a link to point to the connection factory and to the queue on the JMS server on Host1 by specifying the following:
Name: Any user-defined name
Local JNDI Name: Any user-defined JNDI name
Remote JNDI Name: JNDI names of the connection factory and queue on the JMS server on Host1
Figure F-5 shows the Foreign JNDI Links table displaying a list of foreign JNDI links.
Figure F-5 Foreign JNDI Links
In the B2B user interface, create a JMS channel by specifying the local JNDI names (created to point to the remote JNDI queue and remote connection factory) in the Destination name and Connection factory fields as shown in Figure F-6.
Figure F-6 Creating a JMS Channel in the B2B User Interface