The MessageDrivenBean interface haven�t the ejbCreate() method, so I think that is the problem, it just have setMessageDrivenContext(...) and ejbRemove(). The question is so tricky.
If we consider the life cycle of Message Driven bean , ejbCreate() is required and moreover even in PGNO 447 Point No 1 says we need ejbCreate() in bean. Please clarify my doubt on this.
The compiler cares about every method. That's what the compiler does.
Why would the compiler not care about a method that is coded?
If you want to know which method in an MDB is used for message processing, is, that's a different story.
If you write a method in a class, and compile the class, the compiler will compile every method. If you code all three methods, and any of them have a syntax problem, the compiler will complain.