JMS destination(either only one Queue or only one Topic) delivers message to the particular MDB instance deployed in the EJB container. (If we need
to deliver multiple messages simultaneously, then we can instantiate multpile MDB instances )
But if we use simple JMS listener, we can send multiple JMS destination( more than one Queue and Topic) delivers messages to the JMS consumer.
EJB container provides concurrent request to the MDB(Scalability), transaction, security and MDB life cycle management.
Which gives best performance MDB (needs EJB container, but takes care many of the features like Transaction, security, etc) or JMS consumer(no need of
EJB container, we have to take care all the EJB container provided services ?