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 21.1
edited by David Avendasora
on 2008/06/25 09:54
on 2008/06/25 09:54
Change comment:
There is no comment for this version
To version 22.1
edited by David Avendasora
on 2008/06/25 09:38
on 2008/06/25 09:38
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -25,9 +25,7 @@ 25 25 26 26 {{/code}} 27 27 28 -1. Create a WOComponent named "JavaClient". 29 -[[image:Picture 11.png]][[image:Picture 10.png]] 30 -This WOComponent will be what passes the specifics about your client-side application to WebObjects. 28 +1. Create a WOComponent named "JavaClient". This WOComponent will be what passes the specifics about your client-side application to WebObjects. {{note title="Note!"}}If you are not creating a Direct To Java Client (D2JC) application, then you will need to replace the applicationClassName (com.webobjects.eogeneration.EODynamicApplication) with the name of your client-side application class. Your non-D2JC client-side Application class *must* subclass EOApplication.{{/note}} 31 31 1. Modify the JavaClient.html replacing the contents with: 32 32 33 33 {{code title="JavaClient.html Contents"}} ... ... @@ -34,14 +34,14 @@ 34 34 <WEBOBJECT NAME=JavaClientComponent></WEBOBJECT> 35 35 {{/code}} 36 36 37 -1. Paste the following as the contents of the JavaClient.wod file.Feelfree to change the applicationName, applicationDescription andvendor parameters to anythingyou wish.35 +1. Modify the JavaClient.wod file by adding: 38 38 39 39 {{code title="JavaClient.wod Contents"}} 40 40 41 41 JavaClientComponent: WOJavaClientComponent { 42 42 applicationClassName = "com.webobjects.eogeneration.EODynamicApplication"; 43 - applicationName = " D2JCWebStart44 - applicationDescription = " D2JCWebStart41 + applicationName = "WebStartJBNDTest"; 42 + applicationDescription = "WebStartJBNDTest"; 45 45 downloadClientClasses = "noDownloadClientClasses"; 46 46 vendor = "My Company"; 47 47 } ... ... @@ -48,9 +48,9 @@ 48 48 49 49 {{/code}} 50 50 51 -{{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}} 52 - 53 53 1. Add the following frameworks to the project build path: 50 + 51 +{{code}} 54 54 JavaDirectToWeb 55 55 JavaDTWGeneration 56 56 JavaEOApplication ... ... @@ -65,13 +65,10 @@ 65 65 JavaJDBCAdaptor 66 66 JavaWebObjects 67 67 JavaWOExtensions 66 +{{/code}} 68 68 69 -{{note title="Note!"}} 70 - If you are not creating a D2JC application, then you won't need all of these, but they won't hurt anything either. 71 -{{/note}} 68 +1. Create a ClasspathClient.txt file in the root of the project and paste the following as contents: 72 72 73 -1. Create a ClasspathClient.txt file in the root of the project and paste the following as contents:{{note title="Note!"}}If you changed the applicaton name in Step 2 above, make sure you change the name of the Client-Side .jar file in the first classpath line below (WebStartJNLPTest.jar). Also be sure to match the case of the project. Client-Side .jar filenames are CamelCase instead of all lowercase as server-side .jar filenames are.{{/note}} 74 - 75 75 {{code title="ClasspathClient.txt File"}} 76 76 77 77 # ApplicationClass == com.webobjects.eoapplication.client.EOClientApplicationSupport ... ... @@ -162,8 +162,6 @@ 162 162 163 163 {{/code}} 164 164 165 -This file is needed to make up for the lack of Java Client application building by the WOLips Incremental Builder. Please follow the [[instructions]] for how to create the Java Client Incremental Builder. 166 - 167 167 1. Right-click on the javaclientbuild.xml file and select "Run As -> Ant Build" 168 168 1. Right-click on the project and select "Run As -> WebObjects Application" 169 169 1. Select your.app.Application as the Application class