aravind kopparthi [
http://community.jboss.org/people/aravindsk] created the discussion
"@DependsOn and @Singleton Bean in EJB3.1 using jboss 6.0 CR1"
To view the discussion, visit:
http://community.jboss.org/message/575302#575302
--------------------------------------------------------------
I am not sure about the usage but i could not use it like this(
@Singleton(DependsOn="SomeSingletonBean") i get compilation error and also
tried to use @DepdendsOn after @Singleton declaration.
when i use
@Singleton
@DependsOn(SingletonProcessBean2)
publilc class SingletonProcessBean1
{
///
}
I get the following error. please advice.
Deployment "<UNKNOWN
jboss.j2ee:jar=javaee6-app.war,name=BobWireFTPProcessBean,service=EJB3>" is in
error due to the following reason(s): ** UNRESOLVED Demands
'jboss.j2ee:jar=javaee6-app.war,name=FtpServerPojo,service=EJB3' **, ** UNRESOLVED
Demands 'jndi:FtpServerPojo/no-interface' **
Deployment "jndi:BobWireFTPProcessBean/no-interface" is in error due to the
following reason(s): ** NOT FOUND Depends on
'jndi:BobWireFTPProcessBean/no-interface' **
at
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228)
[:2.2.0.Alpha8]
at
org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905)
[:2.2.0.Alpha8]
at
org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87)
[:6.0.0.20101110-CR1]
at
org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118)
[:0.1.0.Alpha1]
at
org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133)
[:6.0.0.20101110-CR1]
at
org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)
[:6.0.0.20101110-CR1]
at
org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at
org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)
[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]
Deployment "<UNKNOWN
jboss.j2ee:jar=javaee6-app.war,name=SingletonProcessBean1,service=EJB3>" is in
error due to the following reason(s): ** UNRESOLVED Demands
'jboss.j2ee:jar=javaee6-app.war,name=SingletonProcessBean2,service=EJB3' **, **
UNRESOLVED Demands 'jndi:SingletonProcessBean2/no-interface' **
Deployment "jndi:SingletonProcessBean1/no-interface" is in error due to the
following reason(s): ** NOT FOUND Depends on
'jndi:SingletonProcessBean2/no-interface' **
at
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228)
[:2.2.0.Alpha8]
at
org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905)
[:2.2.0.Alpha8]
at
org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87)
[:6.0.0.20101110-CR1]
at
org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118)
[:0.1.0.Alpha1]
at
org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133)
[:6.0.0.20101110-CR1]
at
org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)
[:6.0.0.20101110-CR1]
at
org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at
org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)
[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/575302#575302]
Start a new discussion in EJB3 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]