• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

MDB : destinationName property for JMS queue at runtime

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 84
5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic