posted 18 years ago
Sure, the bean code is the same for messages coming from a Topic or Queue. But the bigger picture is that the app will not work unless the bean is bound to a specific Topic or Queue. So, the container has to be told about this so that the binding can be done on server startup or deployment.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3