aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Why DBAccess is not a valid Remote interface? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Why DBAccess is not a valid Remote interface?" Watch "Why DBAccess is not a valid Remote interface?" New topic
Author

Why DBAccess is not a valid Remote interface?

long lingyu
Ranch Hand

Joined: Feb 15, 2004
Posts: 51
I use the rmic to generate the stub for remote interface,but there are error. Can I change the DBAccess interface from SUN?
Satish Avadhanam
Ranch Hand

Joined: Aug 12, 2003
Posts: 697
Originally posted by long lingyu:
I use the rmic to generate the stub for remote interface,but there are error. Can I change the DBAccess interface from SUN?

Hi Long, Its not advisable to change the given interface. But you can try to implement a new interface which extends DBAccess and use it. Or you can create a new interface which has only business methods that are required by client, then use it in RMI. And depending on the design, there are many ways to do this.
Good Luck
long lingyu
Ranch Hand

Joined: Feb 15, 2004
Posts: 51
Should I create a new interface extending from remote,but not extend from DBAccess?
George Marinkovich
Ranch Hand

Joined: Apr 15, 2003
Posts: 619
Hi Long,
Originally posted by long lingyu:
Should I create a new interface extending from remote,but not extend from DBAccess?

Take a look at this thread:
Topic: A complicated database design...
If it makes sense after reading the thread great, if not continue to ask questions.


Regards, George
SCJP, SCJD, SCWCD, SCBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why DBAccess is not a valid Remote interface?