0

How can I define jms/MyQueue in the following code sample using maven profile / properties?

@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destinationLookup", propertyValue = "jms/MyQueue") })
public class SomeMessageDrivenBean implements MessageListener {
    ....
tillias
  • 1,035
  • 2
  • 12
  • 30
  • are you looking forward to http://stackoverflow.com/questions/11500533/access-maven-properties-defined-in-the-pom? – Naman Mar 13 '17 at 16:46
  • no, that is different question – tillias Mar 14 '17 at 07:55
  • Could you please explain how. – Naman Mar 14 '17 at 09:05
  • I know how to load properties from pom.xml profile. The question is how to promote them into annotation's propertyValue. I'm not really sure what you don't understand in my original straitforward question? Please add concrete code sample of how I can achieve my goal, if this is the same topic you're pointing to – tillias Mar 14 '17 at 10:41
  • Don't know what you are trying to achieve in the end. If your purpose is to have a queue to be used in development, I suggest a different approach, which is leave the annotations as they are and provide a specific configuration (glassfish, weblogic, etc...) pointing to the desired queue by means of maven profile. – Leonardo Mar 15 '17 at 12:19

0 Answers0