aspose file tools
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 Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "question about RemoteDataFactory!!!!!" Watch "question about RemoteDataFactory!!!!!" New topic

question about RemoteDataFactory!!!!!

hwlm H

Joined: Jul 28, 2002
Posts: 1
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
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.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17260

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

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: question about RemoteDataFactory!!!!!