This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes question about RemoteDataFactory!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "question about RemoteDataFactory!!!!!" Watch "question about RemoteDataFactory!!!!!" New topic
Author

question about RemoteDataFactory!!!!!

hwlm H
Greenhorn

Joined: Jul 28, 2002
Posts: 1
hi,Mark:
pls help me!!!
i have a DataAccess which is the remote interface contains all public mothods of Data ,
i use RemoteDataImpl implements the interface
and extends UnicastRemoteObject , so RemoteDataImpl is the remote object. On the server side , I have a class named RemoteDataFactory.I
bind the factory to the registry and have that factory issue unique connection objects--RemoteDataImpl,but the error occour: because the RemoteDataFactory also extends UnicastRemoteObject and not implement remote interface, when i use "rmic",
the errer is "java.rmi.server.RemoteServer is not a valid remote implementation: has no
remote interfaces", so i can not get the stub for RemoteDataFactory!!!
pls help me ,thanks.
Vikas Sood
Ranch Hand

Joined: Sep 03, 2002
Posts: 109
hi,
make ur RemoteFactory class also implement a remote interface.Any class extending UnicastRemoteObject should also implement a Remote interface so as to be used remotely.
VikasSood
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"hwlm_ch"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: question about RemoteDataFactory!!!!!
 
Similar Threads
Connection Object for lock/unlock...?
ClassCast Exception with RMI
RMI server threading?
To those who are using a connection Factory, help me out please
NX: RMI implemention question