B4J Question jRDC query database from inside jRDC

Drago Bratko

Active Member
Licensed User
Longtime User
I'm trying to query by database from inside jRDC application.
I have also add DBRequestManager to jRDC project.
rdcLink is pointing to : "http://127.0.0.1:17178/rdc"
When I try to ExecuteQuery I get read timeout (java.net.SocketTimeoutException: Read timed out).

Should that work or I'm trying to do something forbiden?
 

aeric

Expert
Licensed User
Longtime User
What do you mean by outside and inside the application?
 
Upvote 0

Drago Bratko

Active Member
Licensed User
Longtime User
What do you mean by outside and inside the application?
Thank you for your time. It means that inside jRDC I have implemented client part which is consuming that same jRDC.

BTW, I have checked it on other computer, and there it works fine. So it's something related to that specific computer. I have disable firewall just to exclude that, but didn't help.
Anyhow, problem is not in application itself. When I figure it out what is the problem, I will post it here.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
You mean you implement jRDC server and client inside the same jar?
Why you want to do in such way?
 
Upvote 0

Drago Bratko

Active Member
Licensed User
Longtime User
You mean you implement jRDC server and client inside the same jar?
Why you want to do in such way?
Well, 99% of requests goes from clients.
This 1% goes from itself as for that specific function data from database is needed and result of that operations is content which is then server by jRDC web server part (let's say some kind of scheduler on server side).
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Well, 99% of requests goes from clients.
This 1% goes from itself as for that specific function data from database is needed and result of that operations is content which is then server by jRDC web server part (let's say some kind of scheduler on server side).
Without providing enough information what you want to achieve, it is difficult for us to give you advice.
If the database query is going to execute internally, I think you can just use jSQL to execute the commands.
 
Upvote 0
Top