All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.commerce.Commerce

java.lang.Object
   |
   +----semper.commerce.Commerce

public final class Commerce
extends Object
This class provides additional commerce layer services that are not associated with any dynamically instantiated commerce layer objects. This class cannot be instantiated (private constructor).

Version:
$Id: Commerce.java,v 1.9 1998/09/04 10:42:50 semper Exp $
Author:
Rolf Michelsen, Stig Mj°lsnes

Method Index

 o getBAIdentifier(TXContext, AccessControlHandle)
Returns the identifier of the business application type suitable for handling a specific TX layer context.

Methods

 o getBAIdentifier
 public static String getBAIdentifier(TXContext context,
                                      AccessControlHandle ach) throws AccessException, AssociationException
Returns the identifier of the business application type suitable for handling a specific TX layer context. This method is invoked by the server dispatcher and access is controlled by a particular access control capability. The method executes a protocol with the client commerce layer to obtain the BA identifier. This is then returned to the dispatcher.

This method should only be invoked once for each TX context established, and it should be invoked before any other commerce layer service is invoked on the context.

Note Access control is not fully supported in the current implementation. Any access control handle or null reference will give access to this method.

Parameters:
context - The TX context to the client.
ach - Access control handle possessing the capability granting access to this service.
Returns:
The identifier of the business application type that should handle this context.
Throws: AccessException
Thrown if the given access control handle does not contain the required capabilities to access this service.
Throws: AssociationException
Thrown if there is something wrong with the association to the client preventing execution of the protocol to obtain the BA type identifier.

All Packages  Class Hierarchy  This Package  Previous  Next  Index