• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to package client which requires access to server interfaces?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm new to distributed systems and thick clients, so I have a basic question.

I'm trying to devise a strategy for packaging an application that comprises of a server and a thick client, which communicate through Spring's HTTPInvoker (a simple RMI like mechanism).

The question is: how should I package the client, which requires access to interfaces from the server side application?

I want to minimise access to the server application from the client; I want to avoid having to include dependencies of the server app. in the client package.

Any thoughts?

Jim
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

you need to create an server-api-package and a server-impl-package. You Server-Api-Package contains all interfaces, but no implementation. So your client and your server-impl can include this package and use the same interfaces. If you change an interface, it will automaticly available in the server and the client, there is no code-redundance.

For smaller or learning-projects, you can create this packages by hand, for processional use, maven has good plugins.

hope i could help

Igor
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi "Igor instanceof HumanBeing",

Please check your private messages for an important administrative matter.

You can see the same using this
 
reply
    Bookmark Topic Watch Topic
  • New Topic