0

想用本地 ActiveMQ 在本地 JBoss 6.1.0 Final 上启动我的 .ear。当我开始 Jboss 时。我得到:

09:56:52,300 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Created KernelDeployment for: message-service-ejb-1.0-SNAPSHOT.jar
09:56:52,304 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:ear=message-service-ear-1.0-SNAPSHOT,jar=message-service-ejb-1.0-SNAPSHOT.jar,name=MedhjalparService,service=EJB3
09:56:52,304 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:
09:56:52,304 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:
09:56:52,304 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jboss.ejb:service=EJBTimerService; Required: Described
09:56:52,304 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jboss-switchboard:appName=message-service-ear-1,module=message-service-ejb-1.0-SNAPSHOT,name=MedhjalparService; Required: Create
09:56:52,304 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:
09:56:52,305 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:null
09:56:52,305 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     Class:javax.jms.MessageListener
09:56:52,307 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:ear=message-service-ear-1.0-SNAPSHOT,jar=message-service-ejb-1.0-SNAPSHOT.jar,name=MedhjalparService,service=EJB3) to KernelDeployment of: message-service-ejb-1.0-SNAPSHOT.jar
09:56:52,347 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=message-service-ear-1.0-SNAPSHOT,jar=message-service-ejb-1.0-SNAPSHOT.jar,name=MedhjalparService,service=EJB3 state=Create: java.lang.IllegalStateException: No pool annotation
    at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:1325) [:1.7.21]
    at org.jboss.ejb3.mdb.MessagingContainer.initializePool(MessagingContainer.java:357) [:1.7.21]

这是代码:

@MessageDriven(name = "MessageMDBSample", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/MyQueue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")}


public class ExampleMDBean implements MessageListener{

private static final long serialVersionUID = 1L;

public void onMessage
4

1 回答 1

0

我用错了activeMQ-rar.rar。一个 int 部署在文件名中有一个版本号,而我使用的配置没有..

于 2013-07-08T09:41:31.690 回答