aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes problemwith MessageDriven Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "problemwith MessageDriven Bean" Watch "problemwith MessageDriven Bean" New topic
Author

problemwith MessageDriven Bean

blv krishna
Greenhorn

Joined: Sep 27, 2009
Posts: 18
hi gurus,

i have a problem with MDB. my scenario is i need two JMS Queues and two listners for the queues. for that i have created two connection factories and two destination resources in glasshfish admin console.

Connection Factories:1.jms/testfact1
2.jms/testfact2

Destination Resources 1.jms/testdest1
2.jms/testdest2

MDB 1:

PROBLEM IS WHEN I EXECUTE CLINT1 , SOMETIMES THE MDB1 IS RECEIVING THE MESSAGE AND SOME TIMES MDB2 IS RECEIVING MESSAGE. SAME WITH CLIENT 2 ALSO.......PLEASE HELP ME TWO RESOLVE THIS PROBLEM

REGARDS
GURU...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.

I've also moved this to the JEE forum.
blv krishna
Greenhorn

Joined: Sep 27, 2009
Posts: 18
David Newton wrote:Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.

I've also moved this to the JEE forum.


i have solved the problem by own

thanks

Guru....
Greg Schultz
Greenhorn

Joined: Oct 08, 2003
Posts: 16
So what was the fix?
blv krishna
Greenhorn

Joined: Sep 27, 2009
Posts: 18
Greg Schultz wrote:So what was the fix?


problem is all resource destinations are having the same physical destinations. so i have created the separete physical destination for each resource destination.

regards
Guru..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problemwith MessageDriven Bean
 
Similar Threads
client or consumer register listner?
jms queue fetching of message as and when it is posted in asynchronous communication
[EJB3]MessageDriven bean never catch message
annotations for JNDI lookup
MDB onMessage not invoked