Copy the file gloss.db from the html/docs/tutorial/ejb/database directory to the sample directory of your EAServer installation. Create a batch or script file to run the database server as described below.
Creating and running the Windows batch file
In the sample directory of your EAServer installation, create a batch file named run_gloss.bat, containing the commands below. These commands start the database server on port 2640. If that port is in use on your machine, edit the port number to an unused value:
SETLOCAL call %JAGUAR%\bin\setenv.bat cd %JAGUAR%\sample start %JAGUAR_ASA80%\win32\dbsrv8 -x tcpip(ServerPort=2640) -n localhost gloss.db ENDLOCAL
Start the database by running run_gloss.bat. For example, double-click this file in Windows Explorer.
Creating and running the UNIX script file
Edit the bin/setenv.sh script in your EAServer installation, and verify that the SQLANY setting matches the location where you have installed Adaptive Server Anywhere.
Create a text file run_gloss, containing the commands below. These commands start the database server on port 2640. If that port is in use on your machine, edit the port number to an unused value:
#!/bin/sh # # If JAGUAR is not set where you run this, uncomment this
# line and edit the path to match your install location: #JAGUAR=/path/to/your/install export JAGUAR . $JAGUAR/bin/setenv.sh cd $JAGUAR/sample $SQLANY/bin/dbsrv7 -x "tcpip(ServerPort=2640)" -n localhost gloss.db
Change the file permissions to allow the script to be executed. For example:
chmod 777 run_gloss
Run the script in a terminal window.
Copyright © 2005. Sybase Inc. All rights reserved. |