Smart Ticket Demo
These instructions provide steps for setting up and running the Java Smart Ticket demo on WebLogic Server.
SMARTICKET_HOME/smarticket
.
setExamplesEnv
script in
WL_HOME/samples/server/config/examples
will do this for you. WL_HOME is the home location of your
WebLogic installation. By default, WL_HOME is C:/bea/weblogic81
.
J2MEWTK_HOME
variable which specifies the home of your
Wireless Toolkit. Point to the root directory of where you installed the toolkit.
For example, type:
set J2MEWTK_HOME=c:\j2mewtk
SMARTICKET_HOME/smarticket
directory. In this directory run the build script by typing:
localant
SMARTICKET_HOME/smarticket/populate.bat
script to make sure it is pointing to the correct POINTBASEHOME
; this should be set to your
WL_HOME/samples/server/eval/pointbase
directory. Then run the
SMARTICKET_HOME/smarticket/populate.bat
script by typing the following in your development shell
from the SMARTICKET_HOME/smarticket
directory:
populate
MovieInfoData
. Then enter MovieInfoDataSource
in the JNDI field. Enter demoPool
as your Pool Name; this
is the default connection pool the WebLogic examples use. Click on 'Create.' Click on the Targets Tab.
Choose the examplesServer
in the 'Available' column and
click on the right arrow to target it. Click 'Apply.'TicketSalesData
, CustomerData
, and LocaleInfoData
. Their corresponding JNDI names are:
TicketSalesDataSource
, CustomerDataSource
, and LocaleInfoDataSource
. Each uses the
demoPool
as the Pool Name.SMARTICKET_HOME/
smarticket/bin
directory and
select the smarticket.ear
file.
examplesServer
and click on the right arrow to target the application to the examplesServer
. Click
'Create.' Wait a moment until the components of the application have deployed.
A configuration tab will appear for your newly installed application. Click 'Apply' once more.
smarticket.jad
file located in the SMARTICKET_HOME/smarticket/bin
directory and change the following
three lines to point to the correct location of your server:
SMARTicket-Poster-URL: http://localhost:7001/SmarTicketApp/
SMARTicket-Servlet-URL: http://localhost:7001/SmarTicketApp/servlet/
SMARTicket-Splash-URL: http://localhost:7001/SmarTicketApp/
smarticket.jad file in the SMARTICKET_HOME/bin
directory
SMARTICKET_HOME/doc
directory.Notes
When creating a user account for the SmartTicket Application, enter in 95130 or 95054 for your zip code; also, your password must be 6 characters long. Try selecting the 'Poster' mode when you create an account, this will enable your phone or emulator to view a picture of the movie you choose to see.
There are several options available for using the emulator. go into your J2ME Wireless Ticket and manipulate the default device and preferences.
If you have run the client Smart Ticket Application before and are redploying the application on WebLogic, you will have to clear the database of the previous users information. To do so, run the J2ME Wireless Ticket Utility which is available from the Windows start menu. Click on 'Clean Database'. Then restart the Smart Ticket Client.