[jboss-user] [JBoss Messaging] - import org.jboss.ejb3.mdb.ConnectionConfig??can't find the c

justin033 do-not-reply at jboss.com
Sat Sep 9 05:01:01 EDT 2006


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!");
	}

}

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970517#3970517

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970517



More information about the jboss-user mailing list