Meaningless Drivel is fun!*
The moose likes JBoss/WildFly and the fly likes Error while deploying MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Error while deploying MDB" Watch "Error while deploying MDB" New topic
Author

Error while deploying MDB

Bhavesh Dak
Ranch Hand

Joined: Jun 27, 2009
Posts: 93
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.


SCJP 6(83%), SCWCD 5.0(100%)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9953
    
163

Have you deployed the queue configuration file in JBoss?

[My Blog] [JavaRanch Journal]
Bhavesh Dak
Ranch Hand

Joined: Jun 27, 2009
Posts: 93
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

Joined: Jul 20, 2005
Posts: 9953
    
163

You can find a tutorial here. The source is downloadable here
Bhavesh Dak
Ranch Hand

Joined: Jun 27, 2009
Posts: 93
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

Joined: Jul 20, 2005
Posts: 9953
    
163

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error while deploying MDB
 
Similar Threads
jms not bound? what is that?
Error While Starting JBoss 5.1.0 GA!!!
Problem in Deploying MDB bean
JMS not bound? What is this?
Use of "mappedName" attribute with @MessageDriven EJB3.0