Changes between Version 6 and Version 7 of SimpleDataServicePart13-Invoke
- Timestamp:
- 09/15/09 11:57:07 (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SimpleDataServicePart13-Invoke
v6 v7 11 11 To import the project into the Eclipse workspace 12 12 1. File -> Import -> Existing Projects into Workspace 13 [[Image(source:exp/sds/ images/sds13/ImportPrj1.png)]]13 [[Image(source:exp/sds/exp1/images/sds13/ImportPrj1.png)]] 14 14 2. Browse to the location where you saved the Introduce created data service in [http://dev.uabgrid.uab.edu/wiki/SimpleDataServicePart13-SvcSkel#GenerateDomainModel step 6 of generating the domain model] 15 [[Image(source:exp/sds/ images/sds13/ImportPrj2.png)]]15 [[Image(source:exp/sds/exp1/images/sds13/ImportPrj2.png)]] 16 16 3. Click Finish 17 17 24 24 1. Expand project Person in Eclipse and navigate to src -> edu.uab.uabgrid.cacoresdk.domain package 25 25 2. Select the package -> Right Click -> New -> class 26 [[Image(source:exp/sds/ images/sds13/CreateClass1.png)]]26 [[Image(source:exp/sds/exp1/images/sds13/CreateClass1.png)]] 27 27 3. Type the class Name as ''!HibernateUtil.java'' -> Finish 28 28 4. Copy [source:exp/sds/output/local-client/src/HibernateUtil.java this java code] and paste to the above created ''!HibernateUtil.java'' 29 29 5. Make sure that the first line in the above class is the package name ''package edu.uabgrid.uab.cacoresdk.domain'' to preserve the namespace 30 [[Image(source:exp/sds/ images/sds13/CreateClass2.png)]]30 [[Image(source:exp/sds/exp1/images/sds13/CreateClass2.png)]] 31 31 6. Save project Ctrl-S 32 32 35 35 1. Repeat steps 1 and 2 above to create a new class 36 36 2. Type the class Name as ''!PeopleClient.java'' -> Finish 37 3. Copy [source:exp/sds/ output/local-client/src/PeopleClient.java this java code] and paste to the above created ''!PeopleClient.java''37 3. Copy [source:exp/sds/exp1/output/local-client/src/PeopleClient.java this java code] and paste to the above created ''!PeopleClient.java'' 38 38 4. Make sure that the first line in the above class is the package name ''package edu.uabgrid.uab.cacoresdk.domain'' to preserve the namespace 39 39 5. Save project Ctrl-S 40 [[Image(source:exp/sds/ images/sds13/CreateClass3.png)]]40 [[Image(source:exp/sds/exp1/images/sds13/CreateClass3.png)]] 41 41 42 42 == Add External Jar == 52 52 1. Select project Person -> Right Click -> Properties 53 53 2. In the Properties window -> select Java Build Path -> Click on the tab Libraries 54 [[Image(source:exp/sds/ images/sds13/AddExtJar1.png)]]54 [[Image(source:exp/sds/exp1/images/sds13/AddExtJar1.png)]] 55 55 3. Click on the tab Add External Jars 56 56 4. Navigate to the above specified location to add the ''person-orm.jar'' 57 [[Image(source:exp/sds/ images/sds13/AddExtJar2.png)]]57 [[Image(source:exp/sds/exp1/images/sds13/AddExtJar2.png)]] 58 58 5. Click OK -> OK 59 59 6. You will now see the ''person-orm.jar listed under the ''Referenced Libraries'' folder 70 70 1. In Eclipse, navigate to Person -> src -> edu.uabgrid.uab.cacoresdk.domain 71 71 2. Select !PeopleClient.java -> Right Click -> Run As -> Java Application 72 [[Image(source:exp/sds/ images/sds13/RunApp.png)]]72 [[Image(source:exp/sds/exp1/images/sds13/RunApp.png)]] 73 73 3. The console will list the objects in the table ''PERSON'' of the ''Person'' caGrid data service 74 [[Image(source:exp/sds/ images/sds13/QueryResult.png)]]74 [[Image(source:exp/sds/exp1/images/sds13/QueryResult.png)]] 75 75 76 76 == Check the Data Service Registration ==
