NB 6.1: Can't add cyclic references

View: New views
2 Messages — Rating Filter:   Alert me  

NB 6.1: Can't add cyclic references

by Krzysztof Luks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I have an enterprise application (let's call it EntApp) consisting of
two EJB modules (ModuleA and ModuleB). Now, I want to do the following:
in ModuleA call some EJB method from ModuleB and in ModuleB call some
method from ModuleA. This results in ModuleA having ModuleB in it's
dependencies and vice versa. However Netbeans gives me an error: "Can't
add cyclic references".

How can I work around this problem?

Regards,
Krzysztof


Re: NB 6.1: Can't add cyclic references

by Arne Knorr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should really think about making them one module. Why do you put two classes in different modules when they are obvioulsy strongly dependent from each other? This smells like bad design to me.

Regards
Arne

On Wed, Apr 30, 2008 at 12:45 PM, Krzysztof Luks <kluks@...> wrote:
Hi,
I have an enterprise application (let's call it EntApp) consisting of
two EJB modules (ModuleA and ModuleB). Now, I want to do the following:
in ModuleA call some EJB method from ModuleB and in ModuleB call some
method from ModuleA. This results in ModuleA having ModuleB in it's
dependencies and vice versa. However Netbeans gives me an error: "Can't
add cyclic references".

How can I work around this problem?

Regards,
Krzysztof