File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes [EJB3]MessageDriven bean never catch message 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 "[EJB3]MessageDriven bean never catch message" Watch "[EJB3]MessageDriven bean never catch message" New topic

[EJB3]MessageDriven bean never catch message

mick keu

Joined: Aug 13, 2008
Posts: 2
I hope someone could help me fixing my pb.

I've created a session bean that send a message in a queue (TaskMessagesQueue):

I've got a MessageDriven Bean that should catch the message (i use a "message selector"):

But it's not working... the message is never catch by the messageDriven bean...

the queue have bean created in Jboss...

<?xml version="1.0" encoding="UTF-8"?>

I've certainly miss something, but where...
If someone can help me...
Many thanks

ps : I hope I did not make too many mistakes, cause i don't really speak english.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


Welcome to JavaRanch

i use a "message selector"

I would suggest that you first get the application working without the message selector. If that works, then we know exactly where to concentrate to fix the problem. Message selectors follow a specific syntax (i don't have the document which is usually refer to, right now).

If it still does not work without the message selector, then post the console log from JBoss. By the way, which version of JBoss and Java do you use?

[My Blog] [JavaRanch Journal]
mick keu

Joined: Aug 13, 2008
Posts: 2
hi Jaikiran !
Thanks for reply.

I tried to remove the message selector, without success...
Finally, i managed to get it working, changing :


So my problem seems to be solved. Perhaps it will be usefull for someone else.

Thanks for help.

PS : For information, i used JBOSS 4.2.2 GA and Java JDK 1.5.012.
I agree. Here's the link:
subject: [EJB3]MessageDriven bean never catch message
It's not a secret anymore!