This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one 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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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: 17260
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about RemoteDataFactory!!!!!