Module support

Can someone help me with the new module support in the eap? I'm writing a client-server application and have a client module and a server module.

The client uses some interfaces from the server (through jndi). To get the client module to "find/see" these classes I made the client module have a dependencie to the server module.

But I also have some helper classes that I need at both sites. At the moment they are in the client module, but the server module doesn't find them. Making the client module a dependencie of the server module gives a circular dep. error.

And placing the helper classes in both would give a duplicate class error. Also it is useless to place the helper classes only in the server module, since I want to use the 2 parts seperatly.

What can I do about this? I guess I'm missing something here..

TiA

Alexander

2 comments
Comment actions Permalink

Create a third module for the common classes and have both client and server
modules depend on it. You may also want to consider putting the shared
interfaces in this new module too.

Hope that helps,
Vil.

Alexander wrote:

Can someone help me with the new module support in the eap? I'm writing a client-server application and have a client module and a server module.

The client uses some interfaces from the server (through jndi). To get the client module to "find/see" these classes I made the client module have a dependencie to the server module.

But I also have some helper classes that I need at both sites. At the moment they are in the client module, but the server module doesn't find them. Making the client module a dependencie of the server module gives a circular dep. error.

And placing the helper classes in both would give a duplicate class error. Also it is useless to place the helper classes only in the server module, since I want to use the 2 parts seperatly.

What can I do about this? I guess I'm missing something here..

TiA

Alexander


--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

0
Comment actions Permalink

Hmmmm figured that out while under the shower :)

But that would be the best I think. Thx!!

0

Please sign in to leave a comment.