I was trying a long time to understand how works jRDC2.
I was working perfectly the older jRDC as a framework at the server side.
Watching the Erel's video guide several times and reading many other info I was able to get an connection successful with a
http://localhost:17178/test
Steps done to reach this:
- Install B4J (I never used it)
- Download jRDC2 from
https://www.b4x.com/android/forum/t...ation-of-rdc-remote-database-connector.61801/ , unzipping it and opening jRDC.b4j project with B4J software.
- Download jdbc driver for SQL and copying mssql-jdbc-6.4.0.jre8.jar file to "c:\Program Files (x86)\Anywhere Software\B4J\Libraries\mssql-jdbc-6.4.0.jre8.jar"
- Replace #AdditionalJar: in B4J editor with #AdditionalJar: mssql-jdbc-6.4.0.jre8.jar
- Edit the Files/config.properties from jRDC.b4j project and edit Database Configuration:
DriverClass=com.microsoft.sqlserver.jdbc.SQLServerDriver
JdbcUrl=jdbc:sqlserver://localIPSQLServer:1433;databaseName=xxxx
User=app
Password=xxxxxxx
#Java server port
ServerPort=17178
and that's it! I run it in B4J without errors. Only if I use external SQL IP instead of local IP it fails with a "Error fetching connection."
I must go on now with tests in my B4A project, but I get some doubts about this jRDC moving process:
- If there is not framework at the server side, is the config.properties file with all programmed queries stored at the client side, inside of app?
- The ports to open at firewall in the server side now are only the 1433, isn't it? Seems 17178 port is internal at the client side...
thkx