1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META name="description" content="Apache Tuscany">
<META name="keywords" content="apache, apache tuscany, tuscany, service, services, fabric, soa, service oriented architecture, sca, service component architecture, das, sdo, csa, ruby, opensource">
<LINK type="text/css" rel="stylesheet" href="http://tuscany.apache.org/stylesheets/default.css">
<LINK rel="SHORTCUT ICON" href="https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/$images/favicon.ico">
<TITLE>Samples-Beta1 : Apache Tuscany</TITLE>
<META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
<STYLE>
.spacetree * ul {
padding-left:0px;
margin-left: 0px;
}
.spacetree * li {
margin-left: 5px;
padding-left:5px;
}
</STYLE>
<BODY onload="init()">
<!-- topNav -->
<TABLE border="0" cellpadding="2" cellspacing="0" width="100%">
<TR class="topBar">
<TD align="left" valign="middle" class="topBarDiv" align="left" nowrap="">
<A href="https://cwiki.apache.org/geronimo"> Home</A> > <A href="index.html" title="Apache Tuscany Docs 2.x">Apache Tuscany Docs 2.x</A> > <A href="index.html" title="Index">Index</A> > <A href="getting-started.html" title="Getting Started">Getting Started</A> > <A href="" title="Samples-Beta1">Samples-Beta1</A>
</TD>
<TD align="right" valign="middle" nowrap="">
<FORM name="search" action="http://www.google.com/search" method="get">
<INPUT type="hidden" name="ie" value="UTF-8">
<INPUT type="hidden" name="oe" value="UTF-8">
<INPUT type="hidden" name="domains" value="">
<INPUT type="hidden" name="sitesearch" value="">
<INPUT type="text" name="q" maxlength="255" value="">
<INPUT type="submit" name="btnG" value="Google Search">
</FORM>
</TD>
</TR>
</TABLE>
<TABLE border="0" cellpadding="2" cellspacing="0" width="100%">
<TR class="topBar">
<TD align="left" valign="middle" class="topBarDiv" nowrap="true" width="100%">
<A href="index.html" title="Apache Tuscany Docs 2.x">Apache Tuscany Docs 2.x</A> > <A href="index.html" title="Index">Index</A> > <A href="getting-started.html" title="Getting Started">Getting Started</A> > <A href="" title="Samples-Beta1">Samples-Beta1</A>
</TD>
<TD align="right" valign="middle" class="topBarDiv" align="left" nowrap="true">
<A href="http://tuscany.apache.org/">Tuscany Home</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-user">User List</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-dev">Dev List</A> | <A href="http://issues.apache.org/jira/browse/Tuscany">Issue Tracker</A>
</TD>
</TR>
</TABLE>
<TABLE border="0" cellpadding="0" width="100%" bgcolor="#FFFFFF">
<TR>
<TD valign="top" align="left" width="22%" bgcolor="#F9F9F9" class="noprint">
<DIV class="tabletitle">Table of Contents</DIV>
<DIV class="spacetree">
</DIV>
</TD>
<TD align="left" valign="top" width="78%">
<!-- pageContent -->
<DIV id="PageContent">
<DIV class="pageheader" style="padding: 6px 0px 0px 0px;">
<!-- We'll enable this once we figure out how to access (and save) the logo resource -->
<!--img src="http://geronimo.apache.org/images/confluence_logo.gif" style="float: left; margin: 4px 4px 4px 10px;" border="0"-->
<DIV style="margin: 0px 10px 0px 10px" class="smalltext">Apache Tuscany Docs 2.x</DIV>
<DIV style="margin: 0px 10px 8px 10px" class="pagetitle">Samples-Beta1</DIV>
<DIV class="greynavbar" align="right" style="padding: 2px 10px; margin: 0px;">
<!-- -->
<A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=23337713">
<IMG src="http://geronimo.apache.org/images/icons/notep_16.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></A>
<A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=23337713">Edit Page</A>
<A href="https://cwiki.apache.org/confluence/pages/listpages.action?key=TUSCANYxDOCx2x">
<IMG src="http://geronimo.apache.org/images/icons/browse_space.gif" height="16" width="16" border="0" align="absmiddle" title="Browse Space"></A>
<A href="https://cwiki.apache.org/confluence/pages/listpages.action?key=TUSCANYxDOCx2x">Browse Space</A>
<A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&fromPageId=23337713">
<IMG src="http://geronimo.apache.org/images/icons/add_page_16.gif" height="16" width="16" border="0" align="absmiddle" title="Add Page"></A>
<A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&fromPageId=23337713">Add Page</A>
<A href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=TUSCANYxDOCx2x&fromPageId=23337713">
<IMG src="http://geronimo.apache.org/images/icons/add_blogentry_16.gif" height="16" width="16" border="0" align="absmiddle" title="Add News"></A>
<A href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=TUSCANYxDOCx2x&fromPageId=23337713">Add News</A>
<!-- -->
</DIV>
</DIV>
<DIV class="pagecontent">
<DIV class="wiki-content">
<H1><A name="Samples-Beta1-"></A><FONT color="#003366"><B>Tuscany Samples</B></FONT></H1>
<P><FONT color="#000000">The Tuscany Samples are shipped with Tuscany binary and source releases. If you are using tuscany from a release distribution then make sure you are looking at the documentation that corresponds to the samples as they stood at the time of the release.</FONT></P>
<P><A href="20-beta-samples-documentation.html" title="2.0-beta-Samples documentation">2.0-beta samples documentation</A></P>
<P>If however you are working with a snapshot distribution, or using samples code from the trunk of our source repository, then you've come to the right place, as the documentation here reflects the current status of the samples in the trunk of our source tree.</P>
<P><FONT color="#000000">In a distribution, the samples source code is found in either a binary or source code distribution in the samples directory, directly under the root directory. The following sections are laid out to match the structure of the samples directory and its subdirectories.</FONT><BR class="atl-forced-newline"></P>
<DIV>
<UL>
<LI><SPAN class="TOCOutline">1</SPAN> <A href="#Samples-Beta1-gettingstarted">getting-started</A></LI>
<UL>
<LI><SPAN class="TOCOutline">1.1</SPAN> <A href="#Samples-Beta1-contributionhelloworld">contribution-helloworld</A></LI>
<LI><SPAN class="TOCOutline">1.2</SPAN> <A href="#Samples-Beta1-helloworldwebapp">helloworld-webapp</A></LI>
</UL>
<LI><SPAN class="TOCOutline">2</SPAN> <A href="#Samples-Beta1-runningtuscany">running-tuscany</A></LI>
<UL>
<LI><SPAN class="TOCOutline">2.1</SPAN> <A href="#Samples-Beta1-commandline">command-line</A></LI>
<LI><SPAN class="TOCOutline">2.2</SPAN> <A href="#Samples-Beta1-embeddedjse">embedded-jse</A></LI>
<LI><SPAN class="TOCOutline">2.3</SPAN> <A href="#Samples-Beta1-embeddedosgi">embedded-osgi</A></LI>
<LI><SPAN class="TOCOutline">2.4</SPAN> <A href="#Samples-Beta1-maven">maven</A></LI>
<LI><SPAN class="TOCOutline">2.5</SPAN> <A href="#Samples-Beta1-osgi">osgi</A></LI>
<LI><SPAN class="TOCOutline">2.6</SPAN> <A href="#Samples-Beta1-shell">shell</A></LI>
<LI><SPAN class="TOCOutline">2.7</SPAN> <A href="#Samples-Beta1-webapp">webapp</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3</SPAN> <A href="#Samples-Beta1-learningmore">learning-more</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.1</SPAN> <A href="#Samples-Beta1-async">async</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.1.1</SPAN> <A href="#Samples-Beta1-"> <SPAN style="color: #003366"><B>sample-contribution-implementation-java-calculator-async</B></SPAN></A></LI>
<LI><SPAN class="TOCOutline">3.1.2</SPAN> <A href="#Samples-Beta1-embeddedjseasyncsamplelauncher">embedded-jse-async-sample-launcher</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.2</SPAN> <A href="#Samples-Beta1-bindingcomet">binding-comet</A></LI>
<LI><SPAN class="TOCOutline">3.3</SPAN> <A href="#Samples-Beta1-bindingjsonrpc">binding-jsonrpc</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.3.1</SPAN> <A href="#Samples-Beta1-contributioncalculator">contribution-calculator</A></LI>
<LI><SPAN class="TOCOutline">3.3.2</SPAN> <A href="#Samples-Beta1-contributioncalculatorwebapp">contribution-calculator-webapp</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.4</SPAN> <A href="#Samples-Beta1-bindingrmi">binding-rmi</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.4.1</SPAN> <A href="#Samples-Beta1-contributioncalculatorreference%2528forbindingrmi%2529">contribution-calculator-reference (for binding-rmi)</A></LI>
<LI><SPAN class="TOCOutline">3.4.2</SPAN> <A href="#Samples-Beta1-contributioncalculatorservice%2528forbindingrmi%2529">contribution-calculator-service (for binding-rmi)</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.5</SPAN> <A href="#Samples-Beta1-bindingsca">binding-sca</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.5.1</SPAN> <A href="#Samples-Beta1-contributioncalculator%2528forbindingSCA%2529">contribution-calculator (for binding SCA)</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.6</SPAN> <A href="#Samples-Beta1-bindingws">binding-ws</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.6.1</SPAN> <A href="#Samples-Beta1-contributioncalculator%2528forbindingws%2529">contribution-calculator (for binding-ws)</A></LI>
<LI><SPAN class="TOCOutline">3.6.2</SPAN> <A href="#Samples-Beta1-contributionhelloworldwssdo%2528forbindingws%2529">contribution-helloworld-ws-sdo (for binding-ws)</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.7</SPAN> <A href="#Samples-Beta1-distributedosgi">distributed-osgi</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.7.1</SPAN> <A href="#Samples-Beta1-dosgidynamiccalculator">dosgi-dynamic-calculator</A></LI>
<LI><SPAN class="TOCOutline">3.7.2</SPAN> <A href="#Samples-Beta1-dosgidynamiccalculatoroperations">dosgi-dynamic-calculator-operations</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.8</SPAN> <A href="#Samples-Beta1-implementationbpel">implementation-bpel</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.8.1</SPAN> <A href="#Samples-Beta1-contributionhelloworldbpel">contribution-helloworld-bpel</A></LI>
<LI><SPAN class="TOCOutline">3.8.2</SPAN> <A href="#Samples-Beta1-helloworldbpelwebapp">helloworld-bpel-webapp</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.9</SPAN> <A href="#Samples-Beta1-implementationcomposite">implementation-composite</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.9.1</SPAN> <A href="#Samples-Beta1-helloworldrecursive">helloworld-recursive</A></LI>
<LI><SPAN class="TOCOutline">3.9.2</SPAN> <A href="#Samples-Beta1-helloworldrecursivews">helloworld-recursive-ws</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.10</SPAN> <A href="#Samples-Beta1-implementationextension">implementation-extension</A></LI>
<LI><SPAN class="TOCOutline">3.11</SPAN> <A href="#Samples-Beta1-implementationjava">implementation-java</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.11.1</SPAN> <A href="#Samples-Beta1-contributioncalculator">contribution-calculator</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.12</SPAN> <A href="#Samples-Beta1-implementation.osgi">implementation.osgi</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.12.1</SPAN> <A href="#Samples-Beta1-dosgicalculator">dosgi-calculator</A></LI>
<LI><SPAN class="TOCOutline">3.12.2</SPAN> <A href="#Samples-Beta1-dosgicalculatoroperations">dosgi-calculator-operations</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.13</SPAN> <A href="#Samples-Beta1-implementationscript">implementation-script</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.13.1</SPAN> <A href="#Samples-Beta1-contributioncalculator">contribution-calculator</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.14</SPAN> <A href="#Samples-Beta1-implementationspring">implementation-spring</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.14.1</SPAN> <A href="#Samples-Beta1-contributionhelloworldspring">contribution-helloworld-spring</A></LI>
<LI><SPAN class="TOCOutline">3.14.2</SPAN> <A href="#Samples-Beta1-helloworldspringwebapp">helloworld-spring-webapp</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.15</SPAN> <A href="#Samples-Beta1-implementationwebapp">implementation-webapp</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.15.1</SPAN> <A href="#Samples-Beta1-helloworldjaxrswebapp">helloworld-jaxrs-webapp</A></LI>
<LI><SPAN class="TOCOutline">3.15.2</SPAN> <A href="#Samples-Beta1-helloworldjmswebapp">helloworld-jms-webapp</A></LI>
<LI><SPAN class="TOCOutline">3.15.3</SPAN> <A href="#Samples-Beta1-helloworldjsclientwebapp">helloworld-js-client-webapp</A></LI>
<LI><SPAN class="TOCOutline">3.15.4</SPAN> <A href="#Samples-Beta1-helloworldjsfwebapp">helloworld-jsf-webapp</A></LI>
<LI><SPAN class="TOCOutline">3.15.5</SPAN> <A href="#Samples-Beta1-helloworldjspwebapp">helloworld-jsp-webapp</A></LI>
<LI><SPAN class="TOCOutline">3.15.6</SPAN> <A href="#Samples-Beta1-helloworldservletwebapp">helloworld-servlet-webapp</A></LI>
<LI><SPAN class="TOCOutline">3.15.7</SPAN> <A href="#Samples-Beta1-helloworldstripeswebapp">helloworld-stripes-webapp</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.16</SPAN> <A href="#Samples-Beta1-loggingscribe">logging-scribe</A></LI>
<LI><SPAN class="TOCOutline">3.17</SPAN> <A href="#Samples-Beta1-mavenosgijunit">maven-osgi-junit</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.17.1</SPAN> <A href="#Samples-Beta1-calculatorosgi">calculator-osgi</A></LI>
<LI><SPAN class="TOCOutline">3.17.2</SPAN> <A href="#Samples-Beta1-calculatorrestosgi">calculator-rest-osgi</A></LI>
</UL>
<LI><SPAN class="TOCOutline">3.18</SPAN> <A href="#Samples-Beta1-scaclient">sca-client</A></LI>
<UL>
<LI><SPAN class="TOCOutline">3.18.1</SPAN> <A href="#Samples-Beta1-calculatorscaclient">calculator-scaclient</A></LI>
<LI><SPAN class="TOCOutline">3.18.2</SPAN> <A href="#Samples-Beta1-helloworldscaclient">helloworld-scaclient</A></LI>
</UL>
</UL>
<LI><SPAN class="TOCOutline">4</SPAN> <A href="#Samples-Beta1-applications">applications</A></LI>
<UL>
<LI><SPAN class="TOCOutline">4.1</SPAN> <A href="#Samples-Beta1-store">store</A></LI>
<LI><SPAN class="TOCOutline">4.2</SPAN> <A href="#Samples-Beta1-storewebapp">store-webapp</A></LI>
</UL>
</UL></DIV>
<H2><A name="Samples-Beta1-gettingstarted"></A>getting-started</H2>
<P>SCA defines a concept called a Contribution which is the way that SCA composite applications are packed for deployment. See <A href="sca-introduction.html" title="SCA Introduction">SCA Introduction</A> for more information on SCA concepts. </P>
<P>The getting-started samples consist of simple SCA contributions that you can build and run as your first step to getting up and running with the Tuscany SCA Java runtime. </P>
<P>You can build the sample contributions with either Maven or Ant and the running-tuscany director contains information about the various ways you can start Tuscany and run these contributions. </P>
<H3><A name="Samples-Beta1-helloworldcontribution"></A>helloworld-contribution</H3>
<P>This is the simplest contribution. This contribution describes a composite application with a single component implemented in Java. The component's Java implementation provides service "business logic" for saying hello to a person whose name is supplied as input to the service. </P>
<H3><A name="Samples-Beta1-helloworldwebapp"></A>helloworld-webapp</H3>
<P>This sample is not a contribution in it's own right but demonstrates how to run the helloworld-contribution inside a web application. </P>
<H3><A name="Samples-Beta1-callbackapi"></A>callback-api</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">This feels like a learning-more sample. I wouldn't focus on callbacks with the first time user</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-scascopes"></A>sca-scopes</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">This feels like a learning-more sample. I wouldn't focus on scopes with the first time user</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-scaincludecontribution"></A>sca-include-contribution</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">This feels like a learning-more sample. I wouldn't focus on scopes with the first time user</FONT></TD></TR></TABLE></DIV>
<H2><A name="Samples-Beta1-runningtuscany"></A>running-tuscany</H2>
<P>Running something in Tuscany requires one or more contributions, and a method of launching the contributions to make them available as services. The sections below describes various means of launching contributions into an executing tuscany runtime.</P>
<H3><A name="Samples-Beta1-commandline"></A>command-line</H3>
<P>To execute a sample contribution from the command line on Windows, from a command prompt in the samples directory, run the command ...</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
..\bin\tuscany.bat <SPAN class="code-quote">"contribution-name"</SPAN>
</PRE>
</DIV></DIV>
<P>for example</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
..\bin\tuscany.bat contribution-binding-sca-calculator
</PRE>
</DIV></DIV>
<P>or on *nix platforms, from a shell prompt in the samples directory, run the command ...</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
../bin/tuscany.sh contribution-binding-sca-calculator
</PRE>
</DIV></DIV>
<H3><A name="Samples-Beta1-embeddedjse"></A>embedded-jse</H3>
<P>This directory contains sample java launchers for the<BR>
tuscany sample contributions. To use the sample JSE launchers with ant execute the command</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
ant run-<contributionname>
</PRE>
</DIV></DIV>
<P>where run-<contributionname> is one of the targets in the build.xml file</P>
<P>To use this sample launcher to run all of the contributions as junit test cases, execute the command "mvn" in the launcher directory.</P>
<H3><A name="Samples-Beta1-embeddedosgi"></A>embedded-osgi</H3>
<P>The launchers implemented in the src/main/java/launchers directory each launch a specific contribution into the OSGI runtime.<BR>
To use this sample OSGI launcher with ant excute the command</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
ant run-<contributionname>
</PRE>
</DIV></DIV>
<P>where run-<contributionname> is one of the targets in the build.xml file</P>
<P>To use this sample launcher to run all of the contributions as junit test cases,<BR>
execute the command </P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">mvn</PRE>
</DIV></DIV>
<P> in the launcher directory.</P>
<H3><A name="Samples-Beta1-maven"></A>maven</H3>
<P>To execute a sample contribution from Maven</P>
<P>look for contributions that have the following configuration in their pom.xml file:</P>
<P><plugin><BR>
<groupId>org.apache.tuscany.maven.plugins</groupId><BR>
<artifactId>maven-tuscany-plugin</artifactId><BR>
<version>2.0-SNAPSHOT</version><BR>
</plugin></P>
<P>For contributions that have this, for example, learning-more/binding-sca/contribution-calculator, do the following</P>
<P>cd samples/learning-more/binding-sca/contribution-calculator<BR>
mvn tuscany:run</P>
<P>This will launch the contribution in the Tuscany runtime and then wait. At this point you can use<BR>
other clients to send messages to services that the running SCA applcation exposes,<BR>
for example, try learning-more/calculator-scaclient.</P>
<H3><A name="Samples-Beta1-osgi"></A>osgi</H3>
<P>The Tuscany runtime can be run in and OSGi container. </P>
<P><B>Running in Equinox</B></P>
<P>On Windows, run</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
java \-jar ..\..\modules\osgi-3.5.0-v20090520.jar \-configuration ..\..\features\configuration \-clean \-console
</PRE>
</DIV></DIV>
<P>On *Unix, run</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
java \-jar ../../modules/osgi-3.5.0-v20090520.jar \-configuration ../../features/configuration \-clean \-console
</PRE>
</DIV></DIV>
<P>You should see the osgi console:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
osgi>
osgi> Jun 22, 2009 1:32:27 PM org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoveryActivator start
INFO: Equinox-based service discoverer is now configured.
</PRE>
</DIV></DIV>
<P>You can run "ss" command under the osgi> to see the status of the bundles.</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
osgi> ss
</PRE>
</DIV></DIV>
<P>Then you can install and start contributions as bundles by doing the following:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
osgi> install file:./path/to/contribution_bundle.jar
</PRE>
</DIV></DIV>
<P>Note that contribution_bundle.jar will need an activator in order to register the bundle as a SCA contribution</P>
<DIV class="panelMacro"><TABLE class="warningMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD>see samples/????<BR>
TODO is this still true</TD></TR></TABLE></DIV>
<P>Running on Felix</P>
<P>See <A href="http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html" class="external-link" rel="nofollow">http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html</A></P>
<H3><A name="Samples-Beta1-shell"></A>shell</H3>
<P>This directory contains a sample shell program supporting simple commands to<BR>
start and stop SCA composites.</P>
<P>To build the sample shell do this:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
mvn install
</PRE>
</DIV></DIV>
<P>To run it:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
./sca
</PRE>
</DIV></DIV>
<P>at the prompt:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
start myNode ../../applications/store/target/sample-store.jar
</PRE>
</DIV></DIV>
<P>or:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
start myNode http:<SPAN class="code-comment">//people.apache.org/~jsdelfino/tuscany/java/test/sample-store.jar</SPAN>
</PRE>
</DIV></DIV>
<P>also try:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
status
stop myNode
bye
</PRE>
</DIV></DIV>
<P>Starting and stopping composites is pretty fast. To see that, try the following<BR>
two scripts, which start/stop the sample store composite 10 times.</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
./sca <scripts/test.txt
</PRE>
</DIV></DIV>
<P>or</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
./sca <scripts/test-remote.txt
</PRE>
</DIV></DIV>
<P>The shell can also run as a Webapp. To try it install target/scashell.war in<BR>
a Web container, point your Web browser to <A href="http://localhost:8080/scashell" class="external-link" rel="nofollow">http://localhost:8080/scashell</A><BR>
and try the links on that page.</P>
<H3><A name="Samples-Beta1-webapp"></A>webapp</H3>
<P>To execute sample webapp based contributions (contributions that have webapp at the end of their name) you<BR>
can build the contribution using maven and then copy the resulting war file to your container of choice</P>
<P>For example, for binding-jsonrpc/contribution-calculator-webapp, do the following</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
cd samples/binding-jsonrpc/contribution-calculator-webapp
mvn
cp target/sample-contribution-binding-jsonrpc-calculator-webapp.war your_container_deployment-dir
</PRE>
</DIV></DIV>
<P>As an alternative sample webapp based contributions can be run within Jetty directly from Maven, look for<BR>
webapp contributions that have the following configuration in their pom.xml file:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.18</version>
</plugin>
</PRE>
</DIV></DIV>
<P>For contributions that have this, for example, binding-jsonrpc/contribution-calculator-webapp, do the following</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
cd samples/binding-sca/contribution-calculator
mvn jetty:run
</PRE>
</DIV></DIV>
<P>This will launch the contribution in the Jetty runtime and then wait. At this point you can use<BR>
HTTP clients to send messages to services that the running SCA applcation exposes. For this<BR>
example try pointing your browser at:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
http:<SPAN class="code-comment">//localhost:8080/sample-contribution-binding-jsonrpc-calculator-webapp/</SPAN>
</PRE>
</DIV></DIV>
<H2><A name="Samples-Beta1-learningmore"></A>learning-more</H2>
<P>The samples found in the contributions below illustrate how to see more of SCA and Tuscany's features in action. You'll need to employ the information above in the "running tuscany" section to select an appropriate way of runing the contributions in the samples listed below.</P>
<H3><A name="Samples-Beta1-async"></A>async</H3>
<P>This sample demonstrates invocation of services offered in both synchronous and asynchronous forms. Asynchroncity is possible by either callback to or polling by the original service invoker.</P>
<H4><A name="Samples-Beta1-"></A><FONT color="#003366"><B>sample-contribution-implementation-java-calculator-async</B></FONT></H4>
<P>In the composite file src/main/resources/Calculator.composite the references "calculatorServiceRefSync" and "calculatorServiceRefAsync" make use of the alternative implementations of the Calculator service described in the CalculatorSync and CalculatorAsync components and implemented in the calculator.CalculatorServiceSyncImpl and calculator.CalculatorServiceAsyncImpljava classes. </P>
<H4><A name="Samples-Beta1-embeddedjseasyncsamplelauncher"></A>embedded-jse-async-sample-launcher</H4>
<P>Note that the launcher simply starts and stops a node running the contribution. Within the contribution the CalculatorClient java class, marked with the @EagerInit annotation, runs its calculate method (marked with the @Init annotation), thereby triggering the calculation service to be performed. The calculator service is actually performed by the injected instance of CalculatorServiceProxyImpl, which uses both of its references (one for the sync service, one for the async) to perform calculations. The calculations are then performed by instances of CalculatorServiceSyncImpl and CalculatorServiceAsyncImpl. Note that the Tuscany runtime views the following two interfaces as compatible.</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
@Remotable
<SPAN class="code-keyword">public</SPAN> <SPAN class="code-keyword">interface</SPAN> CalculatorService {
<SPAN class="code-object">String</SPAN> calculate(<SPAN class="code-object">Integer</SPAN> n1);
}
@Remotable
@AsyncInvocation
<SPAN class="code-keyword">public</SPAN> <SPAN class="code-keyword">interface</SPAN> CalculatorServiceAsync {
void calculateAsync(<SPAN class="code-object">Integer</SPAN> n1, ResponseDispatch<<SPAN class="code-object">String</SPAN>> response);
}
</PRE>
</DIV></DIV>
<H3><A name="Samples-Beta1-bindingcomet"></A>binding-comet</H3>
<P>Executing the command "mvn" in this sample project creates a web archive suitable for deployment to Tomcat. It makes use of the tuscany coment binding. Comet support allows a servlet to process IO asynchronously, receiving events when data is available for reading on the connection (rather than always using a blocking read), and writing data back on connections asynchronously (most likely responding to some event raised from some other source).</P>
<DIV class="panelMacro"><TABLE class="warningMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Needs expert review/update</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-bindingjsonrpc"></A>binding-jsonrpc</H3>
<P>This sample demonstrates using a simple calculator service component which makes use of four services for the basic arithmetic functions. In this variant of the calculator sample you can see by looking in the src/main/resources/Calculator.composite xml file that the AddService is configured to be invoked using the json rpc protocol.</P>
<H4><A name="Samples-Beta1-contributioncalculator"></A>contribution-calculator</H4>
<P>This variant of the calculator contribution configures the AddService to be accessed via the JSON RPC protocol (see the XML in the Calculator.composite file).</P>
<DIV class="panelMacro"><TABLE class="warningMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR>Needs review/completion</TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-contributioncalculatorwebapp"></A>contribution-calculator-webapp</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-bindingrmi"></A>binding-rmi</H3>
<P>In this example the calculator function is split over two contributions in order to demonstrate the remote method invocation binding. The CalculatorService in the CalculatorServiceComponent defined in the CalculatorRMIServer.composite file is configured to be accessible using RMI.</P>
<DIV class="panelMacro"><TABLE class="warningMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR>Needs review/completion</TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-contributioncalculatorreference%28forbindingrmi%29"></A>contribution-calculator-reference (for binding-rmi)</H4>
<P>This contribution serves the purpose of accessing the services of the calculator service contribution, in particular defining a reference that uses the add service of that contribution using the RMI protocol.</P>
<H4><A name="Samples-Beta1-contributioncalculatorservice%28forbindingrmi%29"></A>contribution-calculator-service (for binding-rmi)</H4>
<P>This contribution defines the calcullators add service to be available via RMI invocation.</P>
<H3><A name="Samples-Beta1-bindingsca"></A>binding-sca</H3>
<P>This sample is the simplest sample other than that shown in the getting starting section. It uses the default SCA protocol for communicating between the components. </P>
<H4><A name="Samples-Beta1-contributioncalculator%28forbindingSCA%29"></A>contribution-calculator (for binding SCA)</H4>
<P><FONT color="#000000">The service and reference definitions in the Calculator.composite and CalculatorClient.composite files have no binding attributes, thereby defaulting to the SCA binding for communication between the running instances of the components.</FONT></P>
<H3><A name="Samples-Beta1-bindingws"></A>binding-ws</H3>
<P>This sample contains contrributions which show how the services can be offered via a web service interfaqce.</P>
<H4><A name="Samples-Beta1-contributioncalculator%28forbindingws%29"></A>contribution-calculator (for binding-ws)</H4>
<P>This contribution provides the four arithmetic operations in the calculator service, with the AddService being accessible as a web service via the URL <A href="http://localhost:8085/AddServiceComponent" class="external-link" rel="nofollow">http://localhost:8085/AddServiceComponent</A>, as configured in the Calculator.composite file in the contribution project.</P>
<H4><A name="Samples-Beta1-contributionhelloworldwssdo%28forbindingws%29"></A>contribution-helloworld-ws-sdo (for binding-ws)</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document - rework the content of the README as given below</FONT></TD></TR></TABLE></DIV>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
Hello World Web Service References using SDO Sample
===================================================
This sample demonstrates an SCA reference that uses a web service binding which works with SDO.
The README in the samples directory (the directory above <SPAN class="code-keyword">this</SPAN>) provides
general instructions about building and running samples. Take a look there
first.
To run <SPAN class="code-keyword">this</SPAN> sample
------------------
This sample is dependent on helloworld-ws-service. Open a command prompt to start
the service. If you are running ant <SPAN class="code-keyword">do</SPAN> the following:
cd helloworld-ws-service
ant run
<SPAN class="code-keyword">if</SPAN> you don't have ant, issue one of the following commands <SPAN class="code-keyword">for</SPAN> windows or *nix:
java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-helloworld-ws-service.jar helloworld.HelloWorldServer
and on *nix <SPAN class="code-keyword">do</SPAN>
java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-helloworld-ws-service.jar helloworld.HelloWorldServer
You should see the following output:
Buildfile: build.xml
run-server:
[java] log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom.
om.util.StAXUtils).
[java] log4j:WARN Please initialize the log4j system properly.
[java] Aug 24, 2007 11:17:33 AM org.apache.catalina.core.StandardEngine sta
rt
[java] INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
[java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.ContextConfig d
efaultWebConfig
[java] INFO: No <SPAN class="code-keyword">default</SPAN> web.xml
[java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory
register
[java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/jsp_2_0.
xsd
[java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory
register
[java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jspt
aglibrary_1_1.dtd
[java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory
register
[java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jspt
aglibrary_1_2.dtd
[java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory
register
[java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jspt
aglibrary_2_0.xsd
[java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory
register
[java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/resources/j2ee_web_ser
vices_1_1.xsd
[java] Aug 24, 2007 11:17:34 AM org.apache.coyote.http11.Http11Protocol ini
t
[java] INFO: Initializing Coyote HTTP/1.1 on http-8085
[java] Aug 24, 2007 11:17:34 AM org.apache.coyote.http11.Http11Protocol sta
rt
[java] INFO: Starting Coyote HTTP/1.1 on http-8085
[java] Aug 24, 2007 11:17:34 AM org.apache.tuscany.sca.http.tomcat.TomcatSe
rver addServletMapping
[java] INFO: Added Servlet mapping: http:<SPAN class="code-comment">//localhost:8085/HelloWorldService
</SPAN>
[java] HelloWorld server started (press enter to shutdown)
The server is now ready.
Now, open another command window to run the client.
cd helloworld-ws-sdo
ant run
OR <SPAN class="code-keyword">if</SPAN> you don't have ant, on Windows <SPAN class="code-keyword">do</SPAN>
java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-helloworld-ws-sdo.jar helloworld.HelloWorldClient
and on *nix <SPAN class="code-keyword">do</SPAN>
java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-helloworld-ws-sdo.jar helloworl.HelloWorldClient
You should be able to see the following result:
Buildfile: build.xml
run:
[java] log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom.
om.util.StAXUtils).
[java] log4j:WARN Please initialize the log4j system properly.
[java] Injected helloWorldService
[java] Called getGreetings
[java] Hello David Haney
BUILD SUCCESSFUL
Total time: 9 seconds
Sample Overview
---------------
The sample provides a single component that is wired to a reference with a
web service binding. The binding refers to WSDL that identifies the service
exposed by the helloworld-ws-service sample.
helloworld-ws-sdo/
src/
main/
java/
helloworld/
HelloWorldService.java - <SPAN class="code-keyword">interface</SPAN> description <SPAN class="code-keyword">for</SPAN>
HelloWorldServiceComponent
HelloWorldServiceComponent.java - component implementation
HelloWorldClient.java - starts the SCA <SPAN class="code-object">Runtime</SPAN> and
deploys the helloworldwsclient
.composite. It then calls the
HelloWorldServiceComponent
resources/
wsdl
helloworld.wsdl - the service description that the
SCA reference uses to bind to service.
test/
java/
helloworld/
HelloWorldClientTestCase.java - JUnit test <SPAN class="code-keyword">case</SPAN>
helloworld-ws-sdo.png - a pictorial representation of the
sample .composite file
build.xml - the Ant build file
pom.xml - the Maven build file
Building And Running The Sample Using Ant
-----------------------------------------
You can build and run the sample with the binary distribution using Ant.
Make sure that you have started helloworld-ws-service which <SPAN class="code-keyword">this</SPAN> sample is dependent on
in a separate command window. You can either follow the instruction at the begining of <SPAN class="code-keyword">this</SPAN>
sample file or <SPAN class="code-keyword">if</SPAN> you want to build and run the service, follow the README under helloworld-ws-service.
Now, let's build and run helloworld-ws-sdo sample:
cd helloworld-ws-sdo
ant
ant run
You should see the following output from the run target.
run:
[java] log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom.
om.util.StAXUtils).
[java] log4j:WARN Please initialize the log4j system properly.
[java] Injected helloWorldService
[java] Called getGreetings
[java] Hello World
Building And Running The Sample Using Maven
-------------------------------------------
You can build and run the sample with either the binary or source distributions using Maven. Please note that you <SPAN class="code-keyword">do</SPAN> not need to start helloworld-ws-service in <SPAN class="code-keyword">this</SPAN> <SPAN class="code-keyword">case</SPAN> since Maven does <SPAN class="code-keyword">this</SPAN> <SPAN class="code-keyword">for</SPAN> you.
cd helloworld-ws-sdo
mvn
You should see the following output from the test phase.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running helloworld.HelloWorldClientTestCase
log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom.om.util.StAX
Utils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom.om.util.StAX
Utils).
log4j:WARN Please initialize the log4j system properly.
Aug 23, 2007 2:27:32 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.ContextConfig defaultWebConf
ig
INFO: No <SPAN class="code-keyword">default</SPAN> web.xml
Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/jsp_2_0.xsd
Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jsptaglibrary_1_
1.dtd
Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jsptaglibrary_1_
2.dtd
Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jsptaglibrary_2_
0.xsd
Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/resources/j2ee_web_services_1_1.xs
d
Aug 23, 2007 2:27:32 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8085
Aug 23, 2007 2:27:32 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8085
Aug 23, 2007 2:27:32 PM org.apache.tuscany.sca.http.tomcat.TomcatServer addServl
etMapping
INFO: Added Servlet mapping: http:<SPAN class="code-comment">//localhost:8085/HelloWorldService
</SPAN>Injected helloWorldService
Called getGreetings
Aug 23, 2007 2:27:34 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8085
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.502 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
This shows that the Junit test cases have run successfully.
</PRE>
</DIV></DIV>
<H3><A name="Samples-Beta1-distributedosgi"></A>distributed-osgi</H3>
<P>These samples demonstrate the execution of Tuscany contributions in a distributed OSGI environment.</P>
<H4><A name="Samples-Beta1-dosgidynamiccalculator"></A>dosgi-dynamic-calculator</H4>
<H4><A name="Samples-Beta1-dosgidynamiccalculatoroperations"></A>dosgi-dynamic-calculator-operations</H4>
<H3><A name="Samples-Beta1-implementationbpel"></A>implementation-bpel</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-contributionhelloworldbpel"></A>contribution-helloworld-bpel</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR>check instructions work and fix up</TD></TR></TABLE></DIV>
<P>This sample demonstrates an SCA service implemented by a BPEL process.</P>
<P>If you just want to run it to see what happens open a command prompt, navigate<BR>
to this sample directory, and do</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
ant compile run
</PRE>
</DIV></DIV>
<P>OR if you don't have ant, on Windows do</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
mkdir target\classes
mkdir target\wsdl2java-source
java \-cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator \-targetDirectory target/wsdl2java-source \-prefix HelloWorld \-noContainment \-noUnsettable src/main/resources/helloworld.wsdl
java \-cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator \-targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
unzip ..\..\lib\ode-dao-jpa-ojpa-derby-1.1.zip \-d target\database
javac \-d target\classes \-cp target\classes;..\..\lib\tuscany-sca-manifest.jar \-sourcepath src\main\java;target\wsdl2java-source \-target 1.5 \-g \-source 1.5 src\main\java\helloworld\BPELClient.java
copy src\main\resources\* target\classes
java \-cp ..\..\lib\tuscany-sca-manifest.jar;target\classes;target\database helloworld.BPELClient
</PRE>
</DIV></DIV>
<P>and on *nix do</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
mkdir target/classes
mkdir target/wsdl2java-source
java \-cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator \-targetDirectory target/wsdl2java-source \-prefix HelloWorld \-noContainment \-noUnsettable src/main/resources/helloworld.wsdl
java \-cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator \-targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
unzip ../../lib/ode-dao-jpa-ojpa-derby-1.1.zip \-d target/database
javac \-d target/classes \-cp target/classes;../../lib/tuscany-sca-manifest.jar \-sourcepath src/main/java;target/wsdl2java-source \-target 1.5 \-g \-source 1.5 src/main/java/helloworld/BPELClient.java
cp src/main/resources/\* target/classes
java \-cp ../../lib/tuscany-sca-manifest.jar:target/classes:target/database helloworld.BPELClient
</PRE>
</DIV></DIV>
<P>The sample will start an embedded BPEL engine, deploy a process and invoke it.</P>
<P><B>Sample Overview</B></P>
<P>The sample provides a single component that is wired to a service with a<BR>
web service binding.</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
helloworld-bpel/
src/
main/
java/
helloworld/
BPELClient.java - client application <SPAN class="code-keyword">for</SPAN>
BEPELHelloWorldComponent
resources/
deploy.xml - ODE deployment descriptor
helloworld.bpel - helloworld bpel process
helloworld.componentType - helloworld bpel service description
helloworld.composite - the SCA assembly <SPAN class="code-keyword">for</SPAN> <SPAN class="code-keyword">this</SPAN> sample
helloworld.wsdl - the service description that describes
the bpel process
log4j.properties - logging configuration
test/
java/
helloworld/
BPELHelloWorldTestCase.java - JUnit test <SPAN class="code-keyword">case</SPAN>
helloworld-bpel.png - a pictorial representation of the
sample .composite file
build.xml - the Ant build file
pom.xml - the Maven build file
</PRE>
</DIV></DIV>
<P><B>Building And Running The Sample Using Ant</B></P>
<P>With the binary distribution the sample can be built and run using Ant as<BR>
follows</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
cd helloworld-bpel
ant compile
ant run
</PRE>
</DIV></DIV>
<P>You should see the following output from the run target.</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
run:
[java] Starting BPELHelloWorldComponent
[java] >>> Deploying : D:\temp\SCA1.1-RC1\tuscany-sca-1.1-incubating\samples\helloworld-bpel\target\classes
[java] ::arg:::::: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?>
[java] <hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>><message xmlns="http://tuscany.apache.org/implementation/bpel/exampl
</SPAN>e/helloworld.wsdl">Hello</message></hello>
[java] ::message:: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?>
[java] <message><TestPart><hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>><message xmlns="http://tuscany.apache.org/impleme
</SPAN>ntation/bpel/example/helloworld.wsdl">Hello</message></hello></TestPart></message>
[java] Status: RESPONSE
[java] Response: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?>
[java] <message><TestPart><hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>>Hello World</hello></TestPart></message>
</SPAN>[java] Hello World
[java] Stopping BPELHelloWorldComponent
[java] Stopped \!\!\!
BUILD SUCCESSFUL
Total time: 36 seconds
</PRE>
</DIV></DIV>
<P><B>Building And Running The Sample Using Maven</B></P>
<P>With either the binary or source distributions the sample can be built and run<BR>
using Maven as follows. When using Maven, a simple test is present that exercise<BR>
the same logic as the client to invoke the BPEl process.</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
cd helloworld-bpel
mvn
</PRE>
</DIV></DIV>
<P>You should see the following output from the test phase.</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
\------------------------------------------------------\-
T E S T S
\------------------------------------------------------\-
Running helloworld.BPELHelloWorldTestCase
Starting BPELHelloWorldComponent
>>> Deploying : D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\classes
::arg:::::: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?>
<hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>><message xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld
</SPAN>.wsdl">Hello</message></hello>
::message:: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?>
<message><TestPart><hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>><message xmlns="http://tuscany.apache.org/implementation/bpel
</SPAN>/example/helloworld.wsdl">Hello</message></hello></TestPart></message>
Status: RESPONSE
Response: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?>
<message><TestPart><hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>>Hello World</hello></TestPart></message>
</SPAN>Stopping BPELHelloWorldComponent
Stopped \!\!\!
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.656 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] [jar:jar]
[INFO] Building jar: D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\sample-helloworld-bpel.jar
[INFO] [install:install]
[INFO] Installing D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\sample-helloworld-bpel.jar to C:\Documents and Settings\lresend
e\.m2\repository\org\apache\tuscany\sca\sample-helloworld-bpel\1.1-incubating-SNAPSHOT\sample-helloworld-bpel-1.1-incubating-SNAPSHOT.jar
[INFO] \-----------------------------------------------------------------------\-
[INFO] BUILD SUCCESSFUL
[INFO] \-----------------------------------------------------------------------\-
[INFO] Total time: 53 seconds
[INFO] Finished at: Sun Jan 13 09:54:39 PST 2008
[INFO] Final Memory: 24M/43M
[INFO] \-----------------------------------------------------------------------\-
</PRE>
</DIV></DIV>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
<PRE class="code-java">
</PRE>
</DIV></DIV>
<P>This shows that the Junit test cases have run successfully.</P>
<H4><A name="Samples-Beta1-helloworldbpelwebapp"></A>helloworld-bpel-webapp</H4>
<H3><A name="Samples-Beta1-implementationcomposite"></A>implementation-composite</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-helloworldrecursive"></A>helloworld-recursive</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR>Understand and Document</TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-helloworldrecursivews"></A>helloworld-recursive-ws</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-implementationextension"></A>implementation-extension</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-implementationjava"></A>implementation-java</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-contributioncalculator"></A>contribution-calculator</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-implementation.osgi"></A>implementation.osgi</H3>
<H4><A name="Samples-Beta1-dosgicalculator"></A>dosgi-calculator</H4>
<H4><A name="Samples-Beta1-dosgicalculatoroperations"></A>dosgi-calculator-operations</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-implementationscript"></A>implementation-script</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-contributioncalculator"></A>contribution-calculator</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-implementationspring"></A>implementation-spring</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-contributionhelloworldspring"></A>contribution-helloworld-spring</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-helloworldspringwebapp"></A>helloworld-spring-webapp</H4>
<H3><A name="Samples-Beta1-implementationwebapp"></A>implementation-webapp</H3>
<H4><A name="Samples-Beta1-helloworldjaxrswebapp"></A>helloworld-jaxrs-webapp</H4>
<H4><A name="Samples-Beta1-helloworldjmswebapp"></A>helloworld-jms-webapp</H4>
<H4><A name="Samples-Beta1-helloworldjsclientwebapp"></A>helloworld-js-client-webapp</H4>
<H4><A name="Samples-Beta1-helloworldjsfwebapp"></A>helloworld-jsf-webapp</H4>
<H4><A name="Samples-Beta1-helloworldjspwebapp"></A>helloworld-jsp-webapp</H4>
<H4><A name="Samples-Beta1-helloworldservletwebapp"></A>helloworld-servlet-webapp</H4>
<H4><A name="Samples-Beta1-helloworldstripeswebapp"></A>helloworld-stripes-webapp</H4>
<H3><A name="Samples-Beta1-loggingscribe"></A>logging-scribe</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-mavenosgijunit"></A>maven-osgi-junit</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-calculatorosgi"></A>calculator-osgi</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-calculatorrestosgi"></A>calculator-rest-osgi</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-scaclient"></A>sca-client</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-calculatorscaclient"></A>calculator-scaclient</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H4><A name="Samples-Beta1-helloworldscaclient"></A>helloworld-scaclient</H4>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H2><A name="Samples-Beta1-applications"></A>applications</H2>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-store"></A>store</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
<H3><A name="Samples-Beta1-storewebapp"></A>store-webapp</H3>
<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV>
</DIV>
<DIV class="tabletitle">
Children
<SPAN class="smalltext" id="show" style="display: inline;">
<A href="javascript:showChildren()">Show Children</A></SPAN>
<SPAN class="smalltext" id="hide" style="display: none;">
<A href="javascript:hideChildren()">Hide Children</A></SPAN>
</DIV>
<DIV class="greybox" id="children" style="display: none;">
<A href="20-beta-samples-documentation.html" title="2.0-beta-Samples documentation">2.0-beta-Samples documentation</A>
<SPAN class="smalltext">(Apache Tuscany Docs 2.x)</SPAN>
<BR>
</DIV>
</DIV>
</DIV>
</TD>
</TR>
</TABLE>
<!-- footer -->
<TABLE border="0" cellpadding="2" cellspacing="0" width="100%">
<TR>
<TD align="left" valign="middle" class="footer">
<IMG src="http://static.delicious.com/img/delicious.small.gif" height="10" width="10" alt="Delicious">
<A href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'delicious','toolbar=no,width=550,height=550'); return false;">Bookmark this on Delicious</A>
<IMG src="http://digg.com/img/badges/16x16-digg-guy.gif" width="16" height="16" alt="Digg!">
<A href="" onclick="window.open('http://digg.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&topic=programming');">Digg this</A>
<!-- Slicker, but no text
<script type="text/javascript">
digg_skin = 'icon';
digg_window = 'new';
digg_title = 'Apache Geronimo v3.0 Documentation : Samples- Beta1';
digg_topic = 'programming';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
-->
</TD>
<TD align="right" valign="middle" class="footer">
<A href="http://cwiki.apache.org/GMOxPMGT/geronimo-privacy-policy.html">Privacy Policy</A> -
Copyright © 2003-2010, The Apache Software Foundation, Licensed under <A href="http://www.apache.org/licenses/LICENSE-2.0">ASL 2.0.</A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
|