2013-06-13 5 views
0

로컬 ActiveMQ를 사용하여 로컬 JBoss 6.1.0 결승에서 my .ear를 시작하려고합니다. 내가 Jboss를 시작할 때. 를 heres 코드IllegalStateException "No pool annotation"

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] 

을 그리고 : 내가 얻을 내가 잘못 ActiveMQ를-rar.rar을 사용했다

@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 

답변

0

. 하나의 int 배포판에 파일 이름에 버전 번호가 있고 내가 사용하고 있던 구성이 ..