I have this code as per the tutorial for the server side B4J remote database:
There is no error in the code except for the duplicate Sub AppStart. However, when I delete this duplicate it shows errors on code lines which I have given the numbers for in the 'Sub Process Globals' and the other 'Sub AppStart' routines
Thanks
PK
B4J server side code:
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: true
#End Region
#AdditionalJar: mssql-jdbc-8.2.2.jre8.jar
Sub Process_Globals
Public Srvr As Server
Public rdcConnector1 As RDCConnector
Public const VERSION As Float = 2.22
Type DBresult(Tag As Object,Columns As Map, Rows As List)
Type DBcommand (Name As String,Parameters() As Object)
End Sub
Sub AppStart (Args() As String)
Srvr.Initialize("")
rdcConnector1.Initialize
Srvr.Port = rdcConnector1.serverPort
Srvr.AddHandler("/test", "TestHandler", False)
Srvr.AddHandler("/rdc", "RDCHandler", False)
Srvr.Start
Log($"jRDC is running (version = $1.2{VERSION})"$)
StartMessageLoop
End Sub
Sub AppStart (Args() As String)
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
There is no error in the code except for the duplicate Sub AppStart. However, when I delete this duplicate it shows errors on code lines which I have given the numbers for in the 'Sub Process Globals' and the other 'Sub AppStart' routines
Thanks
PK