« Return to Thread: NB 6.1: Can't add cyclic references

Re: NB 6.1: Can't add cyclic references

by Arne Knorr :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: NB 6.1: Can't add cyclic references