I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Siva
Co-Author - SCMAD Exam Guide - ISBN:9780070077881
Author - Java certification success, Part 4: SCEA
Originally posted by Sivasundaram Umapathy:
The code would have worked because the server implemented a protocol which understood java casting but the code might not be portable to another container.
Originally posted by Andres Gonzalez:
The code works and they gave me the explanation of why they didn't use it. Before posting the answer, I'd like to know your opinions of why it worked, or why PortableRemoteObject couldn't be use (if that was the case).
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Originally posted by Andrew Monkhouse:
Now I don't know if Andres' code is faulty or not, but this is not what he had. Andres is showing two parameters (the Object and the Class) as though it was within a call to PortableRemoteObject.narrow(). So this just looks wrong.
Well you have my opinion on why my code above would work, but not why your code would work. Care to comment on whether your code is really correct (in which case I suspect you are hiding something from us (can't trust these Queenslanders))
[ October 31, 2003: Message edited by: Andrew Monkhouse ]
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Originally posted by Anselm Paulinus:
Andres:
Enough of the hide and seek game.
What was the reason for not using portableRemoteObject.narrow()
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
<i>Dare to dream - everything that exists today,was once a figment of someone's imagination, nobody says tomorrow can't be a figment of your today.</i>
Consider Paul's rocket mass heater. |