Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB : destinationName property for JMS queue at runtime

 
Paolo Biondo
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the actual code:

Instead of use static destination (@Resource(name="jms/MyQueue")) I have multiple possibility of destination and so I read destination name from properties file (for example).
The Message Driven Bean :


Is there a method to read at runtime (properties file) the property mappedName (without using annotation)?


I use IBM websphere application server version 7.0 .

Thanks in advance
 
Richard Reese
author
Ranch Hand
Posts: 84
5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paolo,

I am not aware of any techniques that will allow you to read and then change these properties at runtime. Perhaps someone else has a solution.
 
Paolo Biondo
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I try to specifiy JMS Destination in the sender message and in this mode there is no need to specify the property "destinationName".


My problem now is to eliminate the dependence from the "activation specification" in ibm-ejb-jar-bnd.xml.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic