Skip to main content
Summary What is the difference between  WORK_QUEUE_POLICY_ID and DISPATCH_WORKQUEUE_POLICY_ID?
Article Number 17443
Environment All Supported Operating Systems Orbix 6.x Orbix Java Runtime
Question/Problem Description

What is the difference between  WORK_QUEUE_POLICY_ID and DISPATCH_WORKQUEUE_POLICY_ID?

Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution

The DISPATCH_WORKQUEUE_POLICY_ID is used to create a POA with a work queue policy other than the default one.

The old policy name WORK_QUEUE_POLICY_ID has changed as is covered in the migration guide:

Work queue policy ID The policy ID that identifies the manual work queue policy has changed in Orbix 6.3. That is, the IT_WorkQueue::WORK_QUEUE_POLICY_ID policy ID has changed to IT_PortableServer::DISPATCH_WORKQUEUE_POLICY_ID.
For example, the ASP 5.1 code for creating a manual work queue policy on the POA would include the following line:
Whereas the Orbix 6.3 code for creating a manual work queue policy would
include a line like the following:
// C - ASP 5.1
...
policies[0] = global_orb->create_policy(
IT_WorkQueue::WORK_QUEUE_POLICY_ID,
workQueuePolicy);
...
// C - Orbix 6.3
...
policies[0] = global_orb->create_policy(
IT_PortableServer::DISPATCH_WORKQUEUE_POLICY_ID,
workQueuePolicy);
...

References to Written Documentation:

Migrating from ASP 5.1 to Orbix 6.3,
Chapter 2 - Source Code Modifications

Workaround
Notes
Attachment
Created date: 06 September 2011
Last Modified: 13 February 2013
Last Published: 23 June 2012
First Published date: 10 September 2011

#KnowledgeDocs
#Orbix