1 Reply Latest reply on Sep 11, 2006 8:50 PM by Ovidiu Feodorov

    import org.jboss.ejb3.mdb.ConnectionConfig??can't find the c

    Justin Xu Newbie

      My JAS is: jboss-4.0.4.GA been installing by jboss-4.0.4.GA-Patch1-installer.jar..

      but i wrote a ejb3 message driven bean ..used the annotation:
      @ConnectionConfig(destinationType = javax.jms.Queue.class,
      destinationJndiName = "queue/ejb3/hello",
      durable = true, subscriptionId = "helloMsgBean")

      then can't find the class: org.jboss.ejb3.mdb.ConnectionConfig in the jboss-ejb3.jar????????

      what's wrong ? thx!!!!

      Code:
      package com.popgo.mdb;

      import javax.jms.Message;
      import javax.jms.MessageListener;
      import javax.ejb.MessageDriven;
      import org.jboss.ejb3.mdb.ConnectionConfig;

      @MessageDriven
      @ConnectionConfig(destinationType = javax.jms.Queue.class,
      destinationJndiName = "queue/ejb3/hello",
      durable = true, subscriptionId = "helloMsgBean")
      public class HelloMsgBean implements MessageListener {

      public void onMessage(Message msg) {
      // TODO Auto-generated method stub

      System.out.println("Hello popgo!");
      }

      }