[jboss-user] [EJB 3.0] New message: "Bi-directional dependency between two stateless session beans"

Andrig Miller do-not-reply at jboss.com
Sat Feb 13 10:18:20 EST 2010


User development,

A new message was posted in the thread "Bi-directional dependency between two stateless session beans":

http://community.jboss.org/message/526199#526199

Author  : Andrig Miller
Profile : http://community.jboss.org/people/andy.miller@jboss.com

Message:
--------------------------------------------------------------
I was updating an application that has many stateless session beans, and in adding some functionality, I have the following situation:
 
@Stateless
public class SupplierManagerBean implements SupplierManager {
 
     @EJB
     private ProductManager productManager;
 
...
 
 
@Stateless
public class ProductManagerBean implements ProductManager {
 
    @EJB
    private SupplierManager supplierManager;
 
...
 
 
So, this compiles just fine, but will not deploy cleanly.  The profile service says it fails, and says to look at previous errors of which there are none.  Then the in the summary of incomplete deployments you get an error about the state of the SupplierManagerBean, and that its missing a dependency on the ProductManagerBean, and of course the ProductManagerBean says its missing a dependency on the SupplierManagerBean.
 
So, its obvious that the deployer cannot handle this situation, but the question is should it be able to?  I cannot find information that says whether this is something that should be supported or not.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/526199#526199




More information about the jboss-user mailing list