Hi rogel:
Just to clarify about jRDC2.
- You have to install B4J in your PC, setup the config.properties, copy de jdbc driver to your pc, and config everything.
If the mysql server ip is 192.168.0.5, then you have to write in your config.properties:
JdbcUrl=jdbc:mysql://192.168.0.5:3306/test?characterEncoding=utf8
with the user and password of you mysql server
- Run the B4J server, then test in the same pc "
http://localhost:17178/test" (make sure 17178 is the ServerPort you have set up in config.properties file).
- If it works, then you have to use jRDC2 client in your android app and configure the IP of your PC (because you're running the B4J jRDC2 server in your PC, and this server will "talk" with the mysql server)
Private const rdcLink As String = "http://yourPCip:17178/rdc"
Ok, this is the basis, but once everything is working, the real way of using it is this:
- B4J creates a file called jRDC2.jar (or the name of your B4J program) under the /Objects folder. This is the server program you have to run, it's not necesary to run B4J, just the Java program. (search about running a java program)
- Probably you will run the jRDC2 not in your pc, but in your server (192.168.0.5 in this case), so, before use the jRDC2.jar in your server, you have to set your config.properties to:
JdbcUrl=jdbc:mysql://localhost:3306/test?characterEncoding=utf8
because now the jRDC2 server and your mysql server are in the same computer (anyway, 192.168.0.5 should work to). Generate the .jar server, and run it from you mysql server.
Now, from your pc it should work: "
http://192.168.0.5:17178/test"
and in your B4A client app you have to set
Private const rdcLink As String = "http://192.168.0.5:17178/rdc"
because now your jRDC2 server is there.
I hope it helps