2 Replies Latest reply on Jun 20, 2007 5:18 AM by Carlo de Wolf

    How to provide the identity in the annotation for MDB?

    Jason Hsu Newbie

      I have a normal MDB defined like:

      @MessageDriven(activationConfig = {
       @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic")
       ,@ActivationConfigProperty(propertyName="destination", propertyValue="/topic/testTopic")
      public class MyMdb implements MessageDrivenBean, MessageListener {

      It works fine with the default destination (on JBoss Messaging 1.3 GA). Now, I want to access a secured topic(remote) which has been set correctly if I use "testUser" and "testPassword" to access it locally (on remote box)

      What's the keyword of the propertyName that I can specify the identity to my MDB? I've been searching around but can't any piece of information regarding this issue. Please help!