Skip Headers
Oracle® Fusion Middleware User's Guide for Oracle B2B
11g Release 1 (11.1.1.7)

Part Number E10229-13
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

G Setting Up B2B Communication By Using Remote JNDI Queue

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:

G.1 Configuring B2B Communication By Using Foreign JNDI

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:

  1. Creating the target JMS server, module, and queue.

  2. Setting up an environment for B2B to write to the JMS queue.

G.1.1 Creating a Target JMS Server, Module, and Queue

To set up a target JMS server, module, and queue in a computer (say Host1):

  1. Install Weblogic server.

  2. Install Admin server and SOA server.

  3. Create a test JMS server by selecting the SOA server as the target as shown in Figure G-1.

    Figure G-1 Creating a Test JMS Server

    Creating a Test JMS Server
    Description of "Figure G-1 Creating a Test JMS Server"

  4. Create a test JMS module as shown in Figure G-2.

    Figure G-2 Creating a Test JMS Module

    Creating a Test JMS Module
    Description of "Figure G-2 Creating a Test JMS Module"

  5. 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 G-3.

    Figure G-3 Creating a Test JMS Queue

    Creating a Test JMS Queue
    Description of "Figure G-3 Creating a Test JMS Queue"

G.1.2 Setting Up an Environment to Connect to the JMS queue

after 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:

  1. 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.

  2. Log on to the Weblogic server console.

  3. Navigate to Foreign JNDI Providers under Services on the left-hand navigation panel.

  4. In the Foreign JNDI Providers page, click New to add a test JNDI provider called TestJNDIProvider.

  5. 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 t3://<host:port> for the Provider URL as shown in Figure G-4.

    Figure G-4 Configuring Connection to Remote Server

    Configuring Connection to Remote Server
    Description of "Figure G-4 Configuring Connection to Remote Server"

  6. Save the changes to complete setting up connection to the remote server.

  7. Click the Links tab.

  8. 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 G-5 shows the Foreign JNDI Links table displaying a list of foreign JNDI links.

      Figure G-5 Foreign JNDI Links

      Foreign JNDI Links
      Description of "Figure G-5 Foreign JNDI Links"

  9. 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 G-6.

    Figure G-6 Creating a JMS Channel in the B2B User Interface

    Creating a JMS Channel in the B2B User Interface
    Description of "Figure G-6 Creating a JMS Channel in the B2B User Interface"