Changes for page Java Client and Direct To Java Client Example Project using WebStart
Last modified by David Avendasora on 2008/07/01 16:52
From version 36.1
edited by David Avendasora
on 2008/07/01 16:52
on 2008/07/01 16:52
Change comment:
There is no comment for this version
To version 34.1
edited by David Avendasora
on 2008/06/25 10:18
on 2008/06/25 10:18
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,5 @@ 1 -This tutorial will help you createasingleEclipse/WOLips project that containsboth the client-andserver-sideclassesofa WebObjectsJava Client project, build both applicationsandthenlaunchthemboth.1 +This tutorial will help you get a new Java Client or Direct To Java Client Application setup in Eclipse/WOLips and get it building properly. 2 2 3 -You can also create a Java Client application using two separate Eclipse projects. One for the server (a WOLips project), and one for the client (most likely a plain Java project). This will make the separation between client and server much more obvious, but then you will have two Eclipse projects to maintain. The approach described in this tutorial is most appropriate for WebStart based client app distribution. 4 - 5 5 1. Create a new WebObjects Application 6 6 [[image:Picture 9.png]] 7 7 1. Name it "WebStartJNLPTest" in Eclipse with a package of "your.app" {{note title="Note!"}}If you change the Project name or packages, then you'll need to make additional changes in the subsequent steps.{{/note}} ... ... @@ -55,7 +55,6 @@ 55 55 {{note title="Note!"}}If you are not creating a Direct To Java Client (D2JC) application, then you will need to replace the applicationClassName parameter (com.webobjects.eogeneration.EODynamicApplication) with the name of your client-side application class. Your non-D2JC client-side Application class *must* subclass EOApplication.{{/note}} 56 56 57 57 1. If you didn't add an EOModel file to the project when you created it, do it now. Drop any existing EOModel in the Resources directory, or create one from scratch. 58 -If you don't specify a client class name for each entity, then WebObjects will automatically use EOGenericRecord as it's class. Once you want to start specifying client-side logic including default values and such, you will need to add the Client Class Name to the Entity in the EOModel, and then setup a new .eogen file in eclipse to generate the client-side classes. 59 59 1. Add the following frameworks to the project build path: 60 60 JavaDirectToWeb 61 61 JavaDTWGeneration ... ... @@ -115,7 +115,7 @@ 115 115 [[image:Picture 13.png]] 116 116 1. Select your.app.Application as the Application class 117 117 [[image:Picture 14.png]] 118 -1. If you want to actually deploy this application, then you will also need to [[modify the build.xml file>>Java Client- WebStart DistributionBuilding]].115 +1. If you want to actually deploy this application, then you will also need to [[modify the build.xml file>>Java Client-Building]]. 119 119 This is it. WebStart should automatically download your client application and launch it. If you are creating a D2JC application and did not put an EOModel file in the Resources directory of your project, then you'll see something like this: 120 120 [[image:Picture 15.png]] 121 121 If you don't want a D2JC application, then you are on your own for creating the user interface for it. Your client-side application can be a command-line or GUI application. If you want a Swing GUI, then I **highly** recommend Florijan Stamenkovic's [[JBND Framework>>http://web.mac.com/flor385/JBND/]]