Hello,
I have 1 jRDC.jar running on linux as server. Work ok with B4A test app.
I did not understand the description for using 1 server for 2 database. I looked for similar other questions in forum.
Then I use same jRDC for 2nd DB but changed this line in Main sub appstart to:
Is it allowed to change /rdc for /das ?
I changed config file port nr 17178 to 17179, db name is different, password is same.
filename is now jRDCdas.jar uploaded to Linux server, same place as other jRDC.jar
Both servers are running, I checked with: ps -ef | grep java
This 2nd DB I want to use with B4J testapp. I changed the String
Rest of code is same as in B4A. But in B4J I choose jOkHttpUtils2 and jRandomAccessFile library.
I get error:
Any idea what I have missed?
Thank you.
I have 1 jRDC.jar running on linux as server. Work ok with B4A test app.
I did not understand the description for using 1 server for 2 database. I looked for similar other questions in forum.
Then I use same jRDC for 2nd DB but changed this line in Main sub appstart to:
B4X:
srvr.AddHandler("/das", "RDCHandler", False)
I changed config file port nr 17178 to 17179, db name is different, password is same.
B4X:
#Java server port
ServerPort=17179
filename is now jRDCdas.jar uploaded to Linux server, same place as other jRDC.jar
Both servers are running, I checked with: ps -ef | grep java
This 2nd DB I want to use with B4J testapp. I changed the String
B4X:
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Type DBResult (Tag As Object, Columns As Map, Rows As List)
Type DBCommand (Name As String, Parameters() As Object)
Dim const rdcLink As String = "http://192.168.0.240:17179/das"
End Sub
Rest of code is same as in B4A. But in B4J I choose jOkHttpUtils2 and jRandomAccessFile library.
I get error:
B4X:
ResponseError. Reason: java.net.ConnectException: Failed to connect to /192.168.0.240:17179, Response:
ERROR: java.net.ConnectException: Failed to connect to /192.168.0.240:17179
Any idea what I have missed?
Thank you.