Sub AppStart (Args() As String)
srvr.Initialize("srvr")
srvr.Port = 2220
srvr.StaticFilesFolder = File.Combine(File.DirApp, "www")
srvr.LogsFileFolder = File.Combine(File.DirApp, "logs")
srvr.AddHandler("/hello", "HelloPage", False)
srvr.AddHandler("/FormExampleHelper", "FormExampleHelper", False)
srvr.AddHandler("/FileUpload", "FileUpload", False)
ssl.Initialize
ssl.SetKeyStorePath("C:\b4j", "new.keystore") 'path to keystore file
ssl.KeyStorePassword = "illuminati"
ssl.KeyManagerPassword = "illuminati"
srvr.SetSslConfiguration(ssl, 2225)
'add filter to redirect all traffic from http to https (optional)
' pool.Initialize("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/test?characterEncoding=utf8", _
' "root", "")
' Log("Testing the database connection")
' pool.GetConnection.Close
srvr.Start
Log("Server started")
StartMessageLoop
End Sub