B4J Question JRC2 Remote Connector->Config.properties

ocalle

Active Member
Licensed User
Longtime User
Good morning, sorry for post in the wrong place i lose my glasses.
Now i need know what do this handlers in Remote Connector

B4X:
Sub AppStart (Args() As String)
    srvr.Initialize("")
    rdcConnector1.Initialize
    srvr.Port = rdcConnector1.serverPort
    srvr.AddHandler("/test", "TestHandler", False)               '<-----  what do?
    srvr.AddHandler("/rdc", "RDCHandler", False)                '<-----  what do?
    srvr.Start
    Log($"jRDC is running (version = $1.2{VERSION})"$)
    StartMessageLoop
End Sub

I figured out what do Test and what do rdc, i need one command alone? sorry by my ignorance.

JdbcUrl=jdbc:mysql://localhost/test?characterEncoding=utf8

Thank you as ever
 

ocalle

Active Member
Licensed User
Longtime User
I discovered that is the name of the table in mysql database. Now working.


B4X:
 srvr.AddHandler("/[HERE_THE_NAME_OF_YOUR_ OWN_TABLE_IN_ MYSQL"", "RDCHandler", False)
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
srvr.AddHandler("/[HERE_THE_NAME_OF_YOUR_ OWN_TABLE_IN_ MYSQL"", "RDCHandler", False)
I have no clue what you are trying to accomplish, but
srvr.AddHandler("/rdc", "RDCHandler", False)
is the handler/URL link that is used by the DBRequestManager class on the client side. It should not be called directly (either via okhttp or a browser). The /test handler is there so that a browser can be used to see if a jRDC2 server is up and running and can connect properly to the underlying database.
You may want to check out https://www.b4x.com/android/forum/t...-rdc-remote-database-connector.61801/#content and watch posted video and read the first post.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…