Bhavesh Dak wrote: Isn't this possible without writing configuration files I mean it may be possible to make it with just DI.
Queues/Topics are not part of EJB3. Those are admin objects provided within a server environment. Unless you create them through some config files, EJB3 MDBs cannot get access to them. Having said that, JBoss AS does allow to "auto-create" a destination for a MDB if it doesn't already exist. You will have to create a jboss.xml to add the
in the message-driven element of jboss.xml. See this for details