Roel De Nijs wrote:I read the schema section, my good friend and SCJD guru Roberto Perillo hardcoded the field metadata and we both passed.
Roberto Perillo wrote:Well, you are still the one who got 400/400, champion!
Hieu Lam wrote:Is my current code violate that rule because my standalone code use impl class which depends on RemoteException and UnicastRemoteObject ?
Roberto Perillo wrote:
Actually, you shouldn't need UnicastRemoteObject in standalone mode. How exactly do you instantiate your business object in standalone mode? If you simply instantiate it without using UnicastRemoteObject to export it, then it's ok.
Hieu Lam wrote:the code still depends on RemoteException, and UniCastRemoteObject.
Roel De Nijs wrote:
My remote business service implementation does not have a dependency on UniCastRemoteObject, like Roberto already indicated. You can use its exportObject method instead of extending.
Hieu Lam wrote:Still one concern, to expose the remote service with RMI, I extends UnicastRemoteObject, however I see there's other way to achieve this. So which one is correct and is that the different between RMI versions ???