*
The moose likes Distributed Java and the fly likes Design (is RMI needed) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Design (is RMI needed)" Watch "Design (is RMI needed)" New topic
Author

Design (is RMI needed)

Justin X Thomas
Greenhorn

Joined: Jun 19, 2002
Posts: 4
I want to have a class method that accesses a database and returns the data in a certain format. I also want a separate to take data and insert it in a certain format. There will be a web side and normal client side for these function. Is RMI needed to achieve this goal? (Current implementation is in M$ and I want to move to Java).
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

It's not. The JDBC API can handle those requirements quite nicely.
[ June 19, 2002: Message edited by: Michael Ernest ]

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Justin X Thomas
Greenhorn

Joined: Jun 19, 2002
Posts: 4
What then is RMI used for?
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

In strictly technical terms, RMI allows two processes to communicate through method calls. While you could say the same thing for a database and its client program, RMI is a much more general protocol. In one sense, to use RMI with an existing RDBMS, you'd probably be taking a big 'ol step backwards when you don't have to.
If I were building my own database and my own client, I might use RMI underneath to support transmitting the JDBC calls. Cloudscape is one example of a database that does exactly that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design (is RMI needed)
 
Similar Threads
Jsp to pdf
Enable auto JAXB bindings OR do JAXB manually
Packaging questions
rmi and array
UnMarshalException - Nested ClassNotFoundException