B4J Question RDC - jRDC2 - webserver - Help me

vibby

Member
Licensed User
Hello,
I have read the tutorial of the jrdc2, i have download the server zip file, but I don't understand first and second step.

1. Add the relevant JDBC jar file to the additional libraries folder.
2. Add a reference to this jar


Code:
#AdditionalJar: mysql-connector-java-5.1.27-bin

I don't understand, where I must put my jdbc jar file and where I must write the up line code.

Help me...... ;(
 

vibby

Member
Licensed User
I'sorry, I am doing confusion....
I program with B4A.
The client is the Phone, the db is in the server.
You say of to do tool-configure etc, but
what's the program than I must installing in the server?
Thanks....
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Upvote 0

vibby

Member
Licensed User
I continue to have problems.
I have followed the step 1,2 and 3 of the tutorial "jRDC2 - B4J implementation of RDC".
The step 4 says: "Run the program and test it locally by putting this link in the local browser: http://localhost:17178/test"
I don't understand, what's te program the must I running?
My confusion increases.....<>
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Compile the B4J Project, if it running (you can see it in the log on the right side) then open a browser on the same machine as you compile it and put this:

B4X:
http://localhost:yourPort/test

You set a port in the config you find it here:

B4X:
#Java server port
ServerPort=YourPort

and the /test is the test handler, you can find it in the main module in the code of B4J.

B4X:
srvr.Port = rdcConnector1.serverPort
srvr.AddHandler("/test", "TestHandler", False)

if all fine then is display this message on your browser:

fine.PNG
 
Upvote 0

vibby

Member
Licensed User
ok, but I don't understand, the b4j project is this?

B4X:
#Region Project Attributes

#MainFormWidth: 600

#MainFormHeight: 600

#End Region

#AdditionalJar: ucanaccess-4.0.3



Sub Process_Globals

Private fx As JFX

Private MainForm As Form

End Sub



Sub AppStart (Form1 As Form, Args() As String)

MainForm = Form1

'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.

MainForm.Show

End Sub



'Return true to allow the default exceptions handler to handle the uncaught exception.

Sub Application_Error (Error As Exception, StackTrace As String) As Boolean

Return True

End Sub
 
Upvote 0

vibby

Member
Licensed User
Thanks.

Why now this error?

B4J Versione: 6.01
Analisi del Codice. Error
Errore Analisi Programma.
Descrizione errore: Tipo sconosciuto: connectionpool
Manca un riferimento ad una libreria?
Errore nella linea: 3 (RDCConnector)
Private pool As ConnectionPool

B4X:
private pool as connectionpool

:(
 
Last edited:
Upvote 0
Top