What about a 3rd project that contains Impl.java? Both the client and server projects could then depend on this project.

Mark Church

Laszlo Papp wrote:

Hi all,


We have tried to compile and distibute a client/server architecture based on RMI and had to face some difficulties which seem to be lying on the basic concept of the Maven environment (namely that one project is only able to produce and distribute one and only JAR file).


We have set up 2 Maven projects (one for the client, one for the server), and wanted to build the 'client.jar' as independent from the server as possible... It means:

if I have the RMI interface implementation class 'Impl.java' in the server project I only want to have the belonging 'Interface.java' in the client project.

But the problem is that in the client project I also need to have the '_Stub.java' class generated by RMIC, but the 'Impl.java' which I need to generate it (with 'ant.rmic' task) is in the server project.

If I move the 'Impl.java' class to the client side and make RMIC generate the Stub there, I bring many implementation specific code to the client side, thus I'm voilating the concept of client/server architecture...

If I do not do that, I only have "dirty" ways to go ('ant.copy' tasks between the projects) if I want to bring the Stub classes generated by RMIC to the client project and eventually to the 'client.jar'...


Is there a clear solution for this kind of problematic ?

Thanx a lot.

Chao:

    Laci




--
**********************************************************************
CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential. If you are not the intended recipient, you do not have permission to disclose, copy, distribute, or open any attachments. If you have received this E-mail
in error, please notify us immediately by returning it to the sender and delete this copy from your system.


Thank you.
accessIndiana, MyLocal.IN.gov, CivicNet


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to