Knowledge Base

CPIC Application Limited to Single Local APPC LU

Article ID: 181123

Article Last Modified on 5/30/2007


APPLIES TO


This article was previously published under Q181123

SYMPTOMS

An application that uses the SNA Server CPIC API interface is limited to a single Local APPC LU, even if the application calls Initialize_Conversation (CMINIT) more than once.

MORE INFORMATION

Because there is no explicit provision in the CPIC API for the application to specify the Local APPC LU alias that it wants to use, SNA Server provides three methods for defaulting the Local APPC LU alias, as described in the following Knowledge Base article:

132720 SNA Server CPIC Allocate Error 20 (CM_PRODUCT_SPECIFIC_ERROR)

One of the methods is to enable the "Member of Default Outgoing Local APPC LU Pool" on the SNA Server Local APPC LU. If more than one Local APPC LU is enabled with this option, the CPIC application is still limited to a single Local LU from this pool.

This restriction has the following implications: In order for the CPIC application to acquire a session over a different Local APPC LU, the application must be ended (or call WinCPICCleanup) prior to its first call to CMINIT.

The following is a summary of this behavior, as seen in an SNA Application CPIC and APPC trace. Note that the CPIC API is built on top of the APPC API interface. When a CPIC application calls the CPIC API functions, these CPIC functions result in calls to the underlying APPC interface.
CPIC Application   CPIC API   APPC API
================   ========   ========
  CMINIT ->
                  TP_STARTED ->
                             <- TP_STARTED OK
                  <- CMINIT OK
  CMALLC ->
                  MC_ALLOCATE ->
                             <- MC_ALLOCATE OK
  CMSEND ->
                  MC_SEND_DATA ->
  [...]

  CMINIT ->
                 <- CMINIT OK
				
Note that the second CMINIT request never causes CPIC to issue another TP_STARTED request. The TP_STARTED request causes a new Local APPC LU to be requested.

This is still an issue with the following SNA Server Service Packs:

Keywords: kbprb KB181123