gudii9
asked on
java polymorphism EJB MDB
Hi,
I was reading as
java is single dispatch language.
polymorphism works on method calls but not on method parameters
onMessage() of MDB takes Message as parameter where no compile time check happens.
onMessage() needs cast to Message to sub interface or impl to process message.
I am not clear on what above statements means.
Any links, sample code, resources, ideas highly appreciated. Thanks in advace
I was reading as
java is single dispatch language.
polymorphism works on method calls but not on method parameters
onMessage() of MDB takes Message as parameter where no compile time check happens.
onMessage() needs cast to Message to sub interface or impl to process message.
I am not clear on what above statements means.
Any links, sample code, resources, ideas highly appreciated. Thanks in advace
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.