Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while deploying MDB

 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting following exception while deploying MDB:





MDB that I want to deploy is as follows :





I don't know where I am making mistake. Do I need to mention ShippingRequestQueue anywhere else other than this ?

Please help me.

Thanks in advance.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you deployed the queue configuration file in JBoss?
 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran,

I am following EJB3 in Action, Manning.

It is no where mentioned to configure (may be I have missed it out) .

Can you tell me how to make queue configuration file and where to put it?

Thanks.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find a tutorial here. The source is downloadable here
 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will go through tutorial and code but Jai, Isn't this possible without writing configuration files I mean it may be possible to make it with just DI.

Just finding a way around it.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic