java polymorphism EJB MDB
Posted on 2013-05-27
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