To prepare your JMS provider
Refer to your JMS server documentation to start the server.
Create the following queues within your JMS server:
You may need to restart the server after creating the queues. Refer to your JMS server documentation for more details.
To start the QAnywhere client and server components
At the command prompt, run the following command:
mlsrv11 -m -c "dsn=QAnywhere 11 Demo" -sl java(-cp JMS-client-jar-files) -vcrs -zu+ |
where JMS-client-jar-files is a semicolon delimited list of jar files that are required to access the JMS server. See your JMS server documentation for details.
The MobiLink server starts for messaging.
From the Start menu, choose Programs » SQL Anywhere 11 » QAnywhere » Tutorial » SQL Anywhere » QAnywhere Agent For SQL Anywhere -- saclient1.
The QAnywhere Agent loads.
From the Start menu, choose Programs » SQL Anywhere 11 » QAnywhere » Tutorial » SQL Anywhere » TestMessage -- saclient1.
The QAnywhere sample application loads.
To start the JMS version of the TestMessage client
At the command prompt, run the following command:
edit samples-dir/QAnywhere/JMS/TestMessage/build.bat |
The editor window appears.
Examine the code in the build.bat file and ensure that your JMS server file paths are correct.
For example, if you use EAServer, the default settings are defined under the easerver heading:
:easerver rem For EAServer, compile with the following JAR files set easerver_install=c:\program files\sybase\easerver6 set jmsjars=%easerver_install%\lib\eas-client-15.jar goto build_app |
If EAServer is not located in the c:\program files\sybase\easerver6 directory, update the easerver_install variable so that it points to the proper install directory. Make sure that the jmsjars variable points to the proper location of the JMS server jar files.
If your JMS server is not listed, use the custom header settings defined near the beginning of the batch file to define your own JMS file path locations.
When finished, save your changes and exit the editor.
At the command prompt, run the following command to compile the JMS TestMessage client:
build.bat JMS-server-name |
where JMS-server-name is the name of your JMS server represented as a header name in build.bat. Acceptable values are easerver, fioranomq, jboss, tibco, weblogic, and custom. By default, build.bat uses easerver.
At the command prompt, run the following command:
edit samples-dir/QAnywhere/JMS/TestMessage/run.bat |
The editor window appears.
Examine the code in the run.bat file and ensure that your JMS server file paths are correct.
For example, if you use EAServer, the default settings are defined under the easerver heading:
:easerver rem For EAServer, compile with the following JAR files set easerver_install=c:\program files\sybase\easerver6 set jmsjars=%easerver_install%\lib\eas-client-15.jar goto build_app |
If EAServer is not located in the c:\program files\sybase\easerver6 directory, update the easerver_install variable so that it points to the proper install directory. Make sure that the jmsjars variable points to the proper location of the JMS server jar files.
If your JMS server is not listed, use the custom header settings defined near the beginning of the batch file to define your own JMS file path locations.
When finished, save your changes and exit the editor.
At the command prompt, run the following command to run the JMS TestMessage client:
run.bat JMS-server-name |
where JMS-server-name is the name of your JMS server represented as a header name in build.bat. Acceptable values are easerver, fioranomq, jboss, tibco, weblogic, and custom. By default, build.bat uses easerver.
Move the JMS TestMessage window to the right side of your screen under the existing TestMessage -- saclient1 window.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |