This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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