Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » QAnywhere » Writing QAnywhere Client Applications » QAnywhere manager configuration properties

QAnywhere manager configuration properties Next Page

Setting QAnywhere manager configuration properties in a file


You can create or open a QAnywhere manager configuration file in Sybase Central. From the QAnywhere plug-in task pane, choose Create An Agent Configuration File. When you have chosen a file name and location, the Properties dialog for the configuration file opens, where you can set the properties.

The information in a QAnywhere manager properties file is specific to one instance of a QAManager.

When using a properties file, it must be configured for and installed on the remote device with each deployed copy of your application.

For information on specifying the name of the property file, see:

If the properties file does not reside in the same directory as your client executable, you must also specify the absolute path. If you want to use the default settings for the properties, use NULL instead of a file name.

Values set in the file permit you to enable or disable some of the QAnywhere features, such as automatic message compression and logging.

Entries in a QAnywhere manager configuration properties file take the form name=value. For a list of property names, see QAnywhere manager configuration properties. If value has spaces, enclose it in double-quotes. Comment lines start with #. For example:

# contents of QAnywhere manager configuration properties file
# A comment
Referencing the configuration file

Suppose you have a QAnywhere manager configuration properties file called mymanager.props with the following content:


When you create QAManager, you reference the file by name.

Following is an example using C#:

QAManager     mgr;
mgr = QAManagerFactory.Instance.CreateQAManager( "mymanager.props" );
mgr.Open( AcknowledgeMode.EXPLICIT_ACKNOWLEDGEMENT );

For the .NET API, see QAManager interface and QAManagerFactory class.

Following is an example using C++:

QAManagerFactory *  qa_factory;
QAManager *    mgr;
qa_factory = QAnywhereFactory_init();
mgr = qa_factory->createQAManager( "mymanager.props" );
mgr->open( AcknowledgementMode::EXPLICIT_ACKNOWLEDGEMENT );

For the C++ API, see QAManager class and QAManagerFactory class.

Following is an example using Java:

QAManager mgr;
mgr = QAManagerFactory.getInstance().createQAManager("mymanager.props"); AcknowledgementMode.EXPLICIT_ACKNOWLEDGEMENT );

For the Java API, see Class QAManagerFactory and Interface QAManager.