• Post Reply Bookmark Topic Watch Topic
  • New Topic

<lookup-name> of <message-destination> does not override mappedName in MDB

 
Himai Minh
Ranch Hand
Posts: 1400
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on p.315 of Ivan's notes,
I have my dd like this:

and

The message cannot be delivered to the topic.



However, if I defined the right topic name in the @MessageDriven annotation, it works:




 
Himai Minh
Ranch Hand
Posts: 1400
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a Glassfish 3.1 document at https://docs.oracle.com/cd/E18930_01/html/821-2418/beama.html

In the sun-ejb-jar.xml,
I put this:

Now, the two MDB's can get the message from the topic called "jms/PublishingTopic".
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!