Any J2SE or J2EE application can act as a CWS Client, so its structure and packaging depends on the type of application. Here is a few general hints related to Cayenne:
- DO NOT include Cayenne XML files in a client distribution - this information will be loaded in runtime via CWS from the server.
- Include client persistent objects.
- Make sure all needed jars are available in runtime.
One common approach for distributing J2SE applications (especially desktop applications) is via Java Web Start. Below is a sample JNLP deployment descriptor that can be used as a template for Web Start based distribution: