wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes JBoss JMS Queue Message not reached to configured queue, but its wrongly redirected to default DLQ. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JBoss JMS Queue Message not reached to configured queue, but its wrongly redirected to default DLQ." Watch "JBoss JMS Queue Message not reached to configured queue, but its wrongly redirected to default DLQ." New topic
Author

JBoss JMS Queue Message not reached to configured queue, but its wrongly redirected to default DLQ.

Mehul Kaps Kapadia
Greenhorn

Joined: Mar 01, 2012
Posts: 2
Hi All,

I have created my own Jboss[5.1.0 GA] JMS Queue, as per following configuration in <JBOSS_HOME>/server/default/deploy/SIClusterQueue-service.xml

<server>
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=SIClusterQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
</server>


also there are 2 other queue that JBoss provides by default : DLQ and ExpireyQueue.

When I push one message to my own configured queue[SIClusterQueue] and is of the type javax.jms.Message, My Receiver is able to receive that message and everything is fine.

But now the problem is, when my sender puts the customized message object to queue[SIClusterQueue], i.e not of the type javax.jms.Message, but my own object - which implements serializable interface. following occurs.

Sender is able to send message to Queue, this time message is not visible under my configured queue[SIClusterQueue], instead its available under JBOSS default DLQ [as shown in attached screenshot from JBOSS Admin Page].

I can confirm that both my sender and receiver are referring to my configured queue [SIClusterQueue], not to the default DLQ. and there is no Exception while sending/receiving the Message in any case.

My onMessage Method logic in receiver is as follow. where MessgeEvent Object is my own customized object.



Following is the sender code which shows how it packed my customizedObject[MessageEvent].



can someone please help here and share your expertise.

Why my JMS Queue messege is redirected to default DLQ, it should redirect to my own configured Queue to which my consumers are listen to.

Regards,
Mehul Kapadia



[Thumbnail for DLQ.PNG]


[Thumbnail for SIClusterQueue.PNG]

Mehul Kaps Kapadia
Greenhorn

Joined: Mar 01, 2012
Posts: 2
Hi All,

I got the solution, so thought to share with you all.

In first try I have created the JMS Queue from backend, means - I directly kept the MyQueue-service.xml file in <JBOSS_HOME>/server/default/deploy/ directory. in which queue xml config doesn't have the JNDI config.

then I tried creating from the JBOSS Admin Console in following way, and it worked perferctly fine.

JMS Destination > Queue > Add new Resource

provide required details and your queue is ready to go.


Queue Service XML file:
---------------------------




Regards,
Mehul Kapadia

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss JMS Queue Message not reached to configured queue, but its wrongly redirected to default DLQ.