[jboss-jira] [JBoss JIRA] (AS7-2136) Can't wire up MDBs when multiple RARs are deployed
Carlo de Wolf (Commented) (JIRA)
jira-events at lists.jboss.org
Tue Oct 18 04:13:45 EDT 2011
[ https://issues.jboss.org/browse/AS7-2136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635384#comment-12635384 ]
Carlo de Wolf commented on AS7-2136:
------------------------------------
The proper {{org.jboss.jca.core.spi.rar.MessageListener}} is searched on the bases of the package name of the implementing class of the RARs. This is wrong.
Also {{EJBUtilities}} contains internal implementation details of the connector module. The connector module should provide a proper API for {{EndpointDeployer}}.
> Can't wire up MDBs when multiple RARs are deployed
> --------------------------------------------------
>
> Key: AS7-2136
> URL: https://issues.jboss.org/browse/AS7-2136
> Project: Application Server 7
> Issue Type: Bug
> Components: EJB, JCA
> Reporter: Carlo de Wolf
> Assignee: Jesper Pedersen
> Fix For: 7.1.0.CR1
>
>
> Whenever multiple RARs are deployed backed by the same implementation class an MDB is unable to wire up to the correct RAR.
> {code:java}
> @MessageDriven(activationConfig = {
> @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/test")
> })
> @ResourceAdapter("external-hornetq-ra.rar")
> public class ReplyingMDB implements MessageListener
> {code}
> {noformat}
> 10:00:01,502 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."ejb3mdb.jar".component.ReplyingMDB.CREATE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ejb3mdb.jar".component.ReplyingMDB.CREATE: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
> at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
> Caused by: java.lang.IllegalStateException: found more than one RA registered external-hornetq-ra
> at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:126)
> at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:78)
> at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:78)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> ... 3 more
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list