Hi,
Two questions really:
1) Should I be using RMI
2) If so how much of the program should use RMI
I am about to start building a database driven application. However, I am unsure whether to make it 2-tier not using RMI or 3-tier using RMI.
The various different clients all need to add,update and delete things in the database which will be done over JDBC. However, all the clients also need to be notified of certain activities taking place on any of the other clients, for instance if one client adds a record the other clients need to be informed of this.
I assume that the broadcasting of the these messages to the listening clients would need to be done using RMI or some other distributed systems technology. Is this a correct assumption?
However, when one of the clients does a query on the database should this be done directly, bypassing the servers. I was thinking this as passing record sets from the database server to the application server and then onto the client applicaiton would result in significant network traffic. Therefore, I assume, that for the other parts of the applicaiton which don't involve the broadcasting of information to all the clients I should just make the database connections within the client programs and connect directly to the database. Is this also a correct assumption?
Any comments on this would be much appreciated.
Thanks in advance
Robert Miles
Two questions really:
1) Should I be using RMI
2) If so how much of the program should use RMI
I am about to start building a database driven application. However, I am unsure whether to make it 2-tier not using RMI or 3-tier using RMI.
The various different clients all need to add,update and delete things in the database which will be done over JDBC. However, all the clients also need to be notified of certain activities taking place on any of the other clients, for instance if one client adds a record the other clients need to be informed of this.
I assume that the broadcasting of the these messages to the listening clients would need to be done using RMI or some other distributed systems technology. Is this a correct assumption?
However, when one of the clients does a query on the database should this be done directly, bypassing the servers. I was thinking this as passing record sets from the database server to the application server and then onto the client applicaiton would result in significant network traffic. Therefore, I assume, that for the other parts of the applicaiton which don't involve the broadcasting of information to all the clients I should just make the database connections within the client programs and connect directly to the database. Is this also a correct assumption?
Any comments on this would be much appreciated.
Thanks in advance
Robert Miles