| Author |
Error while deploying MDB
|
Bhavesh Dak
Ranch Hand
Joined: Jun 27, 2009
Posts: 91
|
|
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: 8142
|
|
Have you deployed the queue configuration file in JBoss?
|
[My Blog] [JavaRanch Journal]
|
 |
Bhavesh Dak
Ranch Hand
Joined: Jun 27, 2009
Posts: 91
|
|
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: 8142
|
|
|
You can find a tutorial here. The source is downloadable here
|
 |
Bhavesh Dak
Ranch Hand
Joined: Jun 27, 2009
Posts: 91
|
|
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: 8142
|
|
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
|
 |
 |
|
|
subject: Error while deploying MDB
|
|
|