Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
DB Interface Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

10.6 Callback Example

The following code snippet enables the Sybase Open Client Access Module to use external login authentication. It has a database callback class, UserSybDatabaseCallbackImp, which only redefines the producer method produceConnCallback() to create a new instance of the connection callback class, UserSybConnCallbackImp.

The Connection Callback class, UserSybConnCallbackImp, only redefines the preConnect() callback method to clear the username and password and set various login authentication properties.

This example does not provide an instance of the connection callback class in the method RWDBDatabase::connection(), as it is created from the connCallback() producer method in the UserSybDatabaseCallbackImp class.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.