• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can Data_Stub be present in all clients?

 
Rajesh So
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented a ConnectionFactory which returns a DataInterface. The client can use this reference for invoking the Data class methods.
The client has 2 stubs -ConnectionFactoryImpl_Stub and Data_Stub.
This is the detail of Factory and Data.
interface ConnectionFactory extends Remote
class ConnectionFactoryImpl extends UnicastRemoteObject implements ConnectionFactory
interface DataInterface extends Remote
class Data extends UnicastRemoteObject implements DataInterface
Without the presence of Data_Stub, there is an UnmarshallException and ClassNotFoundException Data_Stub in the client.
Is it right that all clients should have a copy of Data_Stub?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client.jar file needs to have the stub classes in there. So yes you must put them in there.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic