• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlets & RMI

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to access database in remote server through a request to servlet page?(Servlets+RMI)Anybody pls help me with coding!!!1
 
Ajan Balakrishnan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is sample code i used for testing. I think this will give you a basic idea of how these things work. You can modify the code to suit your need
Interface Code

RMI Client Code

Implentation Code. Here is where you can make your database calls.


RMI server

FYI, UDBConnection,TmachineCmpntBean,TOutageLogBean are my connection and DB query beans
Let me know if this helps
Thanks
Ajan

[This message has been edited by Ajan Balakrishnan (edited March 15, 2001).]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic