rem in order to open a plugin, the plugin ALIAS must be defined in config file rem following OPEN line assumes a line in config file of the form rem ALIAS J0 com.basis.bbj.bridge.BBjBridgeOpenPlugin
open (1)"J0"
REM check command line params. should be "auction" "userName" if(argc < 2) goto invalidLogin endif
group$=argv(1)
if (group$<>"auction") goto invalidLogin endif
REM create a namespace for this user. keep a reference to it REM so that it will persist api! = BBjAPI() prefix$="com.basis.techcon3" name$=argv(1) + "." + argv(2)
date!=new java.util.Date() java.lang.System.out.println( date!.toString() + " : logon by: " + name$)
REM write the (now valid) user name to output and terminate print(1)name$, release
REM error handler for invalid login invalidLogin: print(1)"invalid login",
REM general error handler release_on_error: release
|