[jboss-user] [JBoss Microcontainer] - How to specify dependencies on @Singleton EJBs

gunter zeilinger do-not-reply at jboss.com
Mon Oct 3 10:44:25 EDT 2011


gunter zeilinger [http://community.jboss.org/people/gunterze] created the discussion

"How to specify dependencies on @Singleton EJBs"

To view the discussion, visit: http://community.jboss.org/message/629868#629868

--------------------------------------------------------------
I need to access a Singleton EJB from a JBoss MC. In opposite to dependencies to Stateless EJBs, declaring

<demands>jndi:{Singleton-impl-class-name}</demands>

does not work. Declaring

<demands>Class:{Singleton-local-interface-name}</demands>

the injection of the @EJB reference of the seems to work. But I get

WARN  [ConfigureAction] Error unconfiguring bean AbstractKernelControllerContext at 3b5d6b{ metadata=AbstractBeanMetaData at 12021b7{name=InitDeviceHolder bean=org.dcm4chee.proxy.beans.util.InitDeviceHolder properties=[deviceHolder] classLoader=BeanMetaDataDeployer$DeploymentClassLoaderMetaData at 783e0d{classloader=null} constructor=null autowireCandidate=true installs=[setDevice]}name=InitDeviceHolder target=org.dcm4chee.proxy.beans.util.InitDeviceHolder at 1a68938 state=Configured depends=AbstractDependencyInfo at 7ae776{idependOn=[AbstractDependencyItem at 32064b{name=InitDeviceHolder dependsOn=Device whenRequired=Installed dependentState=Installed resolved=UNRESOLVED}, AbstractDependencyItem at 1f7911b{name=InitDeviceHolder dependsOn=jndi:DeviceHolderBean/local-org.dcm4chee.proxy.ejb.DeviceHolder whenRequired=Configured dependentState=Installed resolved=UNRESOLVED}] unresolved=[AbstractDependencyItem at 32064b{name=InitDeviceHolder dependsOn=Device whenRequired=Installed dependentState=Installed resolved=UNRESOLVED}, AbstractDependencyItem at 1f7911b{name=InitDeviceHolder dependsOn=jndi:DeviceHolderBean/local-org.dcm4chee.proxy.ejb.DeviceHolder whenRequired=Configured dependentState=Installed resolved=UNRESOLVED}]}}: org.jboss.ejb3.common.resolvers.spi.UnresolvableReferenceException: Could not resolve in current deployments reference: [EJB Reference: beanInterface 'org.dcm4chee.proxy.ejb.DeviceHolder', beanName '', mappedName '']

on undeployment.

I am using JBoss 6.1.0-final.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/629868#629868]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111003/0ed9da3f/attachment.html 


More information about the jboss-user mailing list