FileDocCategorySizeDatePackage
CustomServerPlatform.javaAPI DocGlassfish v2 API4179Tue May 22 16:54:48 BST 2007oracle.toplink.essentials.platform.server

CustomServerPlatform

public final class CustomServerPlatform extends ServerPlatformBase
INTERNAL: This is the concrete subclass responsible for handling backward compatibility for 9.0.4. This platform overrides: getExternalTransactionControllerClass(): to use a user-specified controller class This platform adds: setExternalTransactionControllerClass(Class newClass): to allow the user to define the external transaction controller when the 904 sessions.xml defines an external-transaction-controller-class.

Fields Summary
Constructors Summary
public CustomServerPlatform(DatabaseSessionImpl newDatabaseSession)
INTERNAL: Default Constructor: JTA is disabled until a transaction controller class is set. Runtime services are disabled.

        super(newDatabaseSession);
        this.disableRuntimeServices();
    
Methods Summary
protected voidexternalTransactionControllerNotNullWarning()
INTERNAL: externalTransactionControllerNotNullWarning(): When the external transaction controller is being initialized, we warn the developer if they have already defined the external transaction controller in some way other than subclassing ServerPlatformBase. This warning is omitted in 9.0.4.

see
ServerPlatformBase
return
void

        //do nothing, because it would be really annoying to show a warning here
    
public java.lang.ClassgetExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use in the DatabaseSession This is defined by the user via the 904 sessions.xml.

return
Class externalTransactionControllerClass
see
oracle.toplink.essentials.transaction.JTATransactionController
see
#isJTAEnabled()
see
#disableJTA()
see
#initializeExternalTransactionController()

        return externalTransactionControllerClass;