0
JBoss-4.0.4.GA 환경에서 JBoss-6.0.0.Final 환경에있는 jar를 배포하려고합니다. 나는 확실하지 않은 문제에 부딪쳤다. JBoss를 시작할 때이 오류가 발생합니다 :JBoss6 MDB가 JBoss4.0.4에서 배포에 실패했지만 잘 구현되었습니다.
17:45:27,719 INFO [EjbDeployer] installing bean: ejb/#MyMessageBean,uid33175643
17:45:27,719 INFO [EjbDeployer] with dependencies:
17:45:27,719 INFO [EjbDeployer] and supplies:
17:45:27,738 INFO [EjbDeployer] jndi:null
17:45:27,796 INFO [EjbModule] Deploying MyMessageBean
17:45:27,918 ERROR [AbstractKernelController] Error installing to Create: name=jboss.j2ee:jndiName=local/[email protected],service=EJB state=Configured mode=Manual requiredState=Create: java.lang.UnsupportedOperationException: Message driven beans are not bound into remote jndi
ejb 2.1을 사용하고 있습니다.
내 배포 설명자에는 JBoss 4.0.4가 허용하고 JBoss 6는 그다지 관용적이지 않은 무언가가 있다고 생각합니다.
META-INF/EJB-jar.xml의
<message-driven>
<description></description>
<display-name>My Message Bean</display-name>
<ejb-name>MyMessageBean</ejb-name>
<ejb-class>com.myplace.MyMessageBean</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
<subscription-durability>NonDurable</subscription-durability>
</message-driven-destination>
</message-driven>
그리고 META-INF /의 jboss.xml은 :
<enterprise-beans>
<message-driven>
<ejb-name>MyMessageBean</ejb-name>
<destination-jndi-name>topic/MyTopic</destination-jndi-name>
<configuration-name>My Message Driven Bean Container Configuration</configuration-name>
</message-driven>
</enterprise-beans>
내 배포 설명은 XDoclet에 의해 생성됩니다.
도움을 주셔서 감사합니다.