Properties place holder ignored when used inside annotations ie in @ActivationConfigProperty
Issue
I have an MDB that consumes messages on a remote Hornet Queue. I used to declare JMS activation config properties in deployment descriptor using an indirection to an externally defined property like this:
<activation-config-property>
<activation-config-property-name>JndiParams</activation-config-property-name>
<activation-config-property-value>${Arte.TestJMS1.JndiParams}</activation-config-property-value>
</activation-config-property>
Now we are migrating the application to EJB3. When I do the same usage of indirection within the annotation @ActivationConfigProperty the deployment of the application fails.
I was expecting to be able to use expression language properties within annotations but it does not work.
Could you please let me know how can I use indirection within annotations?
Environment
JBoss Enterprise Application Platform 5.1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
