• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI in internet??

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am new to rmi..
i wanted to know wheather rmi technlogy can be used in internet?
pls help..
thx
 
Herbert Maosa
Ranch Hand
Posts: 289
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Infact I think the power of distributed applications is most tapped on the internet.The internet is just a network and YES, RMI can and is used on the Internet.
Have fun,
Herbert.
 
Raghu NeoN
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnks herbert...
and one more how to return a result set in rmi?
pls help
thanks
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems to be a common question!
For an object to be passed using RMI it must be serializable. ResultSet isn't serializable, I've heard this is because most of the data is actually maintained in the database until it is accessed with the next() method. In order to return the results you have to create your own class which mimics the functionality of ResultSet and return that through RMI. I started some code just as an exercise to see if it could be done and here is the result:

This isn't complete by any means but, it does show how it could be done even with jdk 1.1. For jdk 1.2 you would probably want to use one of the newer container types but.....
[This message has been edited by Carl Trusiak (edited June 21, 2000).]
[This message has been edited by Carl Trusiak (edited June 21, 2000).]
 
Brent Worden
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out http://www.objectweb.org/RmiJdbc/RmiJdbcHomePage.htm
It's "A client/server JDBC Driver based on Java RMI."
------------------
Brent Worden
http://www.Brent.Worden.org/
[This message has been edited by Brent Worden (edited June 21, 2000).]
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Brent Worden:
Check out http://www.objectweb.org/RmiJdbc/RmiJdbcHomePage.htm
It's "A client/server JDBC Driver based on Java RMI."

This handles this just like we have been saying. They have created the class to allow a ResultSet to be serialized on the server and deserialized on the client. There are classes to serialize about everything RJResultSetMetaDataInterface, RJResultSetMetaDataServer, RJResultSetInterface, RJResultSetServer etc.
It's under GNU license so... good luck everyone.

[This message has been edited by Carl Trusiak (edited June 22, 2000).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!