![]() |
![]() |
|
|
Migrating Applications to the WebLogic Collaborate Messaging API
The following sections describe how to migrate applications from the C-Enabler API (for WebLogic Collaborate Releases 1.0 and 1.01) to the Messaging API (for WebLogic Collaborate Release 2.0):
Introduction
Note: If you are migrating a Java messaging application that was written using the WebLogic Collaborate C-Enabler API to WebLogic Collaborate Release 2.0, the migrated application must be run in a separate JVM in nonpersistent mode.
XOCP is the default protocol used by WebLogic Collaborate for exchanging business messages. In WebLogic Collaborate Releases 1.0 and 1.01, XOCP messaging applications were written using the public XOCP C-Enabler application program interface (API). A message was packaged in an XOCP message envelope and associated with various message headers that specified how to deliver and process the message. In WebLogic Collaborate Release 2.0, the c-enabler and c-hub entities have been integrated. The integrated product is known simply as WebLogic Collaborate.
The WebLogic Collaborate Messaging API now supports the C-Enabler functionality, but continues to reflect the C-Enabler API run-time terminology so that XOCP applications developed using previous versions of the software will continue to work without additional customization.
The WebLogic Process Integrator Studio gives developers a seamless, reliable method of defining and managing the messaging protocols used during WebLogic Collaborate business message exchanges. As a result, programming requirements can be reduced considerably. However, the WebLogic Collaborate Messaging API is provided for developers who want to maintain their installations using a Java program as the interface. See Programming BEA WebLogic Collaborate Messaging Applications.
WebLogic Collaborate uses the XOCP protocol to manage distributed business processes that are being passed back and forth in conversations between trading partners. When appropriately configured, a WebLogic Collaborate installation verifies business roles and security, providing a central management point for the collaborative conversations that are taking place.
When a business process initiates a specific task (for example, issuing a request for a quote), a central management point is created for the collaborative conversations between the trading partners, and business roles and security are verified before a message exchange takes place.
Importing XOCP Applications
The WebLogic Collaborate C-Enabler API does not support the new functionality available in WebLogic Collaborate Release 2.0. However, the C-Enabler terminology has been mapped to WebLogic Collaborate Release 2.0 functions, and XOCP functions continue to be available from the WebLogic Collaborate Messaging API. For a complete terminology mapping, see the table titled Terminology Mappings from WebLogic Collaborate 1.0 and 1.01 to WebLogic Collaborate 2.0 in the following section.
The WebLogic Collaborate Messaging API updates the C-Enabler API primarily in the following areas:
XOCP applications that are being migrated to WebLogic Collaborate Release 2.0 must have:
Updating the Terminology
Understanding the new terminology used in WebLogic Collaborate Release 2.0 is important when mapping the functionality in WebLogic Collaborate Releases 1.0 and 1.01 XOCP applications for migration purposes. The configuration characteristics of your WebLogic Collaborate installation will determine whether functionality previously associated with the c-enabler or the c-hub is invoked. The following table summarizes how the functionality is mapped.
Supporting the WebLogic Collaborate 1.0 and 1.0.1 C-Enabler API
In WebLogic Collaborate Release 2.0, the configuration of a trading partner is predefined and entered in the system using the Administration Console. The trading partner retrieves a collaboration agreement from the WebLogic Collaborate repository.
To support migration to WebLogic Collaborate Release 2.0, a WebLogic Collaborate 1.0 or 1.01 C-Enabler application must have existing database support, and all of its trading partner collaboration agreements must be pre defined in the repository. In order to collaborate in business transactions using the XOCP protocol, the application must be aligned with the WebLogic Collaborate Messaging API to achieve as much backward compatibility as possible. Changes are required in the following areas in order for the existing XOCP applications to migrate to the WebLogic Collaborate Messaging API:
C-Enabler Configuration
In WebLogic Collaborate Releases 1.0 and 1.01, the c-enabler configuration is retrieved from an XML file that defines the following variables:
Then the c-enabler creates (or participates in) and manages the conversations with other trading partners.
In WebLogic Collaborate Release 2.0, the identification and configuration of a trading partner is predefined and entered in the system using the Administration Console. The trading partner retrieves its collaboration agreement from the WebLogic Collaborate repository.
Repository
Existing XOCP applications will work with the WebLogic Collaborate Release 2.0 repository with only one change: WebLogic Collaborate must have a repository, and all the trading partner collaboration agreements used by the XOCP applications must be predefined in the repository. To migrate WebLogic Collaborate Release 1.0 or 1.01 data repository to WebLogic Collaborate Release 2.0, use the Bulk Migrator utility described in Migrating the Repository.
WebLogic Collaborate 1.0 and 1.0.1 C-Enabler API Implementation
This section lists the WebLogic Collaborate Releases 1.0 and 1.01 public API packages, interfaces, and classes that must be reintegrated in the WebLogic Collaborate Release 2.0 run-time implementation in order to migrate XOCP applications.
Packages
com.bea.b2b
com.bea.b2b.enabler
com.bea.b2b.enabler.xocp
com.bea.b2b.protocol
com.bea.b2b.protocol.conversation
com.bea.b2b.protocol.messaging
com.bea.b2b.protocol.xocp.conversation.local
com.bea.b2b.protocol.xocp.messaging
Interfaces
com.bea.b2b.EnablerSession
com.bea.b2b.enabler.xocp.XOCPEnablerSession
com.bea.b2b.protocol.PlugIn
com.bea.b2b.protocol.conversation.State
com.bea.b2b.protocol.messaging.Message
com.bea.b2b.protocol.messaging.PayloadPart
com.bea.b2b.protocol.xocp.conversation.local.Conversation
com.bea.b2b.protocol.xocp.conversation.local.ConversationHandler
Classes
com.bea.b2b.enabler Enabler
com.bea.b2b.protocol.conversation.ConversationType
com.bea.b2b.protocol.messaging.Attachment
com.bea.b2b.protocol.messaging.BusinessDocument
com.bea.b2b.protocol.messaging.DeliveryStatus
com.bea.b2b.protocol.messaging.MessageBase
com.bea.b2b.protocol.messaging.MessageEnvelope
com.bea.b2b.protocol.messaging.MessageToken
com.bea.b2b.protocol.messaging.MiniParser
com.bea.b2b.protocol.xocp.messaging.Ping
com.bea.b2b.protocol.xocp.messaging.QualityOfService
com.bea.b2b.protocol.xocp.messaging.XOCPMessage
com.bea.b2b.protocol.xocp.messaging.XOCPMessageToken
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|