i cannot access a protected method in a subclass (in same package).
I am using spring-jms API's , DefaultMessageListenerContainer class.
In my code, i have an instance of DefaultMessageListenerContainer class, and i am trying to invoke getBeanName() method on that object, but in eclipse it says,
"The method getBeanName() from the type AbstractJmsListeningContainer is not visible"
As per javadoc ,this getBeanName() method is a protected method defined in superclass, 'AbstractJmsListeningContainer'.
Per my understanding, we should be able to access protected method inside subclass. Am i missing something ?
Attaching a sample java code snippet.