[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1603) EJB with dependencies upon itself fails deployment
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Wed Feb 17 05:44:10 EST 2010
[ https://jira.jboss.org/jira/browse/EJBTHREE-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12514905#action_12514905 ]
Carlo de Wolf commented on EJBTHREE-1603:
-----------------------------------------
In 4.2 SFSB session associated happens on first invoke, but it really should be happening on lookup ( EJBTHREE-697 ). This ensures that propagation of security, tx and persistence contexts happen properly.
So it's not really a cyclic dependency to inject a SFSB in itself, but more a stack overflow.
If you want to control transaction boundaries within a SFSB either use BMT (which doesn't allow for interaction with incoming transactions) or use ctx.getBusinessObject(..) to get a transactional reference.
> EJB with dependencies upon itself fails deployment
> --------------------------------------------------
>
> Key: EJBTHREE-1603
> URL: https://jira.jboss.org/jira/browse/EJBTHREE-1603
> Project: EJB 3.0
> Issue Type: Bug
> Components: core
> Reporter: Andrew Lee Rubinger
> Assignee: Andrew Lee Rubinger
> Fix For: Unscheduled
>
> Attachments: EJBTHREE-1603.patch
>
>
> The following construct:
> @Stateless
> @Remote(SelfDependencyRemoteBusiness.class)
> @Local(SelfDependencyLocalBusiness.class)
> public class SelfDependencyBean implements SelfDependencyLocalBusiness, SelfDependencyRemoteBusiness
> {
> @EJB
> private SelfDependencyLocalBusiness local;
> ...
> }
> ...fails deployment:
> 21:55:09,828 WARN [MainDeployer] Failed to deploy: file:/home/alrubinger/business/jboss/wc/jbossas/projects/ejb3/trunk/testsuite/target/test-lib/ejbthreexxx.jar
> org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
> *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
> jboss.j2ee:jar=ejbthreexxx.jar,name=SelfDependencyBean,service=EJB3
> -> <UNKNOWN jboss.j2ee:jar=ejbthreexxx.jar,name=SelfDependencyBean,service=EJB3>{Described:** UNRESOLVED Demands 'jndi:SelfDependencyBean/local-org.jboss.ejb3.test.ejbthreexxx.SelfDependencyLocalBusiness' **}
> *** CONTEXTS IN ERROR: Name -> Error
> <UNKNOWN jboss.j2ee:jar=ejbthreexxx.jar,name=SelfDependencyBean,service=EJB3> -> ** UNRESOLVED Demands 'jndi:SelfDependencyBean/local-org.jboss.ejb3.test.ejbthreexxx.SelfDependencyLocalBusiness' **
> This is the cause of 3 regressions in "asynchronous" tests currently
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list