Print Page

Wednesday, May 20, 2009

Message Prioritization – B2B

In some cases, many enterprises wish to process few critical messages ahead of the rest that arrived in Oracle B2B earlier. There may be several driving force behind this requirement, for an example, message from a specific trading partner. And, there may be much more instances but we are not going to go in detail here as this doesn’t fall under the scope of this document.

Enabling Prioritization:

Oracle B2B has been shipped with AQ queues namely IP_OUT_QUEUE and IP_IN_QUEUE. IP_OUT_QUEUE is used for sending outbound messages and the later used to deliver messages from Trading partner. Those queues can be changed to custom queues and/or other tranport endpoints if needed.

You may enable the prioritization in B2B using transactional transports like AQ and JMS. This applies to both inbound and outbound scenarios.

AQ queues:

You may redefine the IP_OUT_QUEUE to be priority aware queues. Messages that needs to sent ahead of other messages can have a higher priority. And, B2B would start picking up the messages based on priority of message send to AQ queue.

Even though default IP_OUT_QUEUE can be made priority aware queue, we would recommend customers to create custom priority aware queues and use it in agreement.

Please follow this link to create priority aware AQ queues creation script.

For inbound, if you are using AQ queues as partner facing channel, please create priority aware AQ queues and configure the same in agreement. This would enable B2B to operate messages based on their priority for inbound messages also.

JMS Queues:

JMS queues can be used for both inbound and outbound in B2B. By making the JMS queues as a priority aware, you can enable B2B to process messages based on their priority.

Please follow the link to create priority aware queues definition guide for Weblogic.

Note: Weblogic based queue setup is just shown as an example, Oracle B2B can be configured to operate with any standard JMS provider and/or vendor.

2 comments:

Anonymous said...

Hi Sinkar,

Great post !
Your update for creating sample priority aware queues, does not include dequeue api. Inside the Dequeue api also, only enqueue script is there. How should I test with this?

1. Do you mean to say that Only priority aware queues will be recognized by B2B engine for transmitting messages?

2.How should I find whether the queues IP_IN_QUEUE ,IP_OUT_QUEUE are priority aware?

Test Case Scenario:
-----------------------
After applying the patch, MLR#10(ref:7593188.994) to upgrade from 10.1.2.0.0 to 10.1.2.3.0, we are performing the testing to make sure that business messages are transferred to our trading partners without any issues.

Document type used for testing : Purchase Order Request(3A4)
Method used for sending : Directly enqueueing into the b2b outbound queue - IP_OUT_QUEUE
Script source for enqueueing : Oracle Integration B2B User guide 10gRel2

Proto s being Used:
-------------------------
Document Protocol : Rosettanet
Business protocol : Rosettanet over RNIF
Document Type : 3A4

Adapters configured in Interconnect:
---------------------------------------------
B2BApp (Database Adapter)
AQApp
FTPApp

Anonymous said...

Hi Sinkar,

Great post !
Your update for creating sample priority aware queues, does not include dequeue api. Inside the Dequeue api also, only enqueue script is there. How should I test with this?

1. Do you mean to say that Only priority aware queues will be recognized by B2B engine for transmitting messages?

2.How should I find whether the queues IP_IN_QUEUE ,IP_OUT_QUEUE are priority aware?

Test Case Scenario:
-----------------------
After applying the patch, MLR#10(ref:7593188.994) to upgrade from 10.1.2.0.0 to 10.1.2.3.0, we are performing the testing to make sure that business messages are transferred to our trading partners without any issues.

Document type used for testing : Purchase Order Request(3A4)
Method used for sending : Directly enqueueing into the b2b outbound queue - IP_OUT_QUEUE
Script source for enqueueing : Oracle Integration B2B User guide 10gRel2

Proto s being Used:
-------------------------
Document Protocol : Rosettanet
Business protocol : Rosettanet over RNIF
Document Type : 3A4

Adapters configured in Interconnect:
---------------------------------------------
B2BApp (Database Adapter)
AQApp
FTPApp