1 Reply Latest reply on Jun 6, 2008 5:05 PM by ericjung2

    Help injecting a message from messages.properties

    ericjung2

      Hi,


      I'm trying to inject a messages.properties message into a session bean.


      @In("#{messages.findUserByIdSQL}")
      private String findUserByIdSQL;



      Sometimes this notation works, but in other injections on other session beans it doesn't work. When it doesn't work, the value of findUserByIdSQL is messages.findUserByIdSQL (in other words, the key I'm trying to lookup). It's as if a new Messages object is being created and not finding messages.properties.


      Anyone know what I'm doing wrong?


      Thanks,
      Eric