0% found this document useful (0 votes)
8 views

Spring ALL Hand Written Notes

The document discusses the development of applications using Spring Framework, focusing on various logic types such as business logic and presentation logic. It emphasizes the use of open-source tools and the integration of enterprise services, highlighting the importance of security and dependency management. Additionally, it mentions the role of Spring in creating distributed applications and the need for effective resource management.

Uploaded by

chaitanya.e369
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Spring ALL Hand Written Notes

The document discusses the development of applications using Spring Framework, focusing on various logic types such as business logic and presentation logic. It emphasizes the use of open-source tools and the integration of enterprise services, highlighting the importance of security and dependency management. Additionally, it mentions the role of Spring in creating distributed applications and the need for effective resource management.

Uploaded by

chaitanya.e369
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 233

otlorjlota

05ir€ tebFrarne (l)dlKs ore can jusr develc'pg hjeb ofpllco$ctos '

LEing opn riarna coorri de dcro juot derrelop R{5i6krtre Logics'

t.lO;og 6frin3 toe CaD derclop Otl hrtaS oP lo$ic3 like Buaioeos l-ogic) Per5i5trffe l$t

lDrftrofiC'n logic, Prese'trc'ttcm Logic and erc'

c'o6 ,iB€ 6kcrndolone o+Pn6.,


using 5txlo3 toe Cac) &velop dl) Yjrrt6 oP opplicnuf

fLoo - fire &{pl'r calloD 6 / oef oPPltcortoot, D;otribrrreJ


aPPlicotloos, en'lcrPrl€€
"n" {*
I

sprDS
cafioD FrarritooiK
rgpe I jc,vcr-j EE Frarre tr:orr' I APP)i

Vcndtn: XntaP<.Ce Bt
G'tatc'r : hr. Qad Jhoo6c'o
OpeoSource Slrrl
5gt'ogftatrfrd E'65
'Io Dd.)r,lood elul I gdjpbad as zppire Roro '11^11^1'

€T6i6o : ?.5(Gopolible eorrb .hrr'o


+)
V 9.5 , 3. X
3':r ( tlmParble lDirb Jdrl'st )
i6t doco crqJ FA&5 : wun. Sptn6ftarneoooK' ar$
a)
ru{ dDlioe Tiahnial : blto<o. rgeirdia.Sr
t
l-ut
Bood d{ricols i (a@co.&vc,,45 . coro { trca"" royf aro$ 'com {
u'@@' r)c.tafa z' lo
booFb '" 6pring iD Achcrn Eoro rDann;ng pL{_bti shcd

tfro.)g t.r'' Coor..ing y moduteg. crrbere


.oS 8fxing e.^ Cookri r)6 6 (oo&rte6.

6Frng 5.x Cootcd oO P,o rr6duleS hrt $cr3 ore grd4ed iofo 6 roqicrr Cofr{-Acrries

j.'x vietL, dlogrom i -


-> 6pdDg O ver

6p'jry Aop @
5Pilog e'l Ov€( vlei! Dtagraro :- '-/

tt cot"

6pdog 3.x Ove{ vicu, Dlc.6ram '. -

ff_l F.] -
E@
(nvcl-&rocnl )

@@ t-]
lPc'ftletl
rrtl
---1
lsttA"6 I

flr""-*""t-I

Aop

Tesl

{$.8 e'x JEElrbd(rle = Srrnqg J'. x Conttrf


Dod'rle + fl iSc info "
4'x roodcle
tr wcb oodulc = &riog 4'x tocbhDod4le + 6PnDg at-bl4vd
ftntry

("' ol,l Ottct ?r,cdgt e6


e) 5fn rg COte iS $e base -gal"
d?$ ob,sttcrdc,n Ld4cr oYl plcrin trd.be io
sptn3 DAo I Sfrd$ 6D0o molrrle Pn"^
&ufpa Pc'lst6f(nct,
lo6ic
:> Sf)riog ORh rroclole p6vide6 ab6rr1cHo'D :h}et co orld! Opn Fl(r)6 ao| allfjrl $ lo

deuelop O-y rcsfpiD$ fx{6;sttrx.e Lo6ic. lil<€ +hbcrDd^t-€

._ gprtog AOp rrpclote is gi\nr) fo a?pl$ ispecr6(n'aaUo*t" Se"rvices)oO sprrog Affe'


-1
-'4 4r'r€ VrEb rr,66odg ' ''i5 ' '- rrnFc a^;'n
eprlns nooliC&tlcnr5
OfPlicadcto€ CorffitutuCo'ble P6"*'
0iueD to
---r^'r ^

Ob c,xro fra-. eoorl.. slul a,"ilca}loo6. lire shru-ts c4pD / JsF cfto6 e,< '

- based urb .Pliccrrlcto'


CcFe
orr roulHpla
crlamadlco Ler6er
;-
--+ gprirg c&nfcxb mcd'ref JFE fiodsle Prci'ldes
ana etc" '' &*}ap
- terhmlogics llke JNDI, EoB/ Rllar J|19, lx{ollc.rl
AfPnS And O*er cl'tPucrfiona'
€r*etprise cr{Pn5 , Distrlbcrrcd
I tqrcg oo a.v
aoi co'nPr€ctro'de Se'flice5
le&aye .%viceb &re addtllc'fnl @Bcrool
|,1;dd
'
opp)iccfirD6 -lz:
oape fbem rrnre 1-z'sec* and Oc.rrlcLle'

H'." 6€curi ru/ TraoSo$roo rngmt, bglng

iE5 deryrttr''t iav


P;re
z,falwt futw 6t@ 6nd
cobo\e sprinSa?i
--+ (stro$ > \ dior\ oatirg '
jctr {c{Y4erLl-g rhe
e'5-b(r"e 'J <1 Y
-lqB;ng
7\ u u\ jaravrtn - cornroons \cc'noYtoil6
is Zs1'rtogz'5 -b6rne
op 0wmc'>t-laad"t
- fie clzrsses o* t*t"tt:
and inrrfucc s oP sPnoX'ia{ us€5
-.-t-Ibe crasses
d? &;'n slt'
--+
5-home >\clrrogelog'
rrt u* &ta'tO alsrt Va'do&S vc-6g6o5
1#'o1[l
$prtng deffrnric.rr:-

+ 5prrng is o' &uabase d O1:eD 6oc-ry.€, l;€h, -trx{hi-i loo6elg carple d, C.(5p€ el orierLk d

ard dqrnderrg iqjedc,D based appl;co$on\ @itrva-JEE FrarffrrcY


k fo derr-loP
"
oll Find6 of afflicc'fion6.

-+ O[PD€cxrr ce 5l(' rrEao S Tt ]5 mi or,lg Pree elto b'r-l- it6 Slrlrce cmte cpitl be
OPcsed to pY{IarDrrrls alorg c.pirb io6t-cdlal"loD'
slca '
z.s1.lrirg bome>\rrc "{?.;rd".t Gpr€sen-r5 Sugce cvre,4 6pnng
a+PD6'
epting AWI)taHon5 ore
li€h-f-craflhJ
-+ fo,ql i,g lighr-DejBhf slco crnd

TeaSooS)
rtrl cc'obe 6'aivalzd
O Spti.g CantarrrrS aYe tlthj-&cJghr erlr,yrArfrf|, Berorrse

ang o\^ee tU i"sr creodn3 *fil6


fcl fetta,o Pre-deFrrd ctasges '

eLt€ be.t^i5.trigtlf Cenlarnert


Anttlinar
NolE'.- Servld- Cctnfciff-'r/ J5?

crn be elcc,,j€d
toi$'ocj- tt'€ hr"\td *i5hJ-
o rqctr oe the 3Pin3 a*lo
C{plico$cIn se-ruc-'r and ebwuen 3ltos'
3Pn'6APr
trirbcr.,-t crsing
conkP &rrbPd
@ resO(-trces
o? sPnr5 oLpplicc!$crq
rneroor3 4d C?u fda'{c€S cct€
€{,'ti"3 c4prirafionS rrrrckr
colrre exauht^$
f6rt reollured
€163 1o leaxn
ood use
*@epr'ng Terlno\63 \5 *rn uoe 66;rq e3 rk
de{€nden% io less blluo tcoo comPonen'fs
-> A? the Degree oP ,,J

Ccrr4r-"crenf5 4ve loosetg Ce&pled '

ccso-{grtonj/s
tFffi tht &trnPon€nj's

IF 15 )s rrrrrc b\w ttoo


rhe &gree oF dq'e'"deT '\)
-
Aye telSturl3 -ccuped Carnponenrs

6ltrr' r€ozoos'
Sprro$ 15 looselS ccrgltleJ
o'rb ffing Coe Cao ule Cj,rbett \rtd;v\d-PP! rltd4rlc-\
Q qxtq 4p ot'te- wnwas
cJr r& rnetdple roodules tu garheJr'

c-€ Cc.n inlqmle SPring coirb 6tbu 63aua rerlnd-qitg in appbtatlorT


. de,etop.qg.rl-, likei genl€f5, }r>P, $u-ttg, +iLe Dott aod ef.' "
''-, -4>(9 Evc-U Sfing rnodure abshracfioD Lagto o"r lxovidro$ roQtfiPle crre
PrDVideS
bcsed
\-. p*s R"a &r'e tcclnolqies
+€cbno)%ies ond rnakea prragrctrrrrrcrr
tlog{aminj cdrrte dareloping opplicaHons '

\ enc&iliog roiddfecor
-+ Jt 15 oturcr5S -oc*'rer7.d t'o &elop$S$l"amr'lccitlano
\-'7 &xvrceS \ire 6ecrrtirS,-IrcrnScrclicro ff€ror ctod erc'"'
BPr'n8AoP to ofplb fut'
\J q **'htd"q; u'ued
sp,,ng Fovi&s neLo
roiddlebrrYe fervicgs on 6Pttog applicarxoDe'
\t-z Aat€{} or;ented
-Th)s
rrnve6 rhe 4nn3 as '
Irsec-rlc'cr
9'

bl.o utq! ug' u


cleprdeoca lcoEt4 at',d &FcrlencS
+ Nh* is |tr 3re'cc ulLo
dipperencc
*t*' od s dqzrlet* volues
\, qorhe"
deaoaa4
clePrrlenc! toolru?:- Rescrrce erpliciYl5
...---+

\-, Roro O*,e.s. (tixe otter rco-,rce s)


Prorn ottEtl
,..-., + in depen&ncx lorcrp y,e$)oyce pulls rtrevcd-'aes ih"',.
'rec#eat P^iY'abio @rkJ
\-'' E90'"- ip srrdcr.t ffi5 q4!9-ry+-9! cro\i aPrcr passlrlg

kpendcn$ lmVtp o
ktxn, JNDJtfttsr'U
\lccil-te,
oh'trcj rePerence
E$@:- 1e ccag coe co\lect utagjlo\rc
\'./
Degmdent-3 tooLu-{'
\..,
.r-, Mvknrc(ge:- can gorbe'l oorg ql'ored glq'ode-,nrv*!'!/es'
ressr'6ce
time loguhc,r it dqryt'*ttva-br8
\-'? qsecrt(r shctild 3fr-nd Some
D,5crdvuoK,-te:-
\"/ ttewr
V&rt( ctitizing
-.-+ Cct)P'tntlm(
kfrndeouJ frrtrctlcml- ffre urclc-tloging ee.rv&r OrtC*ttTAnU( Cw) PfLo
'ltsffr!€ &ssign5 vrrlrre5 to tbc rrsccrrce au-toroarlczk and
\-.., Ccir) aPec^at

v. $nornicoila.
crrrnorcl)*e ""a"tovnX
Jrrrr'ticm forsoauea c6
focLinver5roof
in Da..drrj
-) etc" pushes the vcrtrtcs
to rt-e
- &nrtarrcr to{ ) Se'.\€x [d) Qunrrrne [tl) F[(r] and

Teid.{te'
a----1
r$::P ccrrlse nz<ric,{ i;; ossigrrd fo Sradenr *re ra-nroerr-h 6i<-l&rlt tr-$iore'ro R'r --

cr cfi-use is cofled Depeo&ncaa"ri*tlon,


-Ihe Actlonfuwre+ .{r'dre.9 '€n'oJcttztto E:rttoBeec,ctats f/t-DPelrh<S
Eg[- t,roJ
orilaTafrfi'Ght:u 'Jo ci5ign #tw&F" s'',nol
Eg(r:- The cocg Jv fl &016 c6tr5rr4cf(n
Volu.5 tD oQject.
rrr-rhocl ,Service G'-)
b el.Pdse
1'g@:- -rhe cm3 &.rv6rConiarrg colJs llkcXcte

rc]Aerlt/ r(sgoose o[Pr3 ro oclI Serv


lef PI€rctrD '

Artvantr,Se a: - ta'i|wJ qtu:'tg h rn<


Volcres di"tt*l;
the iniecled
d.gndenr
r€sdlyce Can use

tri ge* d-ero'

o'r.lu**g"; gn*lFyorn.,-@& r''"3 )ogt 8'$


on
.
0-rryd
1.vp
ll e u
e'n'vlr
thc- glrde'{IcoSin$
vdJ-a1es &p/-* oT;;ff:"
n€ress&rH { uoressonJ
de5x-deng
iooF n 4 *
s'pt'cts borh
c
--, 6o'q rnfir-ttco
l"rtn€o,t d+-&"fl Y
.,nrcartxs ate;;t'"
&

6p'nog ogpliccorcrrc4plicdl<tq t6 co'teA \€&cayce. i8*'t[I[.ry{


o'p an
A Fte to1) fr%rar')
-)
pqiecrc o''c b'c(E€d c'D
A1r rr4id idvq J:t:J"iJ:'f"""*:*
lgrc (live lvtu."as offictt
) )
l^be-6-'----) [B'to3ic11*'sist"t'ce
-
c'q
1'1'--"-'->llelel
-------> prcxnrctaoo
logic Cl)Ke &aL(t' ri )
v > \t iun+el
6 (coonedi";5 b5;a)
C-----n (rrnrrolc'l bqpa ----+ JoEaIc.Ho'd' Lrgi

c
The dnin OF he olpricc.rtcrrr ii Ccll€ d Business l-Oc;l
-+ lcfJlc
elcos
on Dc'J.Bc6e
-,,> pe.cisl-cnce loglc )5 u-gfut rrnfu- corzo opt"jrtc'ns
C--rc'rcore g--> trfe R-+Pead D --trytJt
- t4'd
'- (,sclctt) G&u{)^
l

frw,.)
*--r precrr-krHoo lc6tz i6q1ug5 ute'riorcafa.cc {* errd&scr, to &-{,pPi3 to lnprs to apt}cat{,au

aod io v;cd 'resat$ c4 the \PPll<tha

-r Jnfr$cttcrn lqic Ccynrrols crrd np.dkl'6 OA the of/ratkms opftre o44[calctn'


t?/o:J rols
iSf --------------n 6errle, ---------------- JavaclosS / 'Iava Bcan > ogs),.tr

(rcrnrrcrtler) (rroaer;
cvieul)

ioP -------------t Servlc,r RHrA?p


-=--->
[vieo; (crnrrotrer) (r,rodet)
(nelcl )
t-
geaclcarr.lP --=:f)$s/6
J* -----------> fuvttt ---------+ EJBisrorrBca. co"'P'EJBEorrrg
(Peratstcoce lo5i c)
(f.roglc1
/ ,i \ [c') 'l
( rrvle I
jsp-------------1 Seovto :--; EfB SesSionBeap GrnP
Cv) (c) (a.toei.; kli,i:;),,s,.1
"ana Ja'{a cld55 thar g;4loJts [€{3i5rcoc LLBic &ot', Orl^cr tqic5 c4 ttr-

app)icoftcrl., tD rmke lbe Pefsisrcnce bgia a6 the Pteniole k€i4fr, n^dlfr


i''
Ofd fcusc$le lo8ics t5 Corred DAo(nrrc.Access O$af )
mMet '

st'*sArp -r
Eresersu[-Bfoncamp DAoctos6(Jruc) -------------*Ot
LV) tc)
-_--> (6rs;sttnce logic)
[a'togi.1
----) . nrodel
-@ ng4) I

5I&IISAPP -------------) E B*.,FG;-"


6*',0 D^o [uE "ae"l',u
tv) cc) [o't41r.1 --=-- (k'ait.toce 19t1.;
- --- - -aDoslto
l-0o"**o gPYrqg JEE A0P DAo C+tibctrpfc) - --

lv; tc) (itIs,'sKnce lqlic)

@
- [b'toglt;
# pnofHibcYrerc) rDosltr]
rnrdbJs-,vic€S Cornp
'vap?p Ig,locJic) -_---> CRrsishcnce loBJc)
Cv)Cc) *fflel t
- (,r) gr NP + 3pr;og oRrl J m'o &4 "---- -4 DR s/to
-ipt'og wcbtlvc ---=) S1r".{
($ tog'c ( Pr'rsi sKnce l€lc )
cv) ct) 7

fte Po6s;ble Techno lcgies o( vieo kqc'(


jsp
ve\oci lg
frce rcrtf l'€{

Lcrnguoge trt'rt(t*'r'noo)
f;|ltt1- xro\ 8ig\6bcE

Jasgcr ("&frrts /i e.ft'ts


(DsSble

Savref ,

SerrPrHt rer

PoSiUte Fc^rqecrrxus og' vieooLceter, conr@ftar laXerr ;-

6nurs
J5F
\,.tclruotX
Cocoon
Tc,+shq
Netf4vC ard erc' - -'

P:*rru r.onoloat.* tt t-

EJBfusstorr Qec.n, Ncb?wiceg., JaJJaclasS ) Javr6ean ctar

Rt\r, HWlo\ofer fspriqs opn DisrrlxrreJ lel}'nol%g ) , CteBn,

efdng UEE and qe.--


l\]ssrble \-locto LaSor +a de6ne
ODBC,

hltrYmlt'
OUB
io c (rnsr*ffc( Ae)
"ouo
#*"ryg*" comPoo<rr6
-loPtio\'
C'DO
igor-le
Stnog 9Ao
Oer\ 6nd etc"'
Qnng

,rJ
tf
HiSb Lernl Praf$ Arab) trctur e Srltrrs - 9flno g - i-ii brr ocl€ Tnrt€retrlc,r)

t
oinnt, s5P, joaer rcp"rrs.,. ,,

Sovtd( Ailan&rrra )

5f),tn6 JEE 4p [q"nt e*,,r A?p,:

PAsish.n(e L{ic ta+rf L}1oddDr,€r,

iliternorc / ep'ing oert

oracle pg sl,

rco6) ore
-> Att loreor Technologi€.s oF iova aod *eir larcst versicrob (rrefc,vd a6t.lt
Sapo*ng trJo/ f"rr rrnctel pvogrqmlng To rrrake *e beohrbQ'e-g qft{ a4licollon5
ai lighr-c*i'gk.

POJo cio55 :-iFA is acln3 06 fesocrrce of ce{ftQ}n Tahnolog5


jc..,rc,. ct6rsS tbo*
clc'sl#b'
is not enEndiosi irnP'lerrrrLl-;n3 Prc&P;ned
ba"d 6irPl-cDare aPP)iccuflcrrr
clos6
B la cc'ucd PoSo
'
APr- rbcn it
Jrrrcr&ces o? IW tec-hnolo69 spec;$ic
[email protected]*
Gs Ksc(trce of srnng Gpplicalorr
L3- ig iala c\dsb i5 taFen

$e p'e&Rned clas6/ \nwWs oP ft""3fut


errcoJrngr irnPlernenhnS
i5 cCIled Poro cto35 '
|ben ib

FldrnPks:-

o Public C )as$ T?si " Test " i5 PaID c lcrss .

{-

3
fr] Er.b\ic tlcrso Tesr atods kroo '0.*u iu nor ex rcnd;T Sro- ortB.r clc'rt -
t_ ^t
Iest is p656 116t5
a------r

' 83.:- Publit cl&s$ Test erKnd6 Flt*?Sctr


lef

7,

]* "'tesi' is a+i degr'dent '


* orr" rcr PoJo dctsb ' Scrvler

G) fru.b'lit clcrss Tesl erttods l>mo


0
1.
=
1
Gprcoic$.nttt
*u. clc155 Demo ext(rdg
e
1
:
-Y

,'Test,, *
Dern o " ore not Pio CUsteS

Pujotl c clctS6 Test implerrer,rs \Java'r rDi ' Qerootf I

5
L

.)
e

"rest" i5 rror PeYo. bcz Rernotc is a tclnologS

@ S Flbtrc clas6 Jest irnpLrocnrs jnva's4'l 'Dtue'r

{_

3 mr clas6 '
' so"Test" io P0J0
"Joua.r.yr.r--*o' [r; is p..,tt oljdut ta-brn1og1

@ Rr-bl'fc clost -iLst iropleroe'ts .tnna'lot'6'Rtnoabte


t_ 2
=
3
patrt c(
" jo',o,\on5. Qlnrnble' i,5 fie Coreisva ' so,Tfsf i6 PoJb

-IbreaA
@ pu,blic cldss Tes+ e.r6Dd6
u=
t
\l
ilTest'i5 java'laq'l6t"oa is pcrr 4 bs;'java opls
patb class bc-z
@ pubrtc r]ass Test
J
L
V..btit uoid ror()
t_I uses sFioS APt
3
7
r{
J

Test i5 ?oJo clctSs.


Sphog &rpp.rr6 PoJo / poJI rrrrlcl prDgrarnln d,,e to rtus 6pnnXrr?P,,5 are lighrffl#"
\__
Pol:-
l.lhq &dq innrft{ce i5 fab<n as tl,e reaatre of Cerain kdtnoloS, h.sed oppttceft6,

.,..., 61pe"'tlc- Aflrrs tA.^ ir l5 cattecl @rr

ElcroolPq ' -

0 innn fo< c '[est

1.
cms
/i rtrrhod dectc'rarl
\---l
1sg1,, i$ poJJ

- @ in€t6ag Lrt e^Erd6 Dern o

t "Dcrr,o'' is usar -dcgncd intcrPare ool- cxtc6din3 Orber iorer $area


.._, 1 &r "Tesr', i5 poJr
*
(O ,nr..* T$r 0xrnd6 javo.rmi. RermK
i
t'T,st'is cnl- o- poJr. (kca,rrc joro.r-i.Qe.rrt ;J RHLafl inFr&trr
d"l'::

- O hwft,re 1.5; qnirnd 5 iava. io, &"Ufiz.tte


''.J

Tegt is p1-1 " ()ecalrc .rc.lc' io , Serrali?oJole lnrcrRrce is


1 rrc! mur,lo

t&.rr c{
" LoJi'
&va+prb )
7 Feorures op 6fx,og:- 'v.

0 fo** pom/fiorr 6m&l Programing.


tt *tT^
rbe spr'ng o?Pllcdfi6r'5
-
(q Sgrrng io righi -&reiqhj &gt oare . (nmt oP
:"oo'u"** sotvtx)
-1t*1 i
it€ heoq t,.n6ruf & nrbservet/
to coitb *nven
Srnn$ giws hrir*-in ,niddte.'&ye 6e.vice5 and Gtto*s
coorv
@ .J
Seuvicei '
foarngecl ond "lhird Parr"t &+prla roildlooare
o{Pb t;64teeoaw Serv ic€s ' J
it 3i-n$ gil/e,s reo vrerhodolq5:s calred a'ot I nol""rl to
'.J

d+etoprrrnr.

@ provrdes enviroqwai io prft,w UnitTetril on A?PlidxHoos'


c"ued uoit TeEHnS-
rsEi- ;^grot-.ra Fshog on his otn Ppooe o? code ts

cD)rb orbc,/ \./


p\t,flto6 *o rrore spnng c4pricorlcrra integro**te
@ provicleb hrltr-in
&vcr trchnolqX bose.d a+Pns '
like Staodabne' koo-hre' rlnee-r're,
0 Arr,*ou to derelog olr binds of c+dicofrots '\-/

n-Ha\ dsniatrtcd cqgucahoos/ tdlo


opptidrrtoni anf, Oe-' '

(9 A[t0co6 to daxfog off tdodc o( logic5 Ii {(t- pftserU-c.Ho4 lqle, f3osinerslogicrc,.q#.


151., __.,
ft3r5'lstcn6a lqP and e,e<...

O $lwS \t5 o(r)n ox-bFcrmetdort Spnng hfbHvc to drrrrlog t"Wca axcFur€okry€.

bcsed uxb oppns.

@ pvta.s o}Svacrtonl-crgex cln Othex kameoorlac liEe .l4ternott,0IB and €rc-^


copporK Jarn/
@ M trnxgrc*tort ctritb 6Zep fe{hnd%ies ond &r:c.hc.ul Fanrrewortr.

o p.asg o lta.rq aftl use.


llodure -I
5p,;q Core Y16dctl8

-> Rr orte" rDodrl)e o9 sprng.


Base fito.late
"B*l-'Fotr("3'''
->. G;veb a ri$hj-*i3Lr g*rogGnl.ainex caued &lnflow
'---5 using this rrndule ,,e can deuelop or,)g €faod ctlrne apPlic&H(ms'

--) toe Con qse lhi6 modcrle to eodoaiand 5orrr,6&oo tiFeqcle rmroSe\rteaf c'\nd
depnfenq Jf\pLhlon.

The Csrrcrrarc and


Ja1q cla,96 thor is Crnggured io Springosnftgure.Hcrn Bre ;5Yoc5b

annotu$oos io Calted SfingBec.o. os eiro's


JavalSecrq cdn aci furlng&an br}
SpttqBeen n(et nof to be a JavaBec,n.

qpJ ti$Mrcel3l'r a'nta;nevS


--, sp,rng 8i!es 1(oo boltt-]o cctntrdner
(! Beor,Focr.rrg (anrerne,i (p*. ol (oe rrroclule )
@ AppricaH-Ccn*lt Cmlainc{ ( prr oe qnrrrg Jrr[Cc'*er{- F'oc[u]e)
75q c':bote
i;k
-Yc'Ye coce oP
ccoo
CoDtcdner i3
-F[?qo.ru- c.r 5o?t.nr€ A?n Co) Jlc.. closs rlot L B;'*
d€ed.)
ro

Ctcle oF gtucn TUOLTTCe .

Ltite 6sb

3[r;rgconk1ioet6areguenpctft'rrn$trng&onLigecXtterrrarriScrrrnto"dtoFnFo-

Drrrndeocg rnjartco 6or forogeeon .

Cq.pcp QLi javctclol:


-t T0 acrivate &aoFacf.xg Cur-rt<dcfy lo GrI o4pliccrhorrS crcrR

ttot implernenx org,rrrcrgftar*ocro' *nt: ft:clz,u' fu"AAG)


C6fl knf'e,/
*prrse nt9 BeaoFalrut5
-,,,->
&.1*",1, =*- &orBeroftrr-g (''ao\j p;osng lo splog cg f'rc>");
CIAS5 ir,r?ler[.f,nli
% &arrFaaf.rg

-,
To cctirictK ,h.pqnrwOr,r.xr ccrnt3ioc,{ M6 C",eote ohj tn j^o clcls rhJ- irnpktoux
in o&1
0rg' SpringtrrmeoJoyt . CcoKxt. Apptrcarr.,oGrrur (r)
a-
EY- Fr. &rr..X- 1,$priciax*Qltre* r('<sp,'q,fu B,iy
Apnrr(d$co Ccrrt€"i Ctx = nelo
folre""X., -t-
I
+
ilppt tcanonGnfe" t
Co.toi.rrr
Apdicattco C6dri+ inttr €c(c€
bi C'rea-ring OQreom P"l
Lrle CC,o't &!!lcf CotLl6-rDe'{ , JsPCc'n}c'rne/(
i\cDv@K
conlz')ner6 P{2 ur-oeed Fo 6l-o'rt-
so, -Tirt ore bectuti tltigM
&train ctCrCSeS.

+o ouiuo-fe lbese cirutzti nerrS '


heorX ue,6hf &lvexs

hlr tPdn$ CcrrLfcnrKrS cL{e ti$hf -urighf rcvucr.rturrrrS

4 BeconFacro'i ccrnldne^/'
fupffA.rtfooG*uk Cbnfcarf'r i5 errlpncernenr

Cooidn6 tt-r -B'o-'n3 $est6@'


31rr'q Cotellodul. 4?plrcal'to',',
,) Sprrng lnltrRrce (Ja1a-r*rcoft'ce )
+) Sprn3f,ian closs (joua"r",s )
3) sp,rng cfu f,te Cx-r P;tc)
nln roethod)
4) cli.nj' APPlicaHo" ( .io'ra cbsa cois
T

Spring lr*ofo1e

-) ib can be a POJI
--4 ibi6 oPHdnol \t&LtxG 'B't rtcorrrnJed lo
taFe
_J canrcdn6 dectc'ranoo oP B'r'uboctt/u*;li$ method's -
!r\+"meet-
^
-) ocrb os
cr Gmmon <rnder,stund,ng doarrn * kJu€(tl Ll\cnt d}[email protected]"
"'/
it tiFc 6!.,sg ho.oalxr h*,ng dedotcr-Han a? topics[tr""r'' t^tt a.s a5fferr€rzr
-) .J
du.,-re"rr Ulco facufft o9d Sf<,,&'r*). _.,

Spnog Bean

A &,f)("r(cr}( &vcr clas6' Cooftguwd in 5T'116.)9 Cooeguro$on €-te

Con be a JtoBean ..r

-.-, irnplerneru6 Spring I"*etftue OnJ prov;deS iaplerrrnfrdoo to Qp,lng inrcrfoa .\-,,

mbocts.
meftods, cmtruckod
s"{f-ttq t+*&*f &j".-n*s '
Ccnk(dnS
-"
--) CdnrcdnS artt$ rrcrtods
---) CdDlainb lipeL5cle roethocl5 '

"') Jb Cc.n Le poJocta55 (o) nan-{tSb clas5' '

s-tppricd ccrnc"^o'f,c
-t rb can be prrcb$ned / c''sc"&Pmed/*'tno'-oj trH
----) Conta;n6 &rsrqe5 rqerhods ioptemcr,raicrn hot'ing B'r*rnets Logic'

l'{Qe:- Rtt fftt' ei$en h


Sprrog l&ans rrr-or be (onF;guved in ffrnngCon€rgtrmlron
Xm) enrri€$ Co.{ )

- sRciPging *re
drrors op resurvce thmugb xm) enhAeN tr'O Annot<li.orrs
to rrPlxs undevlcqltng conknnc'
Cr) serw Ccl)Fm'rocrrt-: lecqlniz;ng tho.r rr:arvct
ls c&t-ted resrrftc coo prgt roficm
t+lozlwts
.1,"q,*fu"'"*_15 :-
-xrn) coo be 1a\4D a5 6Pfio9 ch ftle'
-t oog 4ft1gt.prog7
dPPS
'''> 6l mor€ 5grrog cq P-'res in cld SPYiol
t/rle con one
o-+ SErnng kons rnet Ae cfu in Sporng cfi tsre '
.- + loc reLrred irErua$(rns
&nlc.ro5 ft{xctogltilecrcrn/

.- -+ Cooiainb lige odcle rf,etbods Con$6trratlcm

.-. --+ Chn be de^xfPea ei*rr based on OrOf s.rcr.n- rule6 ,

Cli(nj APPi;cc*ic/o : -

A0;vafe Spnn1 Crm.tcnrK{ ug spedfu;og Spiog cfu Prre


-.e
.-- ----z Get Srrq Bcao closs Olj %- fu"g O"tarrn
'---'-"+ cjaJ) &rsioess -r)uhod,s C7q Sprtng&on class obi€4'

":-
' -' 0>''.,g Sq&ff5 brgp.e o? Dpendeng
rqieodcrn

t) gttel lnierncrrr
(b1 uai,rg etXxx (-) o? @n &o.o closs)
?) Gnsn""o.n }qiectton
(b .rsT pcrawreldzed Corrstuator.g oP sp.lofl &ao closs )

3) Inrcrft^ce JojecHcm
(b5 impternenllog Speqal inrcrftrce,s oq 6f'rloSBean class )

*S5ertclrelecHc,n: outoroorico\
and dSna-allfl
.v-.f_.)."r*,o.ls
t-) t'
aP Sfniog cc'u'taloer csoS 3rrXrx
"
tocosi6nvad.u.estort,.i,ornnt,co(rronrbr'vaniabtcs)oP6r'rnSkanc[!ss.rkn

iblb caJo€d &rl(t irr.rdot .J


Pxample ,5ternrio
'J
&"n )
ll To,&o.,' iova (Sr"rng
-lest&an
lrrdic ctasg
s{.
/10c,n ProF{trl
5ro'ng .165;
[-) tuPFnftiT &rtcr r{eulort
ll v,t,ire 5$Xxx
pabli6 void cetilq (8t""n$ -uS )
I
tluS.rosg =rnsl )

b
lloloir. 0 mqbods
p-ibllc y614 bnnrt )
{.
" "'' lluse rorg herl
9

3
Wy,rru
coo6garc+lao 4^ ll.m^ Irlicdon'
Deroo " xm I [sr.ng cPg frre ) @.rg
<bean6 z
zbedn ia="lb closs=Tesi8eon'>
I
L" ia f
o6rt,-. --IEE6.r,,.s nU $sc,6 Coo [i3kr afi o')
4PmI,c.q '
()rt\
narrr =''toff' Vrrlue = hello" /^>
--T--- f "O'
4lkan>" f-s.*p*n*g L> Vattre to '/"
I

, ni...ra
1) beans>

spr;og 4a hte tbe Spaog


Nhen 5f,.rg Cr'nr"rrt ;a ctuivcrrcd bX giviog rhis
" os fhe O\Pcr l.nrre and
Gnr.rtrrr Crealq5 Te,g$on clc65 o5;.+ h"'rq !
uh"llo" to rhe koD PgfS rnfl
Cou.6 tb'aerllsg ["he llo"; fu )niccr rhe vcr-{ue

fhto,r3h SefftrfnJ€crtcm.

tifeqpte oP sp'in6Beon inrber PYDCeJS


5pr;rgcaota;rcr nnc(nages rhe ohole fie rnrrnco^rt
on 5g'rogBcctn cla85 Wffitnnb
iu Perft,rms d.a."d*i rnjeulcrcr

if Ctafe6 Spring{fuan clcrsb


c'hie*'
fo
S?edoi dqje4rs
Coo{cunerr ir"JecfiDg
projeuS Lo( rDcFe Sgong
anA ere-'-
otzrt, RmtBusirgs r.rbi
Oql -,
f,dbcbtmt
li\ze TdbcG'n*xoo'l

@ Ccrosfrucrr-ry fqleOcrrr '"- tr; cworc SP;n6Bero


c lors

d Colrlshf&o}(If6
uq'b Perarncrevize
'it is Calted Gtnstr&otrd r
*t)
\rl1ocs io
8€on t"06"*3t
o$a ond tb Qs6i8n

iqF*lcm' cJcrsg obFet C<Atton


cr,Pte'"t
SYn€Ban oQJe+
plcae iTr'rrcd''al€lg c-laJs
&rcr iq)eetro raveo 6P$ngBarn
dzltt1 coifi
in1ertltot taYe6 p'\c,a
nl'rr^e rrg Canghzrokt{

(t'cnhon.

Example Ste my i0 i-

il t^v*r'.5avct [SP'rog Ben )

Frblic cldl5 TestBeon


5
'/f$ean?'on'3
Srrrng rrs$;
g1rputttng Ccmstrackt iqectic'nrt
Ccmsrruc,rct{
fl ltraretcr'zed
R.ouc TestB€an C$t"U '6g)
i ft;5'rosg = nnr$ )

3 \..'/

/[u'r";n B'nrerbods '-)


Fbitc Void brDrt) ,.-J

t "" tos3 irte \--.,


^^ - ^ uJe
\J

3 \J

3lt'ro's ,_)

Ptrno"xw-,\ (sVt'og cP6


fttc ) ir_,

zbmrs \,
tb" C las6 =.
Teslb€do >
zb€oo id =' \J
(
L/:ylrtj-tvclr - t-'
- lg'o Prooa anrg l''r otre ti
rne rbe.
4lbeooz
Lts€s oDe Pc($a'n 66o5irgtct-z^/ to av€(d€ t
-',
Spno$ tbn{-arrEr{ l,i
t;:: lo crssi6o votrre bdr to rnsg
Spnng Beao clr*s ohjech anJ U

ProP'ng '

)5 activc*ed Q gru;ng tbe. abow &nno'xrnl @€c%RLe'"..


!,.Jkn Srnogcoolcurrt

sptng6ntcrnar ci-€cLr-es
-I?srBa.n .t"rr'w*bao)og r.rroe*15'bg <rslo3 :
rbe
L-pccccrrn &ns\aitlrt (Terra.o" tb=neul ?stBeao ("nt");
) \--,

fo &on;rrrp"*iur lik-e rnroe - k)loe CIir"s \,


$. as,grrlog volrles drreurlx
beft{r€a Braoprop*rer aod irs d.qrm&'nr \mJ'ues ' }iss{gn}ng '..--,
terghr car"pliog
b5 speorfolng rhe vo-lues in scnS co"fttuxonl *:-r;
to fton
\hl-rca propr,rtes

dry-Jeoa3'lq;errron shoors ]oosec"q"5 "t'


BtanVDf^' -'
%, oah*,tng
aad \15 dcalr-dellt Vcr{.ue5.
Narniog Convenh'crrls

X-------.> 6fxiD0 inlcrftrce Dqroe

X0eao-------+ SpogBeoo c?oss nafl'f

XCfu.xmr ----; SProg cPg Bte nc.tte

XCIieni- C,tu* A* nt-"


--->
E0.' -le5) af-% intc'ePcoce rrrme
-
TestBec.n clctss rrlYne
--> furgBean
Ter{Pg.xrol -'-------> Sp"ng cfu B'te cr'*e
TtotCtienr C tic",t At+
rrrrne
ku
-+ clerrrrosl^rcr-K &tt'6lruc&xc'o
oF Sg''ogCo'e rrnclule fo
16t Exc,rnple A{plita.6on

trs\nt $ecq^lttctoq CcnlcrineT '

Uetou:
Srcp-r:- [tswlop fte €crr-rce cde
as shc(Dn

E\APP5

/lmr")o ..tava (f'Dlr) (svt;osrruruft'te )

Public inwkce Demo


J
t c'n
llg tarrto' ftclarak/ / P. . - .,o-.)',
(br'lo9'
pcrtrlic Sr'iog g€ff.arwi5bl1s3
o
t

ilD*o&,,.,'java ( Pofo
cioss ) (srx;ogBean )

iro'rfrnf ia.ra. uHl ' )ti

Fb\ic clcrgs DmoBeon iroplerrrn'ts Dcm0


J
' i/B*., Potrrr,Q b hold idcc^tqt valrte
p'rvofe Sng Bg;
llgrt(r nffbod safpr'n3 Se*c.r iqecrLn
Pbuc vold 6ern5g (3rdog *t) ?
b
u itl s , ro-,sq -- ffiD l
t
?
P
/i ;.opl.rocot 8'mu-bods
3r'r.,3 ge,nerorcN,sr'[lsg
(Sr''n$ *-t )
frr.blic
t
fJ gtt curr.or date aod hme
CokndQr' g+Tosrraiocet)l
Gr,rdql 6l=
fl ger curren r l-*t + rte l"U
int tr- cr'8d(CaleDdql' H0up - or- Dn)) l
ligrtr..re Nisb rosg

1p([e= r>) t'--,


Ytl(lrn rn€+ G*l ,*r' 14 ;" +,x^me 't

\)
€lse if [he=lc)
w}cdn rr€+ --> Cnmd APr<^ooon: lnarneJ

else iP (hr= rc)


refclln mtt "--, Gd f,venlng et'+name ;
€lse v
l" rname)
ftfL.YD -sgt --tGood NiJht
3 //',*,*"a
Jl.r^,

., 0.,.,., o,' I -- :-:':i


^ll'
y,
-; *':, ;:i:,*T ;:*:. :i ll,''?,.'" -
5 -hrme>\d isr\rtlourres\
v
r,,t R o"r, z,srrir€
coll€* rtri co,.-i
>
2lL{di.>6
qnog-5tons*fl'o ?ik \'
cla56--" ftro'o8eao'z
@ DiD
z&at't id:"db" -> 'lz
ZOrrA'rr ry w.mc -*.m53" Vott'e ='huttO g \-,,

-> db:netrr
DrooBrsn );
i
Abecrn Z DrrroB€qr,(
db ' seli'153 1"berto"); 'J
/l&aoa>
'.j
l/ Deto'o{i icnr' jttuc'

imtrrrt 619 , 5r:.o6 ftomf,{D6rk


(Ltrq U*nfa'r'*1-: l-tr)
' hrc'r's'
I ctl
iropr'n tgl 4",""g ft.,o*--u'bec'n5 ' A'"i"l' x-r' XtrE*F"d1;
irrfrryt
K are " io ' Fre6pr"-'Qtaou"c ' ll t'.)
"rX,t*n*"mecrrr
Prrblic cl6s6
DIDoClitru

f ,,,16i6 arcss) -----------+(}


Pttbl)c S\zLltc rrrun lsrtrtglI
{

I f"r" Spr;og C<rnGiscrrci-l'lcrl Pre

l
' n-r" )
-- Fr"Sr$.-Pest"te f"Dtt"Cfu
F;teSg.t -R.ao*.. res neo,

/l Aeuvate &o.,Fc,uz"g &f)EJne-'v

XrrBaqFo.ct-"rq &*rg n*' KnlBcdnFc.c-ru'B [rc);


=
llsr+ Sp,i.,gBec,n cicrss 651 Prorn $6rrioclCcrnz"oe'l

OU*t oUr = ftrr,,.rU. ger$eoo C"db I ; @


-
/lbUpe cc,rring

De."o boU3 . lDerrn) oq;; --'qq


fl c.u Brne't,od

Srn"g {#$ =
"""'t'r'$' re'*1fr;
oo oi-"-t t"tus.,;

I
s

srcp-t1} rrod S'ccorq ? jo"t ?ires ro CLAT6PATH


tbe
26priog-horne>\ die
r\ tpYiag'ieY ( rtu"jot Bre)

4€pri"u-lbme> \ tiu\ icrtar*s- corrrwot\ *a1. truU;l|esxl'nr &r

t+ s|)ring,jc,{

6Kp-s:r CoroPile ol\ the jcvaf(socrrcis 6n{ g^ecu.rc the ct;cnt a-pplico*lra
> jqvo.c X. javo
> jaVa Drrno(li{n/
eotoeS oF 6pt)D€ Ccmet€urafic'n
EeooFa$otg cor-rr'dncl
i5 cuivarcd tbe
Nhrn
3M trrnr Porser
Gre co,rt be verr Pued 4 usi"g
L S;tPte APr P..,r xr^t

Ohjeu o6 = Focrorx ' gerBeon (" 4 u") :


n boscd cn rtre giwn &on id
EcctnFacroq Cor,rc.iner lo lmd Dcr"oBean " cl c's6

,db" [6ing C$r,CiguraHoos done in SPrrngCFg B'rc

rrdc€6 Beonkcnq Gnh"r(ll to c'eott, '' ftrto8eoo'' c)crss ohjar ulnS


@
.
@-Param Consl(odr(^
zpmperrgz ta3 rht BeaoFoJt\
usjng
@ Since "tag'' PtDrrntt i5 Corr€"gored
ohje-of
un D-oBeoo clas6
Gorcdff-r Ccl.t-r.s se11153 ['hetto" ) rrrrhod

per€zm 6e*clIoie0H c'n

@P"r.5'ge8ec'"'l'au');rne$odreturnoftrnof&c'ri"ctc,.ss6qjatondtoe
afer<f.nrngtl-o'tObJe*usin$'lctvct"rcm3'Ol'it'iclcrrsree"obi"
in pred;fined Clcrss"&.e'"'
!gl_E:- ger&c,nt) merhocl is rhe prrtde*ioed rnrrhoct

if oe uraot to (rt'.'ar") P.or Ce'rtctheY cue erre rhis


$eh the Objerr
{3eanFrct "y
ferBean[) rrr-rhocl, IP toe oru B'roefiod genelcd€l^iishllsg
( ) itie not [x,.lf oP he
d
\
dai5 oqle$,.,, tbt
irnpl;-ent eloss of sPrioqJ"*trR'ce ' so
pnde hne
ff;**l
:}.1,'"
Ldr rrusl tu{,eccrsl tl-,"-'*befu bobrl =
lftrno) o$ i

reRrs irs sr.l-bctass o4iet drcn cde tqn't


-> hjbtrl 9-r?oc\c65 rcft.,trte Vcr-riab\e

cq)\ direct r*rbocts oF gr-bcla-S( usil ftnt rtftrroce Van'iabl€ ftrrcLk4


k^ppenlq$ \oecc.sh r.g.n.n,a Vcqiable Q-rrhtl coirh g,$cloo*
*uf Sno-t. o!"
tr:ith inrcl?tce irnptcyntn&d b3 SaSclcr\6 h*,ng rtrct{- Direarnerbocl dede,voucn)

Demo bo$ = (krn6) pq.f iS plcrced yo SaHSftJ ato\d 6la'bfrrrnl' iD ctrv

frttng aPPng.
oaj€tts
De&ndeoaJTniecttc'n cmll crm those SpntEBton
$pvioq Grta;nc1 parorrng
bJ rhe Sfrnng 0emJalne6 ib$elg '
*bn* ove clffoJd on Sp"n90"""
'Ilzt mraos 3p'rngConrruot'" co" t
'n Depo^'de"9Iruecrlc'n
pa&T

monucrl'l$'
doss oqpas ttnr art c,t..led bu P*St'-'*,d
he'Ael Staterrerrs la SpdngCfu [tte
Dm reratcd 61 c}ema rdotd
ke.Ptog
oork ie 6pHonol
in wb'xml '
is mand;t6'! ' Bur *rtl
t()
s'1aio eoAs toiib rnrrn tcmd€ Socs
-1i,nog cr{,nlicci}1o0 Pf':.o Sfrrxt toitb

156 i"otu'l'r{ f
I ="*:ffi"-:-:':: ;il r\ast re''""r"ri3arftprenr*'

Qn-X
@e ib clsesn't clcc']cs
-> Nhto BeooetrcT y &rntc'incr is acJivoled
closs onlerra anJ
gp.,gBeot,
Sring Barn clo'rs o$a*a, Tt LatdrcS

Gmplew dq-d"*j iqf-tfic'T\ odX cnhr'n $W'"1f)muhod is cot0eJ '


a ExamPle Oppiicotlon OO C/Jnt;l.6 uhzrl iojecfircrr:..-
16lozl>or3

&mO..fuVCr Saroe 0.6 prev icrr6 ol(.)pD '

&rncBeon java->
'
&tw OA WL\riaQB oppn. Bll" Odd rhe forra.:itr$ 7-- Patar]';, @r6lrccfzr
->
Pq.blic hto&o"., ( St.S -uS )
{
tbis. rns6 : ro53 l
"
- Sgsrc. . ord'
t'
l-riorlD ( ft 1-llaram 1o'l5ratu<n ))
"^&o.,

DernoCfu. xcor

ZDftiYPE
LLxo.oS >
zbeao db'' 61d..s ="ffi*n'' 2
id --"

ZCcrrnr-ru clc'i -(Y$ value :'heilo" / >


zlfun>
zllv<ar,s>

as c?Pr''
DemoCticr,t.j,av a ------) €arrE, Previdt''$
tags croder zbec'n> Ffl
o.n)g llxwYn]>
t^lbne ccrnhgrrtng fririo6Bcaq fo Plc'ce

tbeq6p,rlogCoola;neiuse6O-PaYarncon6tr(rol-(dP".6PY;ngB€&nct't:'Sin'lar'fiat
&t €ettc'rjnieofion'oo kan prro;r"tt<:
ond olso uie.g SefietXxxk) or-*'oas
crnlS Lcansftuld<lt - a{8> k'Xo und<"1
lalb,te 6*6ru1ng Slt.gBean iP got' plorce
--/
Ccmsnucrar & tu
/can> tag fteo Sq,ogbtt&lwt u$e5 lx.{ame}crized
J-41e$ton crrt
Geok SpngBeao clc{ss ohfrr 4 to Frfi:rrrn Gnsrrucr<rl

Eeon Prorx,r +ies.


are enabled on
ft- Nfr^j l-r,{xnr6 if borh eerrc1lnieulorr., &nosFrucf<nlqjecno-os

&iroe Bcan prupc-riies cf, spviogBrao rlassa.


-' bY ustng Pc'rarrr-Fcrized
4: Srrnn$Gotainct &rat<s $r,rn6Bcatr class o{i€ct

-. kan po1,ctrg. Eecrrrrse 6ertc;t nrerhoc.l exear,tcs aPttr Gnsffaal$o*


rht
So,"Vof..eS injemt q Consmrcfcrr1'$ec,tloo tDn\ be ggctriddeo
ber-arle 4
\
fetkr lrjlartorr
TO CcDP,€11re de{bndenf- Value6 tb Siraple l-,".rn prp6n,rHes (r;re Sr-og, si'nple &fa epe 6 >
049 <valoe > or value cLthlbc(t( in Sping cfo Bre.

clow
--+ To omBfaye Orr Spriog Beao class Ohj a6 d€rlrdcrrt \*:lllre O*:r't Synt$Beao
pofr*ies ctsc. 4a-B-z 0'r YeP afr;**e,

;P aoe SPdog &an ctcss ;s lord,ng qncltr{ $:rrrgBean ctcc.s dei tbcn ft aued
Ll
Bcr.nCollabrort on.

Erctrrf,le Applical'loo on Zrcf 7 */.e O-lfri&.t€ (BeaoGtlat*","*ttn)

p :\ Apns
!---------+ SPrlog
|+ $sa .)
F-------" Demo"iavc..
DerooB@r>'ia\'a
legBeao " iavc
DernocPg 'rrol
DmoCiicr* 'iavc^,
/ormo ..nva (ttat)
Poblic inrcrR ee &roO
{
lxrdic $rr"g 5agHeiloC);/e,,sioe.oflerb,ra
$

l/DemoBec,o' java ( R)JO ctrss )


irol-rm &va'attit' x;
rrrS Derno
ftrblic clcrss Dcr"o&ctn
iroplaroe

{
//bon Ptrt,r*o
,8w6 wo"7,
u 5erdeA ntd 11cj5
't inb age', lls;mprepropnj
<-TestBero tb;
lUpc profl,r.,es fu bold ohjerh
Prfolegr(d cl05! t!-- DaJ( d;J Jr.fu.,.rr.,
//tntnin s.rXrxt-) rrr-r$o.ls s{prrio5 g*krrlieu w't

Ftbllc Vold xrA6efinr crge)


{ ,J
tt'ris. age =@tgei
S'o' e ('' Derqof&an: e#ge(-) r'gtna "),
,
fub]i. void rtTb(?v&oo rb)
c
1.
t?r.tS. Lb= tb i
3'o'P (" DcrrpBeao; sgTbCJ oxt+A' );
3
l2rlltc void serD ( Drc d
)
{
ilris-d = d ;
5.0.p t" proogean: 6rrD(, 'l.th'a"):
3

f iroPterrrnt Busirrrsllerboc\
Frbtl c Sr,tng 6ag
llel o( ) t

{ '+age *"tb="+tb+
'l="+d i
*'n " Guodtl-nin6 " u " o3"'
&

bc cc',e2 o.^r
ro6vntg( )oritr
1o ( l src'tcr"erti'
5'O'P
obs., i5 lx.ssed tolt\ be cveoaAen
^rr,-'lt; closses
pSr'rngtl
r' mooro? rhe
thcf ohiect auror'nHecdrd'
Lelt'85t0 ;ara'rang'Qbi"o*c')
Jo dibptc* obre* durr'' toSr';ogc)
"*a';
ll tesbloio'3ava ( hrrrlerrlfkan ru ftndto')
-kttkoq
pc6\ic cla>6
t ll*on ttrDr,rru
Sx,ng mbS)
//nrrt Serttr rncrhoct ofl 6errcrs'tieo-rtcryr

wiL TwM,>pfu
Frbtic void cftNsg( 6"ng -E )
f .rrng
fhia = 116g I
g 'o p
( " T.rro.o.,, gsrllsg C-) .rr*oa" ) i
1
J

F,brc Srng tSrrogt)


{ n'1s6lgean
vetr,m . rnsg-- " 1ro5$ I
1
J
&
$-u lba'&'r la'r'lklt
NoIE'"- tlere Dcrobon, Te*Beo., clcrsseg aft Tavff) a6 CcI I aborcr.lzrr beata6

*
becerrse fbe tb" prrrpttg of DrnoBear, clas6 crn l^ptd ?st B e.,n {lccq.._-,

Ohpt.
<l__ h.oC%.*rrrt __) .r
z-&oir6>
t'dt" > J
;lwoto i6= clcob:"iova'cr-rit'Dore
J
Axqr'r.Y yg6€="5cor' Vatue="ll6J>,.TcrF.s ir 6cs lqootng
zgotttt\ rFrrrf, ='rrrrril-r" \41-oe:t' b" l>
' - i---, "Idvcgil as oioi\
J
L(W,fty harne=" dare ' \q.lue =">q" />
J
4beon> (flt't "'-'a
Z; &v aor evt

Lbcro 14='\br" clasS =.Iesi&-aDu > \-/


l{>wffi 1p6g="m6$' VcLl,{r€="betl6' I 7 \_/
zf bon >
\-,
Zbcab id=''db" clcr86 = DerruBon'> \-/
z1\opr{ry q1r.516 = cr$c' lr,lue ="d I ' .J
zryqxrrrb name ='tb' te|=" t.;'l
v
LWWU rqmtJ *4' rLr - ev lz lt-,-or ZpvoPhr3 nd'rr.€::.d">
yeP="dL"
'' ' lz \-/
u.aa'-_"dt
Ll&a', ,,^^l
4prnf't1 > --> v
A*ars> J
il *tCiitnfr.iavq () g -rd-e.l ;rts<odo|J
bd Gdl o-Hetto
Scfqe a5 13r 6ppllcafion -\)
-)
€uo"a,relnlrillsgt ) B'n"crhod ' \J
S*iot resu# = bobj. s0€ He tto (); \,

S'o't' ( "l?.ru,n 15:*4rrsutr )'


, \,
J"
\-/

\v,

\-/
rclo>lni13
Jdbc ConoeatDRrol ;-
Jd'bc a:nnedoa
&bC Gnned'tcrnPool is ft'crctrg tb.rf ccrnlaios SeroF readglg availcr-bte

&tflr6. Arrtcrnnec-et.l.o o\)et6 in fbe Crn rt'rga:icno {-oo I repwsen-16 Ccrt're d'" virS

('ri$ Same (hn&,se dlur.

fuiasa,rceoQjccrnprraerrrsJabco^r,ecrrorr@looc|rLiccank[r:edtooccels
Corrnec$ao (-<r*ol '
ildbc Cg.,nectlo'n OhjecfS &o-
**
J.tbc Corn(Lrion lnot Qn cno<'le

@ 6n\
CD
@ @"
@@7
Jauc &lrt r
Jdb. Dw3;x,urce o[l is rorhiog bc.r lt is thc o&t oF an&,rtgtog

tha.f irnpleroer,r6 Javcl\4f 'D"ro&r.tcc


(: )
fupued &va cld35

Org,spnnggaro*oork. jdbc,dafagr,r.e , Divol'lcrn:gevl),kft.t"r-o closs 3ive.5 fi-bc funfim

ta iauc crr,ne*rc'f, Pool . ThiS Clas6 c'r€o,l.a3 odo- conn<t1c'cr firo


I
dhj€ct r,indn'
ksed cm rhe iauc d.nrex demrto .grpplied to M,.n g'ofxtrt;u'

-lhe irnP^tct+ kan Ptol"xtdes are

') &iveo C lassNar^e


9-) 1r{l
6) trselname
+) W6sro6{ d

le $e5€ proqnhel. a^f- f;',.a up u\rh Nade tt'n &ivt'v da";ts r1leo idtx-ca;rrn:to"

@:l % atude cairl be c'r&t<A.

Example aFlicaH(D 16 iqi€q jdbc ftra5&rr ( ohje$ *rtt |xiffs to .ti4bc


Cqrrne4tcro Poo) to our futs8eo', Ecf,cndog .l'1ter*lcrn'
E:\ ApPd

f--------: 39rog
F-----r 6e6e
t---- OOoetatioo' iavq (Sp';ngf'ucr&ce )
DB0penanoo &ao java.
(6^= t.c.",
6fnogcfn.xtol [spring Gnfig&ra],on e'le )
D8Qrrotloo Clienf 'iav a f cUcnl- cppo )
// ugOpcrooo ' ;au a (lo,rr )
Jdwce
ft'btic DBo;x'"rro'n
(

ftm$,ro1(inr errpto );
pu^bric w
& Prot'. 3o% Rr.r,Na-e ( inr emenoy)
o
J

IWO?"ono"V""'ict'o
c,-rri'too l'ftrrfta*t"+
lrorrrrr Jaw'4r' &', -'
impon .laval . 81r' 1', -Yo*osn,""
a"u
\r
(/T'
ioplcrrr€rLr6 WQturau
plblic clcrsg Dfy7ptan,"o}edn
J
t
ilB*n prDou/ru

Drr"&ot" d6,

//i^lr' ,. saXrx C-) t,Lt+'DA to siwt *'R$inJe&lolt

ptbtic Votd *fiolDtl:&t*rc


e
L
,{ol 'to )

this, ds --ds;
7 )
d

//impleroenr B' r'rrhode


e-nno
ptrdia Sxng RrtlName firrt )
o
t
brc
6^"
t ohj fionn &'nnerrrc'n Fo
\,
//9.*-t".*- I

Car)neu6t) gon'- ds' gerGr>neuto\ ()i


fl ga e-e '',*e
etnmc &"0 cmp colrm,) r.,.t.
WoaSar.^r* b= cn'polt.tt6**t"tt1 l"*tttt erhpno=: )) J
P5,setJor( f,e-nno);
Qeutfu res= p5' ercorleCIcre"aC);
Dl-ring FErr€ = oul ll
iP( re.nex rC l)
i FErrr€ = ,S$u6f-nX(J)3
.t
.t

else
{ ,,Q
Yhof = tealtc ool *cr'nd i

fetr^tl n Ddrne;
lt
d

Ccrlch CE (cpH 04 e )
tc
Terurrl " DB prpCrr-i';
I

$ll,**a
pLLbtiL ior ft**to"3 (tor evnoo)
s
' t# sLt-' o&
"
t"g - 6n Pol
J Po- idt'Jc
' ilgu *"a ,nreL*6n ohi

Grrcricrn 1o' = ds'g'*Cot"rr*rnL)


"

llgr.t ev,e er't63

("Arnt &t e^p oheot


?"try.A3v,x*"* ps=cctt' ynpnt*"n' &on (,\
ZrrVnO=? )',
ps"s.rltn fl,eroeno) i
rhe
llern't* 1,trc"5

Re:urr5* T6= Ps. exetut<6"ouCD


lf p'ant1 tlx. At'fs
iP [re'nextcl)
&il-: rs .nrN*Lnt,
-t. 3 /lt"c
atcf,(Excpnon e)

I
{
a"ynrSz*lrare()i
I
d

tsfrqn tuL)
\ltw*,oa
la^

zt ftjcrtpE
/-Mo6> >
-Lhf.:cro id= "d-rdb " cl.r35 : org " 5P' iduc ' &tasQrtc ' Wufir'oo.saha"fuu..e

ronr.--"d;*Clr,saName' - *:Xffi,;##f:
@o1,J
Vr.){re--" 0r&dc"id,u '16*'flparul}trr'" bbo"''" connetnan

/+tryr'tn wne= Ltll '\


l,
\hlue= z 16zl o{l >
"6ac'.otc<le-t|i'r,'. @rturthos'y "

LWVltra (Drrf *^rf " lz


='urtnome' voJ.e="
tpbry/{ry rYrme= fxLs(/cM - \tJrrf =" Hgu'lz
zlkan z
"dob" = ffiOp'an ^g.onu @
a1a55 >

ref --" &&" I = u aweLrb Ddasok\rc€


&j tu wn
z{ftaruru narne = db '
(Y d+' |kt"Dn,pc'ry
tl&an>
z)Enns>

irnertt orfl's?' leans' F"to'l xrol ' *)


imffi O$' S?' &rt ' i0 ' t ) - --, firc53sttm P'st!\Q 'tQ''a
clasg DBognartoocticnr \,
l-l.6lic
.L fiaccpdorrs
P 6 v rn(Smng ..rgs[1)'f"'ttc,l"
e
t ftgurafl on &rc
llto* SPr"ng &n
o*u (" aPncfu'xrnr
'j
y15 = fl€u: f,reSgsml2s o
FteSgatcmRt*'..
Il hcnu"*c BU"ft"xtry CrnrcnnLa
,
X'rBeanFarrory &ttuy = fYJt X-rBeonFa.r*g (*r;;
llXe- Syt,,g&"" {t', Car.t(inc,l

= ( Dtfpi.n-arl ,^) Nocnr1 ' 6tfuon(.'dbg),' @


ll au e,wn"da
t'EtoP 9'.la13 \s
5grr.-'a,r'Pr;ntln (
+O4;t
S u'P ( EmPmr"e io" + bo[i' Pa"r''NTeJ
s l[
J llrrruq
J lluas I jav d
ll 2 "r,'tae
It > iavo Dgorrnr.utititv
,i'io Bres in cLA55PAfi ;-

log;og'jav @ omuct+'.nt
Q Sp,ing.jar @ Cb'rnrroo5-
TkJafo'rrc dia"t
lo

Seir5ccrra'ncr
\5 injeohog

ry:- io rhe a.bove o-44rt;rarlon


" d3t'
c.]-r srrAngLenn
c'\ats rq"""tJ
os
dld6' l- @tal.o be Nritrcn
x) <Pu-r'fg *rrre = d6' reP--"
zlorcttrt>
--"do" > z*? kr'n-''d-rdb /z
Lw,,4I. rnrne
alsobe *T" *
7" Fsscrrla VLL-*L u-'
assarc*d' \b1n-le='l'5o
"
l' Cqn
*) L7TDWLJ rEme ,l1No(rt'H7
-t
lixot zlvawe>
Lpwpng rxifne = passaod'> Ltlnlr.u>
bX udng
cr-'nrti'rr,{
ffre Ptx $c'nFocre"Y
'-> de can lrc.re Sp"oXcctn$gurallcTr
the -f;,'o.ng classes'
" oy''xt''1t )
Q.:o.ro.. f,\aso [o16' sP " cc"t
1

) Fre,9trsi..
--'. $e SpnSCanhg..ralon Bre P'*^'fi' ?oh{ t't:";,
fuei}ed
locares
o? Sgnng crg
rr'\
v'j+t
-'4 Ht,e uecen srtdfu Atsoli-rrc prh (ot; r€l&Hre

NoK:- ap ft'res %tdel o( oor Gy"nputci hget+*r \s coued 8t"96*en'


=:-
e) Chs Parh l?e,icurce Class .io ?}€ )
Crg re 6,,"t "
.

l-trc,rcs rle Sp,;ng cfu B,e ftorn tbe d;*utrg locarrons 'jt'r f;'re's
-; t0 cLAssP^rtt
Odd€d envicrnrruirud V"*c.,Ot< -
on lp;rgcfu
il['r,
{d%ce3 B.re ia rhe"ain
Ercrrple EreSgatcrnResar.rce to lcc6tre $te "_
' f ,\,+rpu\ta-e loAeo ond cpben c,ti<rrrcpp
is rto.z in E '- \ APPs\ sping \Sesa €ot.i<,v
l-
|,1-
atienl A0P'.-
} i
.

l-ilebJrrcm llesoa{e DelO trtefurr.-f?.so..rc e ('^ e z


t^96 = /aepsI te,,r I epr;n5cf_s . r mr .,
)I
[0. )
fi're$lsrcra Qocrrrce ves ={rj-o Freforrc-Q.ra..c" ( r'.t\"nns\t -e\+"ngcea ,^-r )7
L_,> db6d dr parl,
(,,t)

F,efor*Res*rce rea =r.,,, Fre5tr*"-Qcc.'" (' ..\\ :\\ k-r\\ spogcfo .rm r')i
.: r l_+rrcdi vE Fftl
6frta5 40f,5

tuft'*' t**
S\d-)
E^o"'pte on UdtiaDg cLAS6PAf H r€coc.fcc:-

6|(p-r:- keeP afx,og o4rPli@rlcrn tectd3


to rhe
g6rring ConR'6tuoHcn BLe
..nd add rbe locaHon
3kp-n:- ger fie )ocrrHdo or\ rJ
CLA55?ATH env'- ' t&niajc{ '
E1\
l-------.)lfp5
"f-------- 9v'rgcP6' xmt
voiriobtes------ tls"f sg'nt"
m$c0ro[x*cr--+ prolrr*ies odvorped fuh ------"'> env
'---------:oK
VarriaJde$ ----------) \ariqble ncdne: SLASSPATH '--')oY--1o* \-/
fnlre ; E-.\A003\Km? ; 4e,\i6tlo9vctfur€s>i "

8rC-X1:- use CLASSPArtl wsuaYae \n g\i&ur afPucr'ficrn

in cu.rLrApP

C\os5{LrhResoarcc reg = nerrl clogcfuihQescr,r," t'€P'tTgfa *,rrt" )i

Elocnp\e @ on C$55 pA"t l-l resurce :-


€tc0 -r:- kee.P 6pnng ca{puaxH(In tt-adt \J
add rhat-
8le-il'" prt1ar .ll ftt" \qffiturulng Spr\ngCo"rrtqurarlon ftte ^a .J

jcw hre to CtAssPArH'


k1\
l-.---) APP5
H KtnP
Sp'rogCft'x'o 1

E t\ Appb\ rcrop > .i.{rr cp -


bes+.._ror

rD9coropx.c., proprnflei ___--_+ advc.ocd eov \,anialte -------------+ 1'Lser isgsKrn


klb -______--.>

VdriaHes--> Va/Liode (y\roe l, CLISSpAT}\


or-dltsZ
Volug ; E t\A0p6\ trmg\ test'jar 3 luisdnclvali-res>'''--+

6tr{-m;- UJe Clasfcrrh&sou'rce io cllcrd GPPn

in Clicnroppl^,
( "5r"tngCfu ' tt r" ) ;
ChSsPa*,QeSCx.r ee re5 =rELn ChssPar6&sarr..

Glcoots rrc!-e8Gre d)3f Ct,'ttnr&off


Nhite ucruog ott$ 6priryEnvirctnrne(tt
is added to Closspcu+rEnv " ladcrble

d;PPltp
ft afu Dtpendeni !6tr1e.sY0 dltP tuptso? kr'optugrlel uroted touse
Ond gjtri&,tt,s

Prcffr/tl fgpe
S;.rfrte dcrrrtrsPe Z'{q)ut>o' ''rf'l'e" er-Fhhils
"Volcre " dtulryJt(
jwa'rang.5rnng /value > ol
q-rTtr$ Lli6r>
zlist 7
.tc.va'utt'Lisr
java.ur,'t . $et c[tst",*es+ .ct. ) z'e*>
L6'oLP ?
io.m. urir' llc't
"refi' dfhd 5c4(
Beon tgne 1rc| > or
LlnoPS >
JoVa,util " PnCr'nre'S
E:- Tb asign nu\l votlle t0 Seun p"og"ty u.)e /ndtl> r4
,'rrr4 r)4rc'r(i:.io

illEcriPae = EcliP6e + Builr-in Plugicl6


FB.+
L, TO ruorU (Ili rb CrdvarLe6 tecl-rnologies.
"-,--,#RT-'"ffi@
I'l!EcliPse S:-39-.s77,

tgPe ', tor slo fr" jr'va


#^i:d",-
J" 4zog"
'r:Dp
-4'
Vendcn; EctiRse otg
Cornrrrrcicrf LDE
s''ive'rs '
gives TLrncot as fu;tt-in 6e\!el ond a15o fo cP<tr orhe exirddmr
verSion : to'x [crrnrnnble ulirb jarr'6+)
TOdoonloc,d Elco: r^lh]h],rrgelipaeide. corn CZodrgs hdt)

Procedu'e tu keep l"lSEcriose ror reod ln cr-r'r CornFtrci i -

6Kp1:- instrrrl ll;Ecri pse 19 ' x (Ru-n |'lf0t'0 ' rrgecDpseide.'com)


velohed t6 l15BcL;re to'x
chror c-ode(ffiffiil -
n-
h lr.
tr"" Ger rhe c.rc,cl br%)*
9e
O"rrts bcz ap frcrcic g<rrcrJrtr'rr
lKfs i Qun.hrn fire. co\-,rcb

6iENi 4nott the i66erur-hrcrL'9 ?r* b opplicoH o6 tauncl^ed I ri1q;plLtg


ond get l,icencg narne ( ti.errc k t
SKpIr-
JIYJ . gi.bnrit
-t-LP" " tlte c,Xle li.cense dera;rs +S-f'tSErupst 'aDE

p5.g rrr..,u ------------J GrL€ciptloo f,nft ,,'s$


dn
---- ::m.t t=-.--- -
Mg Ecri

ok,

rrnclule o{Pli.otlon in il6Ecxnse to"x tDE t|rf


PlocduYE t6 dcrcLop SV."g Co'e

g,t+-ut iqlecrt an dt.t oll t6irs 4 Bmn P*Y'ntcl '


@,r?:rlm5

&*x
g9:Ii lounch tlgEcliFe IDE 6Ptt;?Uin1 hkxYslnce
-Tltr A*" oehrr,r rlx lnaBds (oil) be sorrd

.Sltp-trI_ C.reore *,va prqierr in flgEcliPse fDE.


----^''--' =----nXt-
llle.--- oeu.t------, Jc.vc.ptultr > prqfrtrn'ne: lSp'iTP'aJ I
Fin-l(l)
*t{-n"; Alcl Snrio5 Catebil;elu ro tt^e poje+.

831*cL+o'npbjerl llyEclinr<'------+&U tV"nuryMtikt'ld


.-> @sp'inr25---:
V -,
SpnryTl &rc i;b,ern { ,------rqe(c _-, f] Aop B(itcle{ *----o Rre: -xry)l '._-_-)
D-l
ft !l,l r)
' - _q}cP-il;- odd SpriogDrLr.rfuce, SpnogBeoo class to fie &r for&,r c?rbe Prqie+
r;ghr cticl drl src %rde,r , Nlc{d ------, I"*cr ftice ---------, 1?lerrrne: &too*
Frbli c intcFrtce Derrro

Prbl\c SUng $dlblloC);


j
- Stq-g:- 6tr $pringBean clors
n
clxa crq ,t. fr146a ------r N&o---r chas----------+ Fterr'me;
.- ",t*
{arbtic closs Elerno&qn irnpl{nrru.b Demo

t o'T*r-.
cntrr+shi9t +o
lle,.on DrorralHes f'jaclede

iot a|e)
hre dt
* Lisr ft*-tc;
\ Stting Cotor6ll )

t1a.p &c"trua:
P*g*.t cePituJS:

gene@re &rKj6an'l
See* qu {}:pnftofs*el --.---j tlsttl_cliclr+ Surrc€r
gelior , Effi-.;_l ---------> \ost'fttonPciot F[e{or alpit<rJ3-__l

qher eerlr-r6 r"crhods

@ovor;de
'r*',. Sr'i"g sc'Stletto( )
-t'd= i:*
r'nam€ "
+name 1 "ctJ. ='1ct9e
{ ",oocl r'o'ruo$'
* =
-'-' '^
4
*'.,
="+ colorS &J+ "'"+colcrrSlrl+
''colrrs
" g*"'="*-6t15a .--
* P.,c,lln:.t
+ +" ph<rne's =
(
lpbane5 i' &'ru'l HcS "
*#::'
col 0{'5 Laf
3l).o'x+pa
3 ttrt*s
CunR6urct$orn Pttt
,gg- odd trr\u!\n$ omlcnl in S!m\
(!-- De'rnCfu.x nn) --) ?a -0e- rc!5
{bons gpnDg-bean-z'6.^bd 7

L&an id=-'dt" cnss="tiova'uril 'fure" l>


Zbeqn ia ='lJU" ClcrSS:" Dnc8ean''>

LproPer\ rrroe =nfnrre" vlag='Iqia" f t


LWWY\ ryroe=*age' yalue="Jo' / z
lpmpq lTrrat="6f'' \Ycp="db'f >
lPr{xrry na,-r1g="frc"itg">
lli6t 7

Z'tc|lue> ofple zi)valuC >

/value> booanct lv alue>

L"4 hPno=-At"f>
/lttsr >

LIPYDVntXT
..,
t9ngry ncrme=' calot6" >
zllsr >
4valut > Yed 4vcduez
zwlue > )ei I oo) u, \htut 2
blue Avatutz
AtisfYl"'>
tl?voSttrtt4z

lww\ Dctrne ="Pl'ronei" >


1Xt>
LVcJlQe>Q+7]t56>l LIvalrL( "
2yoL\ue7 77oD+qr\b 4,]f.\qe-2

Z YtP baa6 ="dtJ>


zlk-r>
QSxryny7
.D tl
ZtrrD1,tlrt/3 fll,,rrf= {rttul};cS >
LYnBQT
elcrwnt
t{)fr{,cnt5 c *:;7
lenlw7
z e$+xsturs
F(B..'' -
,
rq4rhe --.*+rn-r6
[ z\atue> raff's\ L]vdtue' 4w
vdl"( 4 rtx
ont e-0omc'nr
elemcM
I aolue> 0ava F<^citl*lva!ut>---:re1'rtgr$s
:-lkthv, ri
a-
zBeuT z.vctldeT {Qroo,nq Avaluez zlYal7
L\aVeZ .Xfr&.r^Ltg Qvaluez
z)e4z
1eor'g>
LY%> LVcr\ue> tu&g 't-fuatuez Ak'd>

tceP |rycav-- "dt"Iz


zlqpAz Pogries l-l"p &rasM'*
-r ro java' r.rri1 .

Artn{t> eterrrr* Lg rr,-l;tbe sta'.'J "ol


/-lpralxrtrXT Vatite rnust bc 3rtn3 .

lprWNnJ narne= " CaQiraib > -+ rn O*'c. tlop darosrnn.ruw Ql<svnt

aru &ura ohje* anl


LVbP67 $fl* h
ohlu'P-
refr'ctonts a lVrap keq b|t d z/ProP z \4J!4 Can be 4nd &r-a
v ="AP'>
Lk€{ L,\r4lse
srr Usodl} ">
ZPOP kt --'ll lr lltrmboi zlwPz
LW;P lren =" yp' , Sang lare .lwn'
zlprups >
4wr x,
zlbecrn >

Ll&Lo6>

&tp-m;- Gdd Clienj oppn tD Svc

- r,ghi&'&q gc ----+oettt ----+ dasb -------t m'e I [6Joc]i'

/D,tnoCrt"* ,JavG

FJclic Llltsb kt"nctict t


{
P5 V rn IStrrngl ] args)

{
&arr".r'* knknDel
lllnnuon ")
('Sp'4eX'x*' );
Y-'B*nftttg d@ W=oeN Yrr&onfuoo'X (n.* crc,,ssParh Re;oar..

/g.t SpnngB.on ohi


Dcnro 66 = lDcrno )h .
"'grrB"'n('eb'))
Iw B.mehds
6)€lst + cdrl t srart -
5gsrctrl (I.t"P'nrln (UoU,'SrgH.rfo C)) I
SrPm:- e*o the a?pD.

f2trO &5-=+ Czr'tr ctpPtt 646 *1-


R,6|u.u+ ir., $e f)q'noCr;c'*'iavq ----+ p_*,n"
l'
c klss Lae Can use iova 'utr'
Nbite rulEing coirb
norne an d
-> i,63,
L*-hro1vniz* ' rc
sPecie'?d
rupe b^n Ptprny
lt*rc"ard,
W'r'fo $i'tngcPg'r{mt oe 6e66 anan ctn 1g lor I ucre uPPD '

{l^- Sfnrr€Cfu'lmt --Z


Ll.wryPEv.
Zbeonb> n
tJnuft l1oq",rD-fokne
>'J
zbean id="drd6" cldsb=" ot6'sP' idbc'dcrc'$rrytc'
&Iue,'' OatD,,- iY
4'qulb rncoe ='dtivc'r C]as'sNone' \aloe =' o"arle' iabc'
(I'ii"' @oto" f >
l4nps]ryx nime='url' valQc=',lbc '" oracre
" \./
.n
lpnpo{fr^ rurn€-- COorrrttonl'tqrzrrtr'e-c Z J
lpto?s> \)
LPilP l€$="u'ser'> gotf 1lf'rqP-
zltnp Ktt ='Pss.rrcu'r tig4 A|npz '-_/

4prpr 2 \\
--) 'J
4lw1xnry z -'
6-ar,rQ \
.gt*ttrw-
Sr c
J
zfoot> \J
-)
.J

lin€ arBurn€/rr \alc'es to Il6E trts l)E a-|,pr) "


-> To &55 6inrp16nd
of -- Qunccrnfi5tlraflon6 \-/
Prghtc-rrcr. in rht &c,rtecoCe aga --------rQuocrb
J
->
Aqurnenrs t4b W3I'!$1ry4-- \../
-> Vqtt A Wtl6.^--. Yal r)
.{al
J
orgsio: aqstr: a'gstzl drgslo-rl

_)
Gna.t.rctol Lritrrot

-> 1F 5f-ogCo*arn<t ie trs;og Potamercrized CoosTtuck:t to cr@re Beanclass "\'q 4


t0 oJb)gn f\xnden+ Vqluea to Bearr prorc'rticr tlrn ir is caued Cnsrtudwi\enn

uodet Zb?afi> la3


oq lntcrcl -crrg ? lag QPecrYen ce ccuru
-a Baced Z6cna
tDP*{o'*
con"ntt.,tun
tt)e Spriog c-doi?rine,{ Plc]6rrp op4rrupn.fe Parom*cYized
f6n6rrctCt4 iajddon.
crf'P n
Exqmple c{,pr) flmo.ictvo ---i Same ab ['€viocr6

Deon&ao.jctva
FdCic class Dro$*n inplcrnerurS Dcmo
t I lthrrrapslt\ fxDfr4.{eJ

inr aXe;
$tnog namc;
Prmr saloYu:

//F"qcmerctiz"a col.sr,a{dtr6 &{.0r,ax".^1


plarr 5'fasrD costrurft/f ,.-br ,,.,r'. giep S-lcl-f-All
-
consrrtrcrzt usin$
keta
6eter+Ba,o Pmw1c^-j#::licrorc
-(
-
-----+

0K.

// irnelerrn* B,rs;n.s oYsbod


fxr.ldic Shn, ery[J.,rro c )
{ " + Salav! )
refurr) ''c$e-= '+49er ' ?r,.rnL= ' tnc.rn€ +'&tla"5'=

{6pr)DScf€,xrol ,- >

<beztfr ;6='hb- closS= "Dc,'Pgaon''t


lcttfistnuclw '@X V4)ue = "aO' l> Therevalurs roustbe syi;hd inrhe
le
0rde,r the pararnelrrs ctvt ctoqi I ab "
lUt6trs(fu-an Vetlue -"tqa" l7 in Gnsrrtrcrz,r.
6c" l>
<CtrrlgtuLftJr -an Valrrc = ;"4t5b3'

Alrr.arl>
zlbcrns:

:> Sirre Ltrt\stLefur - crr8 > toX is ptctc< d {r'r a tl"e$ rhe SF{n3 Grnfalnq utrq\
thae P:r-ctm Ccnshlacfai fu
i S,A&"n lnaranHc"tton and f"t Gnsr',...f,ot f'X eaff on,

/iDoro Crt,"r",ic.uo-
Stoc os Fevidas c40"1

Nore..-
to &m6gure &I''',et'l valt-t<l
Nbire li{o!"n6 r'uith cdnshra/'rdl iru"rrloq toe rped

arc ptaceA in the


ccmEffLLc.f{,t
in tbe c'tcle'{ tbe Pctrarncxrrs
rrr-rrt'Ftttts eda*"1 ^
TP not infardel-cl trlt co"n reso\wf fdenltb
-2
$er tgpe 4 Jnd^
irr rtle Cor'Sm-rcf,rr| . tbCIt p.larnedr h'gu'l cot
J-? Ctch Erc,rrg(r tgne i5 Ltrt1p'e ttrrrl coe cctn
-, '&to,b
"!Lin fi*ndGnflguronaq S. h^t CynStnrcfz,,t fqjel-Hc'n
Conlguta}l,crls '

E3'- ;n $Pn1&nnr
DroB=n fror agcr Sl"r5 *'nt, -Pt* &tt'5)

{uo.oge =qe;
ltrls. narnt --Dorrre i

{us's.la"6 = salqry ;

in SrrnS&%uroicn la.-
Z.I,tan,82
1bf0n i6 =''db"
class*-'Dk,-'o&.^8 >
-- 'ior " Yafute = 30 l>
/Czrt*auxx - ct:rt1 tqfL
!J:----- -
@X larr-- " Flot 3t56'171" f 2
\t.el/ae=
l1oosrtu4ttx -
" !o!ttt'--
" YqoJ l,
LLantt'ttst$ - 63 tgF - &.ravo'tc.ntl'SmnS"
LIVan>
A*ans>
*ren sraan roorrrer/
oP Onrfrcr*rt GnlarnS 6orrr fure
-> Il rn lFiPle f:tramelcrs

idcr,rifu tg,em bcded or) *,arr s,'owx indexes'

E$-"- in SpnrgBcan
ittt O.Lbic )
F+. D{rl}r6€on (i.rt a,int b, int c)
1 tt5'o =o;
- *rre .b =b;
, t ttr,5.C :
=C
in 6P'ogCcnfigrr.*,- f;r.
Zbctn ="dU" clc.5s?
16 ftrno&ao' j>
LU{\6lR'!ktt -d'r X in&x= " !h" Ya1u1="lo" f 7 €6eS ho'ct"

tnde;^ ="C "ni


.vrilue='b lz 9d +o "c'q
/Ccfi11\1.lj.ru -oYX
J'' uo1t4='w" l2 get to "b"
1Un#tnx -cr\ inlex="

LllrrlnT
ltrc.osz name fo
Jhere la no sn lb b Bcao fiop.ttg rntn e
5P4t tor) Clmsrn rr<'r Parrafit'-rtf'{
-> froviSl
6nsrfltal:.i WaFfJ<r'3
<CsndnttlEut'a.:t6> U'5. +*rhO reason ue rpcd *' ,t""tg

ei*Et thr*gh 6erY dat<P#s c-l irde'}€s

j
i-2 -lhere io
a provi 6;crn io crclivcrtq kc.oFrcfrg Clmlcr/nei bcrsed cro *a q|t"od1 cd;urrrd _

Qeonhoovg emr.;rrr, fn rhia pmcess the rDd BeanEcftrg ds',$airrrl acfs a{


the cUrd oyob)ncy/ arEt tr Frer8eonRctcru C.rn orrx4 A(;5 as pavcnrcanlrdntu,

Exampk, appl'totton: -

DemO . java &Ift11. Ob f)rgvlcfls afirn


->
// ftrm8eon. okva

impon jaltr.urir.Drc;
Grrllic ctcrss Dn'o&dr1 imderrrors Demo
s
t l-br" d:

Fllrtc void setD ( Dore d )


{ tr,.,=o,
3

B,tue Si'rog s'gblerro C )


{
..,etut b ''d= " td
"'
3
\
// DermCPgr'xmr ('ftner* ft tc)

Zb€ons
('
LWan id -'d t ' clcrsS .b,va'uli I 'lnJ:-' I >
"
zl*ptns>
lDernoCPgg'xrnr Cchird B'rc ;
1lag65
"Pr668can'>
L51ea1 ="db" Cl05S =
'4
t@ltu\ mrne -'d" ) <v<? lacc'=i'dt' 12 z]PwYxrrr1 7

t)ban>
zll,xaos>

/nn.o Clicnr.iavq
r(f)Fr(6

pblic closs DcrqoClien-r I a


P s v rn (Sttogt r aqs) [
// D,rtnr geon F&r}<ry\ Contt.61
i
X.'BcooEL.'.t {Ltryr= n*o XrrB.nnft.t.'5("* clc,s ldrfi Rr.cc.*" (U'*@a- x r',rl

/ chrU facrna"rug
Cot\ta)N,l
h^g (r,"- Ch,.ft,* R"*,'"t (' O.''.Cg a' I'i
Xmr&anFaomy -f=*,u, t.
=.1._,- X*,BaorE
fto"gl );
ll$ 56n6kan ck*s ohi

Droo 1165;
= (}',n)&d-ga. ger8frt C"db')},

So.p ( Resut i5''* bd*.scgHerrot)):


t
I
gl 'l
hJl^on io rhe d;Ff blr,r Bean anJ locor o*r;a'n o(- <"f z t"6
-
.- Et" 6, *,. J,{r#€t,t kon i''
"kc,nu o-lhibcdr. G$rcnJ Spngconet6ora}lc't
soLrcp-s

R'rt ond olso in gprng CooFSc'rofan Bre'


Poreru

g- ZPofl'tr$ name
_-"d " > zwPbac.o =..d t.,/' e|prog,rtg

: (.ite
: 'rl.'ol" o'thisr]t Sectvches f*,t''" dtpe-dtrubeon igl dtdv€ffspln6cf1

EJt lpn:yw,; narrg='d" > LteP locr.t="dr"/> l\rrytrgz


.-
I'lctfrr = 'c'
d wF= u' l ' i6
garoe !'L as
uu n-'-r - d norre'"d">zve? bLd\="at'l7
Lvq'.rtt\
4prDpo^b )
zptrrrlr{l$ ygg='dt"/> 'n D'(rI
NeOr., rcc.re €pnrng G,nrcdner tO keep SptingRean clcrsS orqjcUs iorhr SlrO-lo3
&otrt. Q Shgtcr.m
@ ltotrtut'
0 r"ltus t
@ &gicrn
€-&rn *,o.a3 h
(, Singnroo'.- one otu€lJ 4 8;rringBeon clcss
crnrcr.inc/r crcc,r<J 6no)g
tlmec crrirh SameBean id
P".r*U ge*Beocr t ) rrrrhocl is Cclled ftT rrr-'ttiple

.b0,, >
elc($D = krr6ear," sr!{€='3ioBlefo,."
tr 6.-
{brectn id =

z-ltr.anz p .. _/

o.* 4- 6gl6pletcrcrzrl'-
[9 mrntup.i- crnrs,nu crec,lrs rrulhple obetrs f(n $-n6&on
'id
'
hcl-rlng SorreBean
P.u-a. $,r&* t ) r,ffh.d csrlll
.\J
Egi zuetufi id--"db' glcrtg =-prtoBean' ScoPe= PDhfSf'c

zlvan>
cr-rtn'bule voLue rn
ouje* os r€lAest
[f rq,.estt- GilJc]rx,r kfrf's 61-nlBeon clor
u$co4oo
closs = Dt"'okan' gSPa='re4uest":
Egh /HAr' id = dD
==

zllxc'o>
rPlue ;o

I Sestion:- Contcrrr/ ktc0s


Ur<M+ln
$*A &on clcls oLj@r
as f€ssioo orl.aJiq

Fgi .&an ;4="dO" closS ='Dcmokan' Sfope =


"SerJlot," >
=,

L)l*sn>
arc $ onlJ i'"l Ucb €nvirdnmf'ru
NorE :- rcauost, Jtjsl0n &ops opptcalle
-]be JaVa clcrgs lo oq)ecr lgf ovrr is co-r-tcd
tnl- creale on\$ 6ne oc'\E(
attUco6 rrs
Singleton Javo c\oss' Evto thutgh gcrvct tlos ctLlotos mctttip\( odads c'rtdHcrrr
iF tlle cr.€ $<oltylg o.'ty 66a oUf* {.xtt rhtn itis net coile{ Si\glek'n rJa.rtq cb-|{,
-_ Nhen Sp'intqa,'n Scope is 3:n61eron Crr Springl3eoh ct4ss &esnor bec"re
Srr6nrur, jqva ctc6s.

-- -> 3;ogteton gope 6prDg BeoD5 canbe ccrnPigured us dependenn t6 Prut-otUpc

€qte gpiqfdean p[Tra"rH* c,od ricevc{sa.-. rn ilrut .obole PrDLers


Gntc"rnrr doesnoi chc.nge &,rp$ 4 c.ngBfoo,

tDber' ctr{
.-'fteanbe plcrred o",r! pc.yamet(yized anarn cr<fts in 5Rr'ngBean
PrDp{tties oF sprqBeo., are coo€;gure"l f- &r{'cr4ernvnl

- ryr Not ftbbibre,


^lSczSfting the o}cre sp"'tn3
Conrc,jrrx toolr5 tD Qse O-Pol&m consr{tlcr<r{ tcrcreccte
0con ctcrs5 o$e*.
,

ft ia enl-rtrrcemenr oP &orFoc-l-o9 c$nirdne{'

ttrir Contari^c,r i5 arctr\Gb\e in SP'"''og Ccrnfext f We rcndq'te '

6ga-Fe
at i5 ol:o ligh'-ueiSht 0snfcrlrrtr to Aoivole rhis Crnrctrrtr
(r)'
ouer* {r, o c\crss tho.l- irnplemerr} 6rX'5P'ftrnKxt'$ppticorrtm[c^rc"r

thus Inrcr?ace i5 SLI inrc ft.rq o? OIt.SP. Le.ns- ft..r.r'l' Be"tF^m"j [r)'
thtw cr.e 3 impcrrcnr clcsses implernenlrrS Af?u*HcrnGrr,rex-r (r).oc Cc"n

trle rhis clc$Ses to qchvole d*rmrrooGnrcxt Cor*ornev

O F,.Sgro-X-r Amri carr"o Canrt*t for g' sF' canler r . &+rn* )


-: Autvc'tes !f"it3G"-"t by lw,-nng Srr.ngc*g f;,. f*- $s ,?ec;ffed trth uf-
bAPo[c4Hor(on+€,.t
firtQstcrn.
- pnQsrernYrnrrtdicanon fun.Fut ox--ner, Fu$g,.* XmrApplh"rt.m G"t '.r( m*od5.xn^r')
s,6ac'rt) ,\
CD Chte&tf Xmrr4pptrcorronGnrcxr (o"€'sP' donftxt ' :-
-the wh*t ctdded
Au;vcrrcr Co'rla;rt, b5 lccr*rng 9*T tft 8'u fro-
-> Snl"l
t, A?:Pll (otl on
c66,t"t c6rfd]Y\4
-, Vccrioble'
.

tc' the ClosUarh env.. \'_.,

Ctoufun X' A1pu641* G"ru r *x = ne'D C las h* X-r Aeel:corrc'n(o'rc^r-


(ntuq-2-'

O K.rLl.oApatrcanorGnrcx r [o.1'6.sf " L.rb-


ccnrt^t . &rPi-" )
-) ff*ivc.rcr Appucorroncoru.".l cc.nldne,V in la,le.bolPllarltcrns

,rlrj]*g
-' b"PP_5 C.o be t(lken ob skrric o rpn-st<rri c br the ettt,t rt erbo d

injeutcrn rrust be -taFro oa Y:84#&{


+ar., R,, 6erFcr J
*:^:t::?# Y:;trfueaJzn
Gog
Aog C'''rerr
Aocrrcartoo ci]t'rerr
llocucarto'o
*'":^ uee' flxk:,n
eoo*iro, tike
,,-toAto
tz. *o&,rm od&e,ooot -R.,,nrt-r=l;t1.,
used P*fr*
*;* hrr ir con be. olso \i'

in sinsre insrancco*
,l TilT'J,:i: Tft fi; *u*'o'.,n f;reg

'
Ccnntdrte/ aLnvcdrcrn

O Abitlt to read *t* fu' P'DF"ltus


'

+) 3+P* f"r i\tnlhhe-r,j-l*'i:]


crc'-"'
A grt"rlL'dl'X t"a
ul At*
Nqil=i qurhesb,r 9"d.'n'a orc'Fr
T::rf""ffitrffi t cbnlcnn'Lt
P
ht'res ore erclclsw
All these

LDecon oLiva'tr
91r)h.r')Eov\ro0rfenlfr)(J,\tsrrlc6f'nn$E@nsdeue!"ed4ffrrl$Plerra8lclrrprs
gr"'n3 J"*'**o" j::'
.,li\r be 1cnfi5uted in d;Fk"c.r - t-ft8"*
q''b'; dux *unpresr.,"3
r\pric.rro" Grurext dsnlcrlnc' 4
fi't' /lnsuar. r\pprrcorroGrx^r
G'nrainarl
"hta"r'ol"']:
S*q Arr, = f "De"tcql'*'tl
[n,Appt't'n-G-"^; ct^=nso OnoPo*X*'Apf,icadon G"r*'. ("Ps );
Ooo&t
r[ rrslt-iple CcrngStr"ctl-lon f,r'e (o( Deed
NoJE'.- in &anft.txrg env"' 'lo coo'P cai

to ocrivox mLcthP\e ir'lsl-aoces


GF [!ot'k'"rc,'5 csn]ceirtr'tr'

-> IP sp"og &an oQjec.rS ct.r.( Crro,.€ d bJ drota;rrea io ttrc rr:crrrnl $rAng G"nloi oer 'is
Ocli\olcd then ;y ;5 c@l0e{.1 Fre-inak n})cltloq oV q:rloXBec.n'

flpttcotionCer*cxr GrLtuirr,{ pre -ir6tan$a}roo crn' $ngletn Scoge''


;xrRrros
Spn.gBeo"a;.

qs
- q" Hhot l"rc+p".re iP "proroqrd&.pe e6 sftrlr,9B€4n \6 fatseo Pqxo'derLtvcr-l'uet6
*$l.gt.tr,"
&"rc SynrgBeao elars P-ftf \
El Cor*clrrv c.6'€o.tf5 pYDlotgPe ' &^',. SpiqBec.n ctcrls cbjd at'd Sngk-tt'o
l-he
SC"pe SpnjBean clasS ohjeLt tltmc'5\ Pr€
ostc{nh\aficrn
-in6tctn h\ofic.rr Po(ess ip
oP
l ib does not ct'an9J"&"rt"
Confaioerr iS -4pe[ccmc'nG'rttxr Ccrildnel' k
onx Bean' n p,^.,-o.N.*., firu.hp.,roo ue
are ccnP',6u"ed in Sgnn$ccnftgcrrc'tl*
g dttpving E€ano
obetfS v'jhen ;"ey
ir ftrtvatl
Cre'atlng
enoble Pre-.icotarr*tcrfttrn (qW-
only on &tr sptingBea0t' \ scr4e ana tctLe othea
6-6eana
^.. *.5t-r-.'
*ffir3.;"l|':^::***
^,

** r'rDtuqpe
s'"rf, $d,".*'e@

to $qletzm &6pe ftnr5Beont


&re rnt dqxmdcn*
rs copea 1

q- Nho, \-opp"* uobe'| fog;3ff"1-) s-p" iJ!*totr€l


= **Ii]*:
.ltirnns €fingBec'n elo55 ohJ&r
...,"" iF st'nnae^
Arul Cyecf€J cuod goqeis Snt't'"
- T""o.::'*^. ,-, Oi*
rerarn3 sp'n3Bcon
"
;F ,str.n1Bca'or
I

c.rcrce/roarc5 c(Di i:il' I


6,- h/hu-hu*n*+ ,\..'
2= +#lT:"lf: '-ued
"PotutSF'
3y;"XBez'n cLc'vt o+' ir
sr'vB!^ eoprs
aol -^' "tT:'?;-l"*
reft:r'o.s
$ Cftat?2
d6&+ iF ,qttj &^^ ra.- ts "stn k+^
cta,6
lorarc crnJ yerctr n tpr5&"^
The lert Ble $clt rqc ntrons tle e*rie$ in rbe €"m oe keu = volu. pctlr 6 ig)

0'tteJ " Te^tP,..,pa.rics $11 'l


the aurrdc"rA princp\r oP 6[o indr'swg is d"'t Ltd.c"de ar.xvcctotl in c.t r

qryr.,-Cr.rrco *n1- ale changabk- in the &of,tt Jt is rcccncrended to Poi6


(1,m c'rside fte crypliccof c'o Q lt'-t"; t'3 the
thrse \oluues to oqpticatlon
S*ppr/r.+ lbxtProrr'rrlcg {},. / r-l 8,"'
lr'rc'l c'H'ns n
-> I? {r';ng *pnt;cott cm plac€d olcrn; c5rifi Ofhet feo},notogil
f;fc
it \5 yctocrded fb maFe qr*r5 AirPticc*ton +o c4se Sarne latP""ne't
csiol to Ccry-nrtLcm dala
\tDf Cftrc/ oPPL;to$orvs crr€ CenrrctLiz€d '

'
E,\*pps
F-----+ SFng
BeSS
t--------------
DbO p",arron'jav< J' clcru

Dgofrr<.Ho"B€qt',;a^r^ | " crarl


sp;ngcP6.xm\

an C5on-f .;am|'clau
Jdbcc{pllcatkh c-U bc&lefT€S{ . j c,-V a
Corrta.;n, JZ bc&i"vn,
,*r;; e';; L,r l, u"^"1*.,*
rtr;:#:',#TDekr".ir' P'bP/4trq

aolor I rora

cetkrrnvcrt,e:
g*;fiF;grc
rrake 5p'icgcnPiS*rcrrl* Bre eP'rFA g"ihns
-r
->T0
ptr.'cebodc's sgec't5ln3
the keXs 4 rl"e P'Dtrr/ttc5 [ire (tire
cr)e pkr(e ffi*)
pr'rctnl&r
T0 recrxrrze l,ltse placthol.lers ond to nnke corrlc'i'rr''r gar{*''ioi r'vr-trtes '''2

^ o bosed .- ttr pbcehotde,{s lkd- ort SlxciFicJ {re need to Con?''lur'' -


{tort, pop,riaa 4ire
as s'nrybeor is Sp{n3cfutsic--
O'0.6p.bear,s. ft,.rt.c^83.P**rbplc.,clor/crG,npr7..ter
""
Scrrce code o? rbe olort afPucetlc''n
IWW-oiL,.W?_niq
#idb.
'' d",u." ood ,o deEi)5
Oao a D*lt'r
,"'*' = Orode ' idb'c ' dqivev '
or' : l51l 3 olcl
*':n: @tooff'osr
ti *, = idbc:trtc'c-te "

roy ,d bure,r = 3o*


nnu 'dbR cl ' tige't

SPrring o4)Pt;catton
C{lty'r',
as tg I olleale
Dgorxrdfidn "iavc'. ------+ Sorne
D0OErano'n &co'irava ------+ Savne
cra t4
raFeS &r(lrsr- OC'r tO YtCo? tu ?C

p)c.ceholde'6 {ProPuti es fit<


Zt-- AWnCfu.xrnr --7
-" --77
/,t,fflc1"tP1 --"' ---^a-,kors,t".,{Phd-l-ettle^/
,e,t>s.fua.ory.con€+g,h
^,tI,cJ)PL " org,sP.b€arlb'rL'",e'u Gn6$rt"t
t'*-
;;":,, id:"g:npccnB: \alue nor,r.,",opc.r;es"/-
= ryjtfil;;-0j;
zpyDrrdrg rnrne toco$(rn"
? io cl.l{rnidiredtlv.
>
/lbecro> ,,
-*. -p i,rh..dc0fa:s,."f ce,
D-rvdlbna6erhnSx'rze
"
;6 ="drd6
los6='org'6P"idbc'd
\-^J - - U
zbeon I, . q _t,
s.t,,tx\' l>
ZprcFirfg r0rne --''dnve,rCtc,sNamc'
Lrrrvvrv'v \Fdq€ --' {ry'
-,.
I ";Y-1./-]
^ . /- LPlacehotdc-r

z+tDlx,t! [)ur,'\- - " J >


I1lYrq1g flarfl( ='uxnnome' \at[€-- + t"t,U' drusc,, ]'' i
z
t-W,'fr*H DoFnc =" paJscoo6l " 1o1""=" $ l-f 'dbwnaJ"/
zl:tr-,urt>
>
zbeao id ="dob" c\as6=' DBoPwalonBec'o" 6

LWP(t{tb cP{me = " cls' reg=" &dt'' />


zlkc^n >
z-llrrccrns>

/ Pgor,,or,- eli'nJ''iava
iropo/t "sf' conxxt' gqrpart' Xi
org

Fblic closs E80p<,rrrftorrCticru'


P6 rl -[Su"rgl1 oqs)thvuos Ex+tt"n
{
&plicd}lon &mi-cxt ConlidtP'l
//O*u.* (o'ilft t (4'^5cfu
pre fon .nX*1[gpticr*lcxrGrrnftxt crx --rK.o fi re$srct Xrn r &rpucatloo ""'
i llger}yaogkas oht R"r.' @nh)nor
DBqrrotlon bob-l = fDeopctloo) erx" getkat' (''dob')"
/cau b, me-rtrods

S'o' P( " Ernp aalarg i,r " tbohi' ft"r'$a^g (r'{qq ))''
S'o'p t" Lrnp Netnneis" tbohi' fu.5frlame [14q1))''
Gllrt';')
3 i/*t, />iavac x'Ja'q
i> *lava DBoPcrc4rsrcllu\f,

b JDbc apPlrafioo :
/Jug.g"t *lcrt 'Javc'
orr'ax*'
iro;xrn .ic.Va' Sqt ' * ) -= +r"r
irrrP"lt.lava'utit' *)
imfslt jata, io' l( i --r'!r{'c'lo

grbli c clcrss rJdbc8ele*Tesr


t
s
P. t m [$';ngt ] *n) thwcos E'rolurn

{
//lotote Irrue*ics 8Le
pre.Inyrr6rreom [""D@c;ts'
pre'Inyrr6rreom fno1,u,rn-eb^ )t
f"D@";6' [t/Dfc/h€-b J'
Fr.I"g"@* Bs.nem
Ss.nem
cla''s Obi
frte to iova'uttt'ftope"rtt<6
/lma the Conrql og pYDf/hYl
ProPtrrric's =nera Ptofrrfl'J t ))
P

p"road(fts);

iiread Core.,r fu* h.f.^* clous obj


Srrrng 61= P' gerPog*g (qrng' drftt^" )l

$-T e2= p. ("m6'un " )'


gerftupq
'')
SN"g \ =p' gulnp't,a ("t5' dtrusc4 )

Swing S+=P. Sukugn^ q'rng 'A}naa" )i


//N'it Uutcoa"
Ctass" ,f.,rNam. L5t)i
8''' sl Stt) )
Grrnnq -- Di*t' Manole,r' 3a Gnnnerrtcm
Con f '

Shr.r.ro !t2con' c*et*e Sktrtrlu* C) j


P*,rS* T5 = Stj " g".c.,r"$&6? ("'** x Rorn Sr.aenr ');
!{hle(rs'next())
t
p ['ts'5erJ,rt(a) +
"+ts'getSnngL") +" "+1,s'g*SMngtr))1
$.o,
t
/oore iabc ohjs
'f6'cloi€t))
€'st' ctose( )i
Con'doseL rl
/ir*n
"3/ &,Jar
/>Javac Jdbc&EtTest'iavco
o"d n""rdffi
C1omt retottize Ood
ose t:t:*Y
-r Beaopec.torgCcrnrcrioe-x
i5 arc,0l1r'rtd.
gwo thoag\ the SPecjc.rg"ot, "
IP *rts
ule con coo?igu"t rotrlhrpte prugmics ftre in SPrJnSEillironrnen-t'

r"X to'* t-:;"tfi"t"t[


->
*..ft9t.p'"Fnh's fttt c"nr.r'' so-"
r''-
frDfxxn(,
The values collec.l€d &o*' \ostlg
GnftS..ted

ood us.A lo zl-- q-iogch,xml--7

Egt zb€oos 7 .s? - tso.,s.


/b€ttn ;6 ="PtPctnftg '
1165s =.brg
"*J#-tge
Arr,{rarrt na.-r. ='ry# 1,..Dp,.6{.

t"u' t^o'u"DsltJcd ls4' q,oPtlte$'l'::-


z-5 tlwfuez
flDF#
/'laiutzDbDcr<'lls'
4ist ''
AfrWuwAz
Llbeuo >
:-
=
.zlbeons>
x) Lnrcrrnriomtizc,.ltcrn

Olnirg + Longtrc^ge = locnl € .

clcrs5 '16 given &r c-oothng totrb locales


iauo'uri)' Locale

try
Eq:.
- Cn , hi -IN etL '' "
en-Us , pr -FR , PI
cANADA '-)
A-g'.nan cts it6 sPeak ;o
is m*dog k* err'b'iling .J
d;Pfu'""* lcco'lee
moring oa'f o{pliceHoo cocxh}ng &'
(ot o€ed }o -tctke oatre og-
th" Pfs(ftfio"t '-''
iltn on rbe opptrcc.l.{on, Fo( *,i5
and e'Fc" " J
Lwev'rprr',bc,tfznrmm, ftrcP-wpts, Cu'rrerrX'{mbol5
l6be)5,
"^t' 'locoles 5ve,;hc P-Pis8 'J
cr rreeA mctnlr\-
--r To enabte ittn
on drl o?Pllco}lcnts
n ,,Pno l"bf-c) $re is &-J v

ff ;Hl.,n' ffi*'J: -,',#' ;;; B";q''.T:


h
lerkis :
ffeJ-}.)''3

gre*n*rrHsn
gdittl togef : taDlA
hB can use ffitc hon6loftn^ff .rn;cole
ttE nTY*,"re v'J
in d;Fft"ent o"udH ,*
d; F€.n<,.t Enguclo' @ *
tb Zq "-l t-r":r'de
-
urvl
.*,,,^_6Je rurrrtrrs
rurrrtfrs
tbdt
$ef \-/
rP hb.r con't be tgQed using Ergrtsb cttphobers
'pntt" ct*"*o* J
10 gei Uwc'de rutbers
ard elpPued 'to fte ctpplicotlcna'
'lau6u'thndi c'nd elx"' trr- 666 use Unicodeedro/ J
YeBIonoI lar6ua-ner livg

certain bindi ctfde


r:
aed \ usirrtr J
procedcrrc
o Qn
jb 0cj- Unicode rurrlaer

furee' rntiveP"aecii rool 'J


Unicode edircrr c'nd €elce
\J
p Dor:nloc.d unicode eclircn rcot Rorn urap'b'i8opi'cor'n '
fuCIe
tle {btroc'r;q + v
@ Launcr,,''un,cgg-i&lz"t-@' rhu"rgh l^*-**tc.nd
biodi t wde F.1'

K\t
t)
Fle ' v
5r?-6'.- cofx aHm +bindi twtdsrb Norcpad
. \-./
P1 -txb yt6 trdcode'
T- - ..^-,.-
llolE:- Nh;te stdn$ thrs &,o nh*.efr..nodl.€
f;rc chd \_-/

l??t'z't
11t,
:'1
,l,ttt1
",| ..-l
ilg
St p+'; USe r$i\Eeosdi 16-0 I f0 get Uritde nr.mkz&
iBrr,r'r*'try1)3-OveRc6cii _er€Odio$ o,. Lx t Pa-t tx
T-*nt 11i< gtrrr c"rcd unlcole rrrrnb
hr;rt to r6e1 {13 p

9Ur cao rrnre ftpUcorto.oCorurcxt Conkdney oodg f* rrpLe iten bg Crn Ftguri nX

rfe &'oong SpriogBeon lraoiog prDfxr/hes fir" mfrfJ,


cl€' o9' Ccrn ttx i " &rtr pcnt . Pesrrr,rBrna ptloro6eh$xrre .

Sftrg Uosea i6n frpp ts^arnPle apPn

E:\Af?6
l---_SPtlQg
f---"--'- tT:-----.&p.progn;q
[br"se Bte )
AfP- Pr- cA' ;ruPnes
Af,p- Ae-oe' Prryxda
[PP.- hl -IN ' WDfrsYn'lc{

ftmoCft,rml
kmdtient'iotVc'
/ APp. p'op"te s [&:en re )
Srrr = del€-tC
SFTa : Scrve
th3=669
tlr4 -- 6ai641
ll NP - h-ce " Tolotnu ( F""cr"')
SHl- = EFFACER

Sftt = SAUF

St13 = ARBET
Sh+ = ANNULER

// nPP- de - DE ' P'oP(ll % [t*)


Sfri--- LOsOrrN
S}T i : DENN
Sn6 = zul,
Sh4 = AtSAc)tN
"/tlttP -t,i- rN,Pnft'o{e\ [rctugu;
t4u,',icde ft" ft6lT1
n6ireser*afiorr
166r-\rrcfaa
Srrt = \uocx \uontP\uoqrs\t''ore\
:f aos ?'o"n P2 rrt e're
:::; --' J
ttru --
NOTE:- ]be F;ternme Fite is rocrsr be thcn in l.txofe.*ecjFic FtlanameS. --
oP Bose

+ crl\ pro1arfiea Sre must ccrnt-cno Sorne |.<gs horriry d;Pftrftnr Vo'l-ere6
<1.-- ErooCPg'rrDl-->
(beaob>
3t{?o6t-' l2es*.."&*t" -
",r**ogSrrce "
/.Wo;r' \d= .'U
cl&sg ='or3'5P' Ccillext' f*rort&.*";
L' Pi xed kantd
LPtqtu{t1J rnrDe --'b'semrre6" >
J
.Lli6l>
\J
z\aloe? APP elrn\ue z
hPP- de- DE
r-lvdcre> \-i
Avqlue>
/\a!re> *PP- Pt - CA zlVoluez ,,J

zvolue> hP- 6i-fr'r 4wlttet ,J

4lisr' \-/'
u) P^oF'rfg' .J
-rlbectn t
\)
zltaors>
- \---l

/lDernocllcnJ'iovq
su{9cxT " *i ,J
iccrprvr ort' 5P ' c6nlt
^b' .J
irqpffi Jova' uli l' X;
irnfr3nt javax - Sjiog' *i
irnfurr "lava
- aot' x;
Publlc clcrss $-rn6Crrru [
P sv rn f3nngll a$s)thrDLos Eranrrrn {
(0(fts .
t
Ulql(BJr
//Loc"le ouje*
langtrctr f
f ---J-:- -
rtlo lo,ote [orgs[o], or3sli J'
J
Lo"t. {=
Apuc"ri"o oonrert c$lr-.Jy/,i r^ J
/i Annn"r"
elx = her'r) ClatsPorhX'"rAppticcttrooGnre-tqW**"7
Cussh*X'nrA6'Uortt"rG*tx+
//g+ lltgs h..,r r-r{*ias Brtca'*'cu'"r[raro"k \',

S*"3 116g1
not w'
-
- ^x-gallersale("sttc, t{'n,4pu-rr$1'',*^4i.
**-l?:*
S*"j msgz = *r'gerflrscrgelsrna', t*r,*ffi:rftuti :].' -
gaMessagq(Sta", null, "dek$
F"g
st"tq
mS03 =Cn.
msg+ - c*t"
^35'fl1*".ou*
xoMerr.5't+3*i.f,k^rdtF" ms6rr') r))
// D*.top Srctng Farrre

JFlc.me jp = rrc,o JFrameL );

G.rrcutr^r Q =.tF " getGrrenrPc'ne t)i


/lL"tore bm6 b$ gLth"g lc.bela hro 6c$ru-ed
aocs )r.€<,ro,<c ) Frfl

gc- = neo JBulktn (ro€'t); Snitet \21<'rr< . J to<


!lo<'*rce r"t-r''
cs"'rii '
XBurrcn tV$<

z) ;
JBulkrn 62 = rgro fBurknn [rosg
[Bu-rfun b6 : n€r, JBuilo''' Crnsg6);
(rtsg+) ;
JBu"ttuo
[4 = Dcto Jl]if(I.,

cP'serl%oc,r (neto FhaL"Sr'+


t) ) :
cP. crdd Lbr)l
CP'add [ba);
cP'&dd tbs),'
Cf ' crd d Ll"'r) ;

jf,- Pl* C );
iF'shococ:j
$ //mc"n

3)lu"''r

I > iavac 0erncc-umJ'Javt' (pq fup.- h-FP 'P*t""ttq)


*pp- h-FP'P'"{*JY
o ctetocu'Jnr f'' fto [uses
llz lav

["T i'#:I'o: I' tuses hP"P'r"d"r)

...>Ctx"qct&ar)t.)givessPrx^€Beac,Cr&ssohje0tSirniue{xctr"getflctsc€e(-'-,-,)31.,€
4 lhe Wwa rtc3 Bre besed c't
rhe gruan ket'
Vdxre
r d,r,
Can gOcl ComFc.re &aoFaUzry Ccoiaine"{ crnd Appticr*t ctn Cc'r*e Ccrr*cct .
' "

Feorul e BeooFe.ctary {pp[tofkm(onRxl


' Nirin (l
betro mrrrn l-i'r-H- '
J
/ t-ffi ,*ng rnFr*r <m
Yes Yes

Abiliru rD uxJtElDirh rrr,rriiple SPnrt cqg'leJ


No )es
[drh Single ln3iance oP Crnlc,ina .

spnog
pre-iosnrn$&tton g+ $eana ,\o )es

Qecegnizattoa 4 phcebode'< anl pn4rt'rrofirts


No Yet

i\6N swpct No ^ie6

\llt,"aUg
.,. N0 )(s
*WtiotronEwru
No ) eS
4,ro*r1". 8ean fun P"ra,o.'{ re6+ht..Hc,"r
redst'oxan N0 1 e8
4rrmnaiic EoonF.cn',jPxtPrucersc'l

coocruiicrn:* tdure usrn3 fing in rneoot."*:* ,Tff;-X,#P#-


' cln v.
u-L'
(t'ses lert mern6$ )
L15mg Beo"FttaSCon'rcr;n'aa

&*cxt Cont<t'no{' *Evr"i'' the lrnae]l 4atat'rtt "'-


,\pucc,$on is coJled
+ Actr,'&rft:r,ret - ;; cornfxmenr/"?T

Corrt<t'oor \5 t+r'ttea
0r
\qic,gtpYre-,r,EY&trlspise-discc.$ea*!o**..oA.unt*.T0FrP.,,.Dttuspw.tth"dr5
Conrc"t
' vlhen tte $pU*f-*
tuX q1ed E\tflrlistcr'Cx6 rhis APr,\icartoEr,t'*'
\-l be raig,. .Je
@nhr.nale
*wpucarrox]b'ent
cdi
crncc'nhoP -
Stcpwd the tDe 64$ rohce tl^r
fnrtu: Prot'*
4WUatrlc'nj-'*rer' mccle'
Crre Cc."\ c,-se is *rre in 'f..on)n*
fne AfplfcoffcroCo*e"tGnrco-'ne'v
trrC ftc'r
Exarople A0PlicaHoD"-
lsr alpn w"dt' ('sesl) on$' se' coYrrxi' ht'Y*!
sia-f,".- Keep imelcrrnxlnj
c\c'rs
L\$eoo
*,.f;t- Wi"€10? sPrrct'ffi
/ llgl;srrnet"'lav a
imfr't org . SP " &tdext ' '(
i
irnfrnt iav& uh I l
'X
R.Lb\i c ctls6 llgLisrcd{ irop]errr.*s r!,p l; corr o.,Lisrcne,f
'- 0
1
tl: nt o')
[1' . ;'' #*r..:l' - t"t'* ('h'errcr*r"r'Ert

" ' \'


{
'.
i-^,r
-.rr*
E,npsr op
zr* l-1gLsttoc^t clcl\s ) )
S'o e 1'ooAfnlitatl6nEvt!-d
"
) I= -l ) il -Tl
i F (ae. h3r,i ogt ) . ndex Qp (" CmxntP.
f r-,-s be d Evenr
.tffi'
{ f'lirrle ( )l
$ttime =Sgsrcro - currt(rj-Tlme

s'o'e(" The Conr<';rsr i6 g'f6rvred c*" +rr''" brcO):


' ! ^ Apr ")l=-l)/nlt'&nfr')n'o
/'
e6e tf (oe.roSniryL).in&xOP [''Conre*tC)oseaEwnt '"" ,rstorto'r-

t ^ 'r: ,\,\lrir [);


endnrne -- Sgt*^' ccnronl lirnt

can'{d.,n?/, is sto?d a}'+ rr"i Doreo);


["Tt)t
S'o'P
(.0.r,(,-IhreEr.FenfCodf,dw^)6intunnloSrrod'e&n-+Ccnar''.-s+ti'a
+''t,seas" );
] /lt"r*oa
l- )
t /1o"*Pp}carr onEw"t
& /Jcratl

hrc'
sp"n{€cfu
the ot$re Lisrartr clc!45 io
' 6,.pg- cooggu'e
4'-' f)etrnCtA'nml--7
z'trrttPi "-'z
LU:ao|7 " r1$Ll'rcre{",l Z

Cortdrx
- 6k?fl; A4,l..le *pprlcc'ncmGnXxf
' -+ gprrogBan cot, l^lau. trm crrv-de6rrd merbals qo Ukcgde rrerbode.
O inrt liftcXcre nt-rtrct
i Gotcrrrxrr execure fid5 rre$ocl r;5hr oPxl Eecn lnotrtnJn'aHctn aod kgrdeng inie
-+ ThiS mertnd is urefur lo c\ecr ororbe{ ryeorn D?gtthea cfll_ asalgned ton*> J
voll€d vatue$ o. not. Tb i5 ols0 qjeRx to checl coeorhe'{ wnrd'tarl
J
bean ptopo'rrre6 ar< Asai6oed Dlrb VoJues ct6 not ,J
@ a.sr.og?il liPeqcte rra't^)od
6pdo38ea"o*oy
-z Qqlciofa execuns *L}s rrerbod otco it i5 a-bdl} to desr'og ocrr
+ prop'*tes c'od tel ease Dnn -Jo'a
Th,is merbd is a:cfur to r,allih beon
<;dbc caat elal )
Ye,lcurce6 cjlsbs61&tad u:irb Spngbeans (urte cltxin'tr
rnr.r,st be sPecified io Spr;rX&an d"do$ conR6o''cin
-These cgde nerho€l
too )i9e

de*rro5-rrerhod arh;buru
u( zbeon> la1. .J
Sf i"$ cPt $ re crsin g ioit - rrettro d , Dr.ftttF--
'
vi^rrd(--)
'/!l{t$dljf4
'qAtutd.\ y )

S'll'"r' *arY
Exorople nPPqg*tg-:-
Pr.,---+
v a4:"(a'J* J
/ *rrro'Java'
c
pudl inrrkce Dero0

{ E*,. $n.,$ ArXHel\0()l

/DeqroDeao'java Derno
mPleornrs
RrDi c ctoas DermBean
i

t 1trt.o" trD?'{to..
r.l33
povole Sr"ng
ir* oge
P"uot"
Sertt^a ( gefeae

//oscr -&$ned iru r l;Fe c-Nc[e $eAvol

prblia loid roglnitt) ttrruos ErcePrkrn

{ ,.o O C'De.oogeun I rn3lorttl')I


V,r,&rr19 f if tas..=ollrns$==nu11 )
to g'pr'g')t
ffffi; t ffi- n,- fn..r,r* f"s.. p"1,'volaer koo
ll use, -du?;rtJ deshraj C) tipe qjcle ,rsbod
Prbic vo;d deewog t)
t
o

S o.P (" De'ooeon: roSDamSt)k),1


rtrouaro+ttt ( age= 0l I nulifurog
lt.g = eurt ;J Beon Pr4wtiel '

]
.irnPler-oenJcrH c^n
/lB r.r$oA
sag l-let to t )
St'rina
Pf,U.
rcr{/{ n
,,rrr5g"= "+msg t'o'ge =t+aBe;

<l-r spnogch'xml-- 7
, --']*psr'g;
.',
s
s
II.DACIIPL " dgwa5 -rro-rnt(r
Lknn
^;;" -
clcrss= FrooBean
" init -rnef{iod ="mgJnlt
ifl="db"
fvtYne
$lue="&'lz
4/'J'Jtrl ='aW
{o[ue fello" / z
!, /-Wp4tttl nome ='msg-
="

.* tlrran
Abeaos>

/Droo c t; anr 'javc


(coo use ao1 Ccsnfa'tnax)
&me ot $rst oPPliconttn

F.6lic clos5 Drrdlien'|-


['
P rn (5w;r5ll args
5v
(
t
d ')
//A*ut* sPog cooktlnv
r Cl>. =(Ylo fpsskrM.nr @ a4tcoCanttt"r (i*";it
Clc.:st'jbXro r Applccri'ion&rnrrx

//9q ,$nngBe"n ct&ss ohje{-


"uoui
kmo = i*o) ux' getf3ccrn f'db" )l
// cau B'r*-rfud ..
S o'P (bobJ' sr'dHe\toc));
// cld€ c(r\-Idr\c'l
. ? l clx'closeL );
:l
*)
ig- Co"*rki
iP *e
'rt Appuconc'nContscxt Conlcrlne\ &d.t
C$nkai$el ft $ear,FoU.r,X CdrrJro,lhu then
glx 'ctose( ) i o' the end

c.,q f."tot. duwo.y$ingteronsf


'

),'
lzrlb;re Cooftguriog pre-deFned, ftrrrd po*S 8.rpp)ied iata clc.sseS &s sft"r€E€2n5
__

in 6Pnog Coo€igurotloo Bte :aer*iftcoticn oP liPecacte cocrbods P"or'r


^
t': tt^'n..-1
hr$. no.o? w;rhocts #nt art ooojlobte in clcrss i5 P?rcticcrut
tiPec-Scfe nett'oda'
rmg &"rger fa don9iSue thete \)
n6.telq lrr$ramrnol
-.l0 to crape 3pnogBec'n
cra6 \-/
Ovcrcorne *,rr p'rutt"n ib is recorrrodeJ
\-'
impleroer*irg fu)o Sfr..-i..1 iner&.cas(rrr*o-0-iziog$a'nlDist/o6ibteBto")'
CI9 rr,ltunalr f,'v 't-'
ond [Jc cen u;e rned^]ocls of these +cm interPace
. \.i
trren-deftncd riFeqcle rrr$ocb (*o,r#&*.-\.,tt)d$hrr' t,
I n o*to *"1"d
inrcTk'ce gitca aP+cllrrynal( v
O*€'5P' beans, &rm''y 'TniHalizir8&an
Dxrx.,n.tsean inrctPece 3!us -
,rq.sp beons. &*"1 #J;tl o,^u*noru+
Currm - dertrog Cf mer''a' a ' \J

-->r,hl* tJfiung co\rh thesa tco ,'frF'eclg


thre isno need 4 CoruPiXtontnl \r
rmhoa n@rrr3 \n 3da$cq hre' I \-',

Bpa"gBea., h*itts not


6r'-n&roru *.',**errttu3p'{"3€e-'-
-, pOJr cIaA6 gxn acr os
irnpktrr'n6 tht-abn
\-/
clccrs
rrrurrt be a FIo clolS' ruf'c', S-^6Bram

Jtoo i^*rrk'Le-9 *'ao it c,.c*t


ot mn-PoJo clal4' :
* -*^
-> r? sF^r5ftan crors irnplerrnrt 'Y:.* *"#'* -
bthuinbe -
€xe-ulta' tt-- \-''
Gw"tiPec6cte ftpkDda t+en exs'ru NH
geu|lt) a?r<^ gft<"ptq*'$uS<rt) t Cusn"n-dutn6*'fie^ v
dur'o6t)).
Egl4g-g0t',- Du-o .jouo &mc ag pre,lliour o{pn
7
/ Denno{&an .iav 6r \r
lr-rlCtc Cl&ss DrrnBeaD irnplcnncnfS Drmo, }rlBal.i-ang8eanrDfro.flCcBeen 'j
(
\ ilfk"n Pqc*lrr
\?:
ms3 '
PnwJ* SFirS a1e'
Pnuara tn+
Senrs|Aatt<a
:
public sr,if g sc4Hertot ) t
1a$e I
. reJur ri rrrs$=" trns$ +"c,ge="

grit' . Voicl d.^mog( ) ihruos f,rccpitan


a
9
' So p('l)rroBeca,, 4e"t5cj'))
afe= @;
rns$=Dtrtl)

3{- tln"* LrtcEtlc"l


frultic Voia ap+trP.q^oSatI
{ ,'
.,et'P,orn'o1*9*t
i'):
s'o nC }rrroBeao

iP la3e<=O l\ rns6'= nutr )


propvr'l-ues h Beo'n W'rU
thrurl ntnr E'rc'crvtr("ser
g
3
blr dcr"r qrc'fo
Zl-- DeroocPg.xrnl--) Same ae fnevidr-s G.pP')' init-rrrrha:1,

derrrug- merhoc\ at+nbte8


'

//DerooC\ltnt'jcrva Same &s fre{ious o{pto'

aP 8$r€Bcan ctasS is not irrp)ernmHog Jrudd,ng&qn) Dis{bsideBean

ax
tho oo[ f?rink o-ba* Can$gurin6 Ce]talDvts%ocIs
"*.rft.ces ft Contcnn6 oDlg &YJng fcqptied ilc'v4qa-Jt€J
Crrstuyn-liPeqcle "yr$ocLs'

-a $rn.e ftr;rd pawS *qplie cl c\c1*e5, EF St4ptirJ clcLlt?-s Connol- implarrrs


Jn;rfo.Uzlng Btan, D;"&,nst6teBenn inrcvPcrres, So ConPg&ft
CtrslcnDl;Pru'6Je

rrshods 6fule oohry 101$ @, those sP'tngBeoos'


$pr;og Ergprrs I rrrodea sP Jqizu)cro:- Ot/oa/-L:

,) &*tcl Inig*tcrn
U) Grrsrnrittl Jqjeotcn
3) lnrctk ce Jrueucr"
Jorcr&ce Sojeuicm '
Xx*A,mre ;6,P1ftccs tlr can 8o &rr

onlg sPcfrt o\i lo crle sPnngBeaVl cU6


q$t4 inrcrft.6a iqeuloo Loe can iniecr

PYDqrrneS

[xrAware lorcrfuces aYe

t 0q,59' b€4n6.{}.4 ' Be"tfom'9At""te ngBean da'l


a^;naBea'
gPri e)as
ccnloi rr.d fu
1 eYtr
useR-o lo irllectr &aoPc'rroq
-,
Cz"*c*t Aoow
@ Or$'s9' ccr&tc^t' frpricctrron otox
fo cr!'r qrongBean
cdrfctr!"/
---ruseftx to iQ)eoi A{P\lca$croGtr*e^t
w
(| 016'sF' kc.ns' &ci6'3' BeanName'koc're c1o''rs
bmn to SPngbeao
---ruseftr Fanid Spnng
to i.Ue'-r
o(.Js as rgn-l?soddJ3v
d-.'{ q7$nggeo'n ctbtg
inianoo 'J
tr*.itC penPcrrriog Intulace
\J
EromP\e AT"liCorbdr'j

n*"** -ta'&sx A
e#xibt&'w
xOIEl- 1y6rg1-, Zr*uft.re Qec-tloo uie ccm
irlfc-t Undertagiog carilftJir*ta t-D
uge @old'.^o* *o ktrot'l ab<* d+fr Vatr\L
ftnoggean ond coe can rheee

Setng &"rn Clrrrenj frninSBran c-'E,rs'

[O exArnPle o{ryn oo txl*.r(z,teateaf{crn .rePfi &pPtr'.(rdatrl


vr'xrdituf smil.
i
J-4 IP U* ur.Dt.hD 1r1n;p Q61pfto1-rrHe$ VolidcrHon 1og;c crnd Jn-rncr"l-;ze,ficn', 165;.

&tilide rhe Spnng8caD cl&sses coirhqt d-;srn-d;og tbesu-uce cde 4


Qristing SpAngWnS *ro coe C1n &se Speoar &va cla'ss au)Dg a-b
S BeonPotrfioc.ssc"r. % *r;^ the cless rrxzst ;rnplcYDenf
or5"sf'kao"'P-''Y!
, *-b*tl'",:::zg)
-n 1il5 frwrk'rc cc'rlfcr-ios ? rnert^,od6

O puuuc obre* posiP.c.,s&e.* In;*x'o*la''COaF'


-
P'?t": @,,m-,
ref,."st',t6 qtdru06io Oqb-/

d,.gtt*-u7fue4 a
-- useftrr forrbdjftJ EaoT P'pr'xdq opv'
(O*t-Lff'*"'*
(1) por;. obdr.i ;rrurP**rA?otrdrroliz"orc'D
'r"--- ' d-o{'
ffJLtl..'loafr('
';ov n/:t'lvd'
^A(&RS a?w
---t ccrstorn

+ crscft.o a -o5fu tseon pop,rrt<5 c&rct ccnpleu:nit-tarzanorr-


avt syra$cd to
r€Jor€ct l6rce
aod agr P*r'fr6fuc')
|9f- Crrsrorn initt ) rrrrbod
onreSpnogroecrnd!r'eag$eBec'oPtftrDdsscd(*'"wntcl)or-/ir{{ils/eLotzd
SpqBrans)'
orc cc'flmcn4'r rrurlple
{oqrs

E,rElornpleolPllca$anan&anPcgtRocos<,/,.*"-.*-nka*ts'|Plrrnl-vuk<rrU
h.acr,t $v€n
on oi"loalrota

acdoroolicao3'"t%-tt^t. "l--*'t*tt
-:7 AppticcrlicrrrConrext'oolcdrE F;a
ctnfig*'L^ i'r giag&fi8urcrtton '

BeooPootP,rcess.' \ *ao3 )bB

hlhls i,3.nkjog ro,fi fJeo",Fc'ct*5 c6n-t6rn&4 *t r":*t*:ej* 'flf'i.,t'


(-) '1!1\
nrr6isrc.,,ed expildr\ h or"'9 P,''roir '
oaaBeo.-'PctP,octts
I

to 6^k!lYtc,t'
SprogBeanLlPecgcle DiaSrctrcr N'r' BconFecto'U
b{
Hx
<-- -t-
trF
3
,-----..--{ \

q
F
o
a
;F
g
d
c./
l.\

ig=l lE
lAEl le *l
Fl E-
I glt
r-;----1 lETl L, .! tF Xt
5
lF ?1 l.l rO I /11

gl ih$\ I F -ai
l?fl lA ^Fl
s--'
rb

IE
I C Jl I tr dl Izsl ree-61
EdE
vd9 R
l?B\
'---+ ;
I r-'l
lsEj .(
a^. F
C c-c

j
d '.--,
ts

/--"r 9l- f F-d


lr xl 4'u : l}+l I
I I
l]
{
F.
I \-./
o
leq {1g' l}-B.i I I

F
g\

IIl-. t^lFl El
I

t l^ h' 16
,{3 L_l <.v
A
?l 9-'F .tr- Fj
5
a
a r
i..-.
3l2DO13 9:21 AM
'l Spring App on Interface lnjection and Bean posl proccessor lmpl
2
3 _Demo.java_*___
4 public interface Demo {
5 public String sayHelloo;
6 ]
7 ------.-------DemoBean.java--.----
8 import org.springframework.beans.BeansException;
import org.springframework.beans,factory.BeanFactory;
10 import org.springframework.beans.faclory.BeanFactoryAware.
11 impon org.springframework.beans.factory.BeanNameAware;
12 import org.springframework.contextApplicationContext;
13 import org.spdngframework.context.ApplicationContextAware;
14
15 public class DemoBean implements Demo,BeanNameAware.BeanFactoryAware,ApplicatjonContextAware
16
17
t //sp."iat Bean properties tn*rat,* fu ffi-"', e";'l'ffi
'18 private String bname;
private BeanFactory factory;
19
20 private ApplicationContext ctx; -
2'l
22 String msg;
-23
24 //setxI(c) for setter lnjection
z5 public void setMsg(String msg) {
26 Systern.out.println(!!D€FroBean:setMsg(-)"):
27 this.msg = 659
28 )
29
30 //method of ApplicationContextAware(t)
3'1 public void setAlirjlioefctriqdffFtr(Apptieationconten dx)
32 throws BeansException { roerlodS SrlPc'rnoi
System.out.println("DemoBean:setApplicationContext(_),,): oo
34 this.ctx=ctx; \n\d +4Le lic*t
35 ]
36 //method of BeanFactoryAware(l)
public void setBeanFactory(BeanFactory factory) lhrows BeansException {
System.out. println("DemoBean:setBeanFrctoryC),') :
39 this.factory=faclory;
40 ]
41
42 //method of BeanNameAware(l)
43 pub[c void setBeanName(String name) [
44 System.out.println{"Demodean,setgeanName(-),)
this.bname=name;
46 )
47
48 public String sayHetlo0 {
49
50 System.out.println("current bean id,,+bname);
51 System.out.println("current bean is singleton?,'+ctx.issingleton(bname));
System.out.println("current beab is prototype?"+ctx.isproiotypeibnamei);
System.out.println("all beans are',);
54 String idn=st(.gglgeanDefi nitionNames0;
for(int i=0;i<id.length;++i)
56 {
System.out.println(idfrl+"....1.
58 )
59 relurn "Good morning:msg="+rn59;
60 )/method
ol
62 i//class
bJ *----DemoCfg.xml----------------. --------------"
64 <?xml version="1.0" encoding="UTF-8"?>
65 <beans
66 xmlns="http://www.sorinoframework.org/schema/beans',
67 xmlns:xsi="http:/ wvw.w3.oro/200 ,,

68 xmlns:p="http://www. sprinqframework.oro/schema/p,'

Page 1 of 2
31212013 9:27 AM

69 xsi:schemaLocation="httg://www.sDrinqframework.orq/schema/beans hfto;//www.sorinoframework.oro/schema/beans/sorino-bear
70
t'raH cm
71
'Ee!jq:ll4 {q$='My?r999!!g{/> ,'.J Beo Post ?roccssrrr ConPiS
72
73 <bean id="db" class="DemoBean" >
74
' <property name="msg" value="hello"/>
75 </bean>
76
77 <bean id="df' class='lava.util.Date"/>
78 </beans>
79 ----DemoClient.java------------------------------
80 import org.springframework.context-suppoIt.FileSystemxmlApplicationcontextj
81
82 public class Democlient {

84 public slalic void main(String0 args) {


85 //Activate Spring conlainer
86 FileSystemXmlApplicationContext ctx=new FileSystemXmlApplicationContext('.\\src\\DemoCfg.xml");
a7 // get Spring Bean class obj
88 Demo bob.i=(Demo)ctx.getBean('db")i
89 // call B.method
90 System.out.println(bobj,sayHello0)'
91 )/method
)/class
r Prwess<r{
94 import java.utll.Date;
import org.springframework.beans.BeansException;
96 import org. springframework.beans.faetory.config. BeanPoslProcessor;
o-7 public class MyProcessor implements BeanPostProcessor {
98 @Override
99 public Object postProcessBeforeleitialization(Object bean, String bname) throws BeansException {
100 System.out.printlnC'MyProcessor; postProcessBeforelnitialization0")l
101 if(bean instanceof DemoBean )
102 t
103 DemoBean objl =(DemoBean)bean;
104 objl.msg="hello1"'
105 return objl;
106 )
107 if(bean instanceof java.util-Date)
108 t
109 Date obj2=(Date)bean;
1 '10 obj2.setYear(130);
111 return obj2;
112 )
113 return bean:
114 )
public Object postProcessAfterlnitialization(Object bean, String bname) throws BeansException {
116 System.out.println("MyProcessor: postProcessAft erlnitialization0");
117 return bean;
118 ]
40
'r )

Page 2 of 2
a- Fcrcrorg Becm : - oalor/rora
-> fP Norrrar 6ec(n i6 ConP;6ured as De?eodepfBean fo Beon pop e'rCTen
.Notmar 96..r-, class ohjed uirl be initucd d;rec*lg h ka,o P1.?)Pcdtg

"---- l".rtog tsec.n \s a bcan lbo-t 6enerarcs rescrr}crli ohieci otLro46' aP FactvgBeat
is Dor A(
con86u'rd a3 ftpn&ntBeon tkn FectogBaao c|oss obect @il)
bt
iai€Lted ro gc^'r'6c/.f€d bg Facr<q8ectt' r.r:itt
prufrr61g lx't lhe rgutkniBecrr)
idet-rtd.

Eg:-

class ='Testgeor'' /
z
/*qfi id ="4b"
cla35 : PcnoBerto"Pz
L**cto id;''db' ' I

7
zFrB^tts rp'me ="t1" r€P--'rb"i
zl&t'n> clrrss
El pro*'ag o? kmoBeon
+htn lbe "61" lrrutu"d
iP "Iest8eap" nrrrd fi^mng!ec'n
'TestB€on" cusS Ohj'
(oirl be lqjetrtd u'ifi 61619 toilt b€
"L'' P^ru"s oP
ip "Testgean" b s Facfo!$ "*'::."
Bron rben the
b: TestBean
c\oss
lnr4Hi coirh rhe wsulhnJ obe{r $t''tn o - - ( rl
.latrr"iLia'n
' ' '
trnplerrrnr' O-'S''F ' bean6'fc'ct<l't
SprrngBao brroroes F.oorg Bcar,
ohn ib

Til5 inl(t%ce C6ofr'io5 3 rrrrbods

I r€rurns *. ,*'*1"1,trr".- *t
0 g"rOhir.tc
4 rs
rerulr),5 rhe
tgPa
----- i5 si.rglercn ot rnf
@ ouObtJTvt'L') hiet*
YLsa lKrLf
o
tl earbe-r
L) reJLc6n'9
@ isSi"gtto" -t Qocxrrces oF rbe
aPPt'cafirm

Ne+Beao 5 r) fap6p,,lavc (sPingrntoFr'<


tgw: [DEs)ur Pc'r &vc'
gftrnde.o,iava (sF""Sm
5 (orc'cle aNP )
vendor'. 6uo11
sJ ftmoCPg'rmt (sf,n'rd fitj
Ve{Sico: 6.1" I
e*oBS' jara (cticnr Arr,.
+;
66ren 50trr Ce
ex a5 beilts-io5el^al TSi q€an'J&va (h.m'5Bc"n)
U'*U GtassFsb G)

to claorla'd slro : wNN'nerkan6'6{3

Po ducs, nnr^r' rrrbeans 'cng


, *) proredrrre io deaf orirt Str'qg oppn $0+ &als 1r:irb use^deBrrd F-rt r'gBeaq
derrlqarertn bb rrsrog rKtbeanS 6'+'r;-
5l-c? -r :- creafe Jcvcr pyqje..r in Netgear)s tD E

Fi)eHene-, Nerr---)prqjert java--rjava oppttr.,u',-lJ Pvq.,@r^Jar'\€lsY't"soi! ---

-,---, n (rro*c nain ctoss ----+ Fn's h --


-
lg-a;- AddsP$aS L,Lrttlce l-o *x fr'{)qr
l-iUrc,'l<s g,anO
Righrcltzb. qdd L brcyd 6pangla.ro e u:nY 2 5
"#f;H:f-_=* ---,a *$rr..
stcf-Il:- Add rbe alole 'javc. rescuxce6 to Pl"gs&rdor cf $e PrDiet4.

Qinnrcff .fo on Sur(( P\'g --3&oof5rl'\&ar-+a1or,


*Yn.., @
/1 Dero
-)NctJJ
c' o 'J G!

llblic ir*crftrre Derrrr I


prrdrc. $*n, srgHrttoC))
.t
.Y

$c0-AI P,ghrcrrcf ctn^ Sctuxc€plrX'---- rrle,:------+Jetacla-ss ------'


cLo$Nj&rnet-@
//ormo{aeaDicsa
irnplernenrt [}- 0 $
Billic c\&!S DerooDeatn

t
a

Obrrf ohi;

g]l-KK
{a$h}clid{-_-+ lnso,tcod € ----+ok
-)
ttMse*c.i nff6od &L1rpcrrttaS Sert"r-x irarerflan

prbri c V6'd €elobj t Ob#,j oUi )


{ ,tu.' 6*=cbj )

t
rl-UbleltuC) [-,,^,,
Fr.blc Sh"nO
.' lef,u\o "orcrrd rrrnlq --f*i
.6ni'h$rogLl"
? I S.o.p{"Obj (rou naftf '+o$,gcrClat5() /:
ekpr: p"..ot${5pac"raf ( ---------tNCro _-____r J.amjtcdj -___-r c\&ssNme: @ ]
,/-/resr Beas .3oyo
Frbic c-lars lestBcon inrplarfrr,is kchoqB€a.rx
{
puUit, O hjett gerobie$ t)
thvdas Llceavtc,rr I
"rt*@Yn neo jc.va .utir , f)rre ( )- ----l rerc.vp5 Dafrclcrrs obr c'J the tIaqlicnr
'bi
pDrfc Cta:s get0bjcr*'13pe i1 i
refarn Dr.l^c-cloJs " , sp€cigica ttr tgp. of rbe Qesclra* Obocc
3- f1
p)ci c booler, n isbirg lctc1",i l l
is Slnglcfoo
o @.n tnre )--.gpecifi<5 rtre rrstrtrcru obje.t
eope
3-
1

f/ftrnro6rmr-;ava
fllldic C\&sb DemoCUent
{
' P. u ,o Csrnngt I &*€ s )
t
l/A*'vor" sl'ioS conttinet .ffiffiy,
Cffiffi"X-rAqrlicrrhrm 1ffiu,t',ca*lor(oruq.*;
Cavrlexr crx=neu)

/1$ct Spnng Wc'o ttLiYils cr4s [,,1

ftmo bhi--(prno )ox - g.,B".12(g; il..,.,,0 c# DenDoBecro

3r:dtotodtl f -O&.r
,uo ("pj,"u n id o? TesrBear)
= crr.6e*8n .,
-
ftFffi
the Qesc'lt rtr

g@q
t0,ro-.
u oul - pnn*ln ("o4, aoll;s\ou; ); 2.c dn iYLdat J
,
S o. -,. -,...,
n (' obi
^,- nam€ i!'
(tc!l'J ^,.*" , obj ./,
'. " + -Lr
ta l< C) ) i:
gcl rCl6$c)) f"fr9l"J -1 Pun
/i6ou B'rnerhoas -rn.,;^af^@,
*r6trnwr-
fll-i6J-- ot+
Sr,;ng resrtt = bohl" 4gtlerro OJ &/*eA* o' 5'eP5
8.0'P (" tesuti i5: '+rcvrlt);

P-fl :* Add coog';gr,rotltol 'B'e ro tt'e WW


6tcp-fl:
==-,tr't*"t"t@
lrro ggftl..---> Xr"r L-- -axl{LDdqrrfn'f
R'c cnn Sartce Pltg s ---t -j n€lb '->':
nex t r @ DrD -crrr'sla'{'t DoC4rne-rrf
-=, -=+
ff)p,t4Jic id : I -ilsPo.^.ro.D// 8€one'O/FN l;"; FntSh
DrD
g{
strcl id t
p*,: -+
Do&rrncr6 [-Ue"nS I
Zbeans >
z*rLy1 d:"tb" crast ="Test0aan' /z
z&n "do'' >
,*i*., ;:Je; 5q*e=
;1 = cl&ss ="Dcmo 0eonn

aLEcLn >
injuled I)ak l:Xl"'i5T3:tr,
""1'r-ti:: os oba*. 9, cx^is o\,red Qc{rtthr t$"e
llkt'ns> ohi r,:itt ,rrt$ Dc*. crc.,rA5 oh-rtrr
i; $(PvEt;- Tun +€ clicni o{'Pttcdt{dh
AilhlcfrdA io DernocuenJ
f)'nFte
";cNQ -:

the prrrdeAncd SirhgBrrrn Cl.o:Se: rl-nr q'e del,Jorcd n g'1,u * %,*'u,


tro\S Ond erc. ^ crre desiSrrcd cos fc.cto"trBeant.

4
O OrB.sP .irtti . @D CrdiohjeltEctogBe c,n .

firuFruoryBeo.n
PrDr r€$5rrg kcltrvutJean arl exz" '
4 rerBeon LDE
loset cornrmnd line oS(.rocftrs rc$e cq'Plico$an
: O*nocj tcru-
---=tBurl- ffYioclcss rr'rne
Bg\*cticr cn frraierl ' irrofr/fitza orqu-rneffs : laU tt 1
-ilrda---rft]-l.-\a^ ,.
'
^t"r,r
&.in 1*, dr,r-
\)

/Ltro t-tlirin$:- u
is coged clir)Dd '
'| '? '1^-11"r'\ €eo.P'aer'kr
+ prfltnnnio$ fti,ccritndecr{ ArUe{-Foq "r'
^ .**'-,^^
\-'/

tLt ctiiq ' ")


Tlere or{ loo rrrdcs to 6rrrhrniog
'.- *r, coining ustng \J
0 Elpriclt @rring
be ContiB({ccr
cor.,$gured -"t o
e^rllcrh
'+ heft
Lo'll
J
-1"o.'p"'6r'tt*s
lsmg*t4>, z0.fwrt'chw-arg>
lc..3s
'J
@ *uto -'o,ng',- ..^^^rte conBgu,rzd sxpucttly
Wy:^ .J
po{unr1c5 @;11 oo
-r krr.t lroo +r.r Lran V-{n'n"A
zvan>k$l

-, ffffi'T," itr ;:,ff"5..*-''Ie' otn^hj!<-Q

lirnik'fico orirb Aryldg [" -ftt'rocar'l'9


lsPoaslrole
4,. s,-ptt,
Strnpk' sl-ring
Sl popcrtles' :
0 A.rrotoiriog ir not l-tss)ble .".^
6n
tgoe fao Wft]'8 \'/
anlg - rcfo'{eote
-1ococ'rds &irnacnry
J"6ecdons'
@ &r*Crir,ng ft-pg Tise owbigtrcxrs Sitaolc'n '''
oe Gn€+.coc'1lo" f;re and &-'ua*{
O ro*;""; r',r, .,tt. Y€.odc'bllit,
Crzr/ oaJrore
e@ Ccn rrrrxe 6priDgconr€dnet perfisrroing
We dtrfocoirin$ ln 4 rrndes.
"SNarne ")
@ h1ruo'-e (o,trroo,n =
and &perrlerzt bec.na ias
on kop pmprotics
---+ Per{tnni $nricr lqiedioo based
ncroe5 rootchlr)9-
''
4lupe (qu-bdire ='bTuP" ) \dS
@
pvop'ni$ aod defendc6 bean
an kon
---, Perft:n rrr Sertcr f4jeott arr bc'se d
fuPe r.rlf&-rng
t* ")
(fl cootrrucrcr (cr.rrotol* carorru<tur

usiog pa€n'rfetizf'l cotnsr(4(}trx'


----+ perfisrmu 6l'{$ircffor Jtuealto"o \
''
@ ddodclcc} (a,lro,uir. = "attroa"re<* )
---) crns)[$#*rffi.-ffi) g&rff"*
-, eih.J crnsr,ttttt't
pe,r6,rr,s eiroer
pe,r6,rr,3 |!9:J ir yc, ?cnma
---: a? Bc4o c\cAS Cqlll
iJe 'rt Pcn Porm5 Crn srrud<rJ in'jerHcrn
orb$1,.r

Faample oppt;ccrllto j -
k.-ce)
oug clpp o Ca*"Sl"tc
Deroo . jav cr. S&me a5 Ptati
---?
kmokon. javc. fsv.ng 0e.,n )
Test8ean . java (Pae.de'.t 8eoo)
DernoCPg' xvor (st,'iogcfu Bre)
DernoCticr,t ';ava (ctrenr o{'nt)

// Deroo "xva
6aroe crs {"nevioq'4

/ftmo&c.n' .lrrvt^
flro6
fl$\ic class Dr'ogtorr rmp'lemenr6

t
s

/i*., PrDWnl

JqtBec'rr tb;
l/o-toto* @nsnotrcr

Dean8eanC )
c
*, o,P (' D".6q"*n : e - lr.ftrn gnsw'ot<n") ;

zLJ
i // l- Potaro C$nfiuj.rrl/ Si&i + rab$0e({
arrtrshfet i
EemoBeao ( Ta,B*", rb)
{ 65.o=o:
''S o. P [ frnogs6e" 4- PararD ccsnsrnrohol ' ))
o
J

//rnerUocl &4 &Jfu e'q crl'lcr'-,

firbti c Void SerTb (Tes$er.n tb)


{
€o P("cxmo$rrr' : sfTb[-) wtfiod "
),
lhlr. tb= Eb ,

\
{rrblrc SU"g *.gHa-ro 61

t -
irgra\n tgtodan*r,]tt3 Tqhf&on'nzs $ = "+Bb;;

\5 \-/
// IeltBtr.n ic.rra

Publlc c\crss Test8ec.n

t
/&"o f"fg'nr
3i'rn5 r'ts3;
/ltrts .rsrroa &r se-tttnJ+jcrfirn

pub\ic y6i4 ,.rfitg [5r'r"g m$)


{
llrts ' msg -- n t3 i
]
/ imptemtn-r to $'lngL) rrr,rhoc\
lnL{ic Sung tSh;n61;
a
t
Yefaln *t8i

l' L

/10e.qoCPd-.\*t

2b4o.9s> /
/Uf,o$ id = fb *:,L*-="
Clcr!S-- Je\fl,sc6rt
.;;lt .til l"lto' Iz
a- zlbeqo >

L*c$ id = "db" class = Denro Beao" d-qfotoire =' \9 N<.m6" 1 7


zlbec.o s >
-I ft" ttu a D.,ooBe<rn class B€&o prDp<^!
'fra b)
ood TestBran c krss Bec..,; cl ( bb) rrrr ,-*.hC+

//ftmo Cricnr -.pva.

pLtb\ic clo56 DerooCuen* [


p s v rn fSr*ngrl fttss)
a
L

l/ruivo-te SPYlnS Gmia;rr,t


rmr ftpp)rz''hl <rn Conlex- C'Y"fr
ChssParbXrntftpticcrrr on C:n ru t or-l = rle&r 61og5paJb

llner sg-rtg &r.n rihi


Demo 5eq1 = (gemo) crx ,gelBean ('au' );
)t Col- a. rnettncl
S o. P (uou; . ssJHeuoL ) )j
I
k

the kc'oid ;cr sPdogCcnr8gurc*krn Bre roel be Utt$re ict. otho<':lse q"{qt*),gy
t.H9"
nrJjJ Ic,i\4 cumbi5urry
Oaro o:ire = "4TuPe Codeing ssnngcPg krc".-
//in ktrncfu.xrnt
Zl0ocrype - -. -. z
/.beoe5>
zbecn id-'tr " c1c65 -"-lestBEoo' 2
zfrotl,.tg ,'11ens:"msS votueJha'l-o' I 2
lll.dln=
z-btsrt clcas :' DerroBean " aitrbo@irr =''4'TUPe" / z
id =-db"
L[r'e rhe &a@oo-,a- Lb'fune TastBeaD
zllaos2 ana rfre nn"UegrUh* "br" tgpe(rcstc<oo'

lilrn you CarrB5urc SomeTestBean cicrss 9n rnatiip\c.fimes toirb Efa*"1-


Noc""-
lSeooid's *reo fuTgOe mode c'P autur:rirtng rnat YCriSe CrmbiSt-,.ti Ptod€ms

4xf6&rite : Gmshru(tl COdeing Sp,yingcFg fite;-


D

.{ l0ocrgpe
*t^.-*?:l*{ \ $'ov -r'n'4r.
Zbcrra >

/hn-r,n id -' tr" 61q.q5 =" Te$B€c.n" )


4Pr1J|,eftg rr!mez''rns8r1 Vakre-" t "tNh
Ll?af)> ,_-/
vt I
Consrru o-rcrf I/
z&n id='hb" clors= EmoBa"'" crrl&ocoire
--iR"for
= I

61,d"SB-" c.lcrrs n& st l-r.rr .l--p<rmty;'


zlVons> fonevrratq J
lar-r ing Tat8rcn lns rt, e pdrc,rDfu,0e.

Oulo(I)il€ = or(fodeftCt codo'ng 6frhg Ccm$SLtrafio'r -3re :-

lWo6'2
zb€on 'ld 1'tt' et&16 =''TestBeaD" >
Zl^D[s% rrirn€ --n55" 1t''tote:*bellb" /z
4beao>
id=tb' J ut*te"+ "
z
Ltreun c1435,=- DemoBean
-_-_-@-
arr-lotoire I

zlVcoos>

arrl th.ln SfrA nS Cclnt-cnrr,'t


@ xf &.mo[&on c[r-snot conkan ex{xicit C4mStrufL^/

grrfirtmO
^
$!rrJ to.fe setu4%<rr16n Cfhc",<-olre S1-.6Got<,fnr'r y"tunS
- Qotnllrntilrn J4rurq
:

hle ccrn Onggrre C*ftoi. l$ofrnrf.g Pzn enpbcr't Urtnng crnd Centcrln Otbr'v prrqv'n]<g"',

f. ouiocniril in One Sp'lngB'eoD


ctn'sS '

g Nho. l-{T'rx6 iPcoe coohgured lsrb c.drlurtn"S 4 sxpLiclrc41i'''n9 * ?ffi


* borh orJccoldn5 (taqlrct uridnS
gtPtnta Sertcri{eooo rltq
ry
tre exp\ic\t b-,,iria3 1ai ll ePk l t +pu"a ) .

tolnnS ptfc,-tns Consracafc* i4.,n* tlO


aP both Curfooldng {e'gf'rc-l+
the o.g\\rit m\ng t^i\r eeftc4'
gerko( )r$Uaorr CLocl erptrcit coftlg fletfrnrs -
1? 6*t CLrtooif.og g'rPorcns
Coqsh-rlclor iticrHon fuZ ot tlise Vorsa fh.r the c,ll*n; fh"t fr"&t^n

S?rkl:s'{e*roo 14)\rr bL e€&,kd "

$o'b 66nrcrrne6 (B€onfaqtduco*ccrru' { +oou** cc'ru-e}i csn{-cat.''^ ) t,{rtos


Cu-tfooirYlU-
L0bite usiDg Spriog cortt,
6rbe'r Java tf.hnologies ib i5 fecorD€nded hr placa $e

&nd g€tttn3 Sftnng Beato clcrls oQierr in


logic o€ attiva-Fing SfJ'iog C{tor.dn€/l

one F me exer'l-Lbl crn bloc.k ccri,l e d ccfn SYtucf&i tcrt) 6t Lri c b [ocr<

u,gbgL Ib i5 reroocnded to cc'rt rnebocl C&6) SPnDg Eeao


-+
EusiDess
fi'n"U

P)ace ro o$ivale sPnng Crsoirrine4


P\ace 16 corr b'roertrods
Clio("d App
ctnd ro getsP,loggean des6 ohj of sp*ng8enn

Awi/ tuing frame Eveo bandt'n g


rn crbocts
&rostrc'cfol / S*rf . Ut.r+
&rqe
Apprer / ctgp+ ftrrsrrulcr / slzir..,. blook l initC)
&rvter Prq CorDSr&aJz" I Storic b\0+ f inirc ) serv;ce(-,*) / aoX^x e'J

.)5P Pr3 z-t I PU.t]i c \roid ispfnitt ) L'/"


{_ _- -"--"/.y
- ---'1 "/.>

6h{hs App cost&cfrd /Soui. blocta 64 €xealre(-r-r*' -) "P

gl-rat5, Acficm class Errc*s Auron dass

JsFAPP Gmthulru{ b.rrrrfiod oP


l*. btoc.!-dF
llaocged Sear1
Homged Ber*n
fP Java oleb o?pl)cction u6es opringAPI (rtr"d garg APJ) in tbe toeb rcsoerce pyoflrcrms

tben trne Sp6r€ Apr relarcd rrD; n iaY gle sboatd be cdde d l-o CLAIII;aI H oDd

6pnn{Ap1 retrfid rc4tn and dePeDdent iot Ftes sFnrrd !e crc{ded irr r,]EB-J^1F/ltb lot*',,,

jar fD H to)rl be used bg iovcr ComPt)e"r dtrr;og the (orfD'] idfi atl 0'f" .J
eie e ddded C LAsnpAr

tncby€ Socc(.e pyDgramo ) to 'f.cq,n;ze Sf dng c.Pi. qjar Filee qdded


L6en,ner ft35 \)
NEB-INF \ iU ftraer Loirr be used \
f Se{vteJ Contdod /j5p confrd r€.( ho re<og nize ond v;

c6eg gpring api ')


Qesurtgef ohleu
' so' @e cod E seocl \-7
Reglt 6<t ohieci i6 Dor a Serla\izable
ohJect

problero lbe{e ore troo Goluhons \-J


ove( $e netaorv ' To solve 15''t
\--2
insrcod o? Be$t-trt$et
sola$onO :- ugs Roco6€-rs
6e|-rl lhero over ftp nftocrt h - \r
ood u:e cGo
--'' I?oarsers are Se'rl&li7&b\e ohiecrs \ -/'
Rocoters
Dcdas.{udq}e '-
ou.r ru co,re,j'srrrlqroelrdk
,"__;, ;r;;.; ";-;;,,* r'r-t ?ft "' IdYf 6eft id't/zq,-ble-
Senia-t'rz<'l:teu
(lire ArroiLl6t ord e-rc"' )o'e
- All collec$(In fiornec'rc;r
I" 0*a$rtuc-rures
-> €end rbero ove'r the r8-r{rrcnk '
orare*s . 50 Loe cctn

S0ltrdon@ it good .'-^^ i^rn trkl coorc'n3


o1x'r'Ho"t '{-,p.
1: -
lbop,,nS 16 lrtPolm onl9 Read
-> rP
gan &re
o*tt'-*.,*' B**tPt*H;"i1^f I : R'r
coirh Non- &nr,von'rzed
borh Read "tt.-:"#i::H"*"*:
Jp rou crye \mgnq rd ?e'r*,,m
-, to\th fuocbroruzed 96'655c'c'kc-rf
ror
ptn Smft:rr
rt tt{r{V-,o$ \--,,

(g3:- vecrt", \tosbT&b\e ond erc ;


"'
\-/
ib is rtrt recornerded lo Scnd Pesurr5et o hie4' ftot.
frleo$ougb OeK,"(F- is rgt fie\e \
-)
to 6arrcelrrlcr d;rettg ' Xt it vt{zr.icnled rD keep rhe Ytr$(ds oe
&rrinorioolcr6cr :
pfsci,t*r;t In Col le*rcrrrFrarneux,rk hrr^err..cru< onl eenA rhaf Dc.tt 56-a t*r.t"e to \_,

kem"Hct ).or1t^l .
urtdeteranding probtero ro coPg #)e records o? l2e sar r3+ o$ of ,{rraXlls t 0rra Srn^ct<r6

gFR r s (Res&{rgrr obj ) cl( Arra6l-i sr obj )


q
YAJ IrSa -

V
7\-
<jb I ', Qfnq u,^Jl
ALa

oP 6i Gllosro opl$ one ohje* or


o h me ' Eacr' vecord oP
E-ocb e\emeoi ArrcrdLi
so) toe carl c coPj
Reart t&t csntui n 5 mutliPle vq\ues incluct ing rrxJliible 6$e{5 '
Arrog List dtreull .

e6ch, rtCcrd Of Qesrtr 3<-r to eoch) eleroeDt


dF

aclcL\s
in USer Deened Jav
prob\ero KeeP ec'cb f,ecurc{ vctlLr€s
----> To &lv€ 1hr aboYe
bolur't
oG orro4Li6i cts $roon
eocb elerncot
obreLh on& add IfBr ohjeif tD

thts urel degned &vq cld56 ii


here, genefoJrg q Jhvc{oec,n allli'ng

dn d ]b t5 crued cs v,o ' closs / D't' O ttt'*t


Cvoue Objeo ctess) (D*atrc'ns f<,r OhPtr clcrs s )
Usiog V'o'tcrss/O"r;Po,
i4tc o -lroosFcl Qesul t 6cf obj rtcoxd e fo ,l"c'6 L;s f e leroeD tS

Sr,tlenlBeao (o r'o ctossJv'o ctoss)

pabric ctos6 Srr,&nlBeon :prt=$-e"elA'gSE$e


L>maodi r(Icq
f
/bt6o ftruftt{-ies
int SDo;
SMng sr,&rne ;
Sfrir,g 6cdd ;

// t"ltite ser*s { gen'cnr

...

I be
Drftt6n&cr''Ye 61q6t
to '*re elemenrS oF Col\eu{6nFrarr€c:s6k
!9!E:- ohieLrs erdded
Ohlerrs inatder to &nd Gratricrrframerl:O&
trrY€n c.5 Senncr\iznjcle
D:rro5wuGuYe Ovfi ltre nerrl:o.tk '
Logicto coeg rte recor.lo o? Re"urt& obu tu Att$!6I
6tzrterreruC);
6tt*ctfr rr.r 6t : coo' t"r.ke
,
fiesurr Se-r J = ur' ero."r"6'utol ('e'* * Ro,. St<'ae'rr"i'
. fftrqList o'l- = n€ro ftrrc.gList(;;

;1hre (t6 ne'rr () )


t
l'nving eoc-b ce Qautr&r ob5
ll C* r" obo ft'r D'r'O/v'o clctss
'recatsd

-*n€r' $i2d36-Qeoot) i
5rt,a.nrBeoo 6i

st. e*6",u (rs'gerlot tr)) ;

C") ) I
6t . sersrr,rne [ts'gu6]ong
6r. sersoaa (rs'get6!'t"g Ca))l

// ocrd eoc1., D.T.0 ctos6


/V'o ctass ohj to rbe elero€nr6 f Ancrglisl

ol-add c8r) j

l llroi'tte

'rs (Pescrrt6e-t ohit *)


611 [Awc,XLtsr o4eu )
Ya.ia bCd

55b rqrrrsb bCa

Scrdd:hUd

,,---. Stnce, lgg' Oq;€c ot ve4wserrtlng Single big Valtre bg Corobinlng rntlilp le
/-" frrrilliplt SitoPle Vqlurs 4 YrT l$plf oUrs )
indivrduat lolueg" so, it 15 (cille d \olse Objer and its cl&ss 16 ftrjel
V 0, clcrsg
Eochr recot d cF
----"..R",iiid ftra is mcrnsPevrrg ku'n Pesert,flt t-o Arro4Lisr in
ulrclhs rce,.a
it lslue oh.ltlJ
srrtrrnS 6oe sing\t biS Thjs 6UJsf- is hcrlnsPta rbe oai"'tnxa

ftrroiJU6t Th;{s " Sb' objert iS co.t'ted Dcrra Tr<.rrsttr cUlrr* orqd \ts da*E s coUzd

DT o L\c.v\'
use co]l€c]i6nFlo Dcda SlTQctQYr 3 in 9(I'.f 1>m;eu'1.
!1[ere clicl qou
perLocn lc c{s discul secl d.bc|\r
Arr:- o To Seo - Qesurt 5et objed yeccr( d s ove'r tbe
propetries P'om PrDberries file roe need
@ rLfirre garheriog JDBc
iqva'uti i ' &oper ti es
uoe need !1"+ Dor€.SYtrt'cfilr€S
@ ro rrnrnroro JNDI profr'1ieg closs
uril ' fiop^ties
.i.o rrleiDf'uo nai \ progrties ic'vct "
@ c''"o'nr oP Dcfa
@ rr, sesstorilroct'io$ rc rnc'ok,,o ht^ge *frff'ff::.
q'-'61"1 Og tT::"t
c(Ppn5 io raratnt(err' buge
@ f,lh,t. d'eveloping S'{rniDg 6c[f 96 5ltos
-fu hrrge ctrrccfoi oP cl..c'rc' tolrb
@ mdu-Dt.dn
€) To &snstrcccf 6u&u c-tod ccdoe'
gou use Javo0ectn in gcxl1 ?tDieuS !
Nh€re did (&sctt ftr io
copgiog 116aFctS o?
c\cts6 | D'r'o trt'"s
c0blle
Aos'"- O A5 v'o
Gllecflcfn Frarnet'ct{k fLjasrrucfuYr tecf<rre
tl'uca drcld
lvc r {
Qesoc'rce tDhi le l)elelDPing bcrr ed Pnrieus
A5 t1c!cF\ \ore1
grx\og ftPPf)s
G) A5 sf$o$Bcctn in c.Pfm s
in \+be"ndle
lcfr rrcr 515.tr nJ c\t'tsS
A5 \h Pe'{
bc.ge orroanf oP
re rrn^n{cr;ning
Helpelc\oi6 in &ssicirJrc'c-t<n9' (rfUl
G)
^. cd$rib(Ire rrotue ).
DoJtt ct6 Sinqle &Saioo
lnliniProietr irrPo ".-

" --) J t is based on llvc? ard'itc$Lr{e c'?PD


acfS 6s llodetLrqex
Spriog CcT e n'p'dute dPplic&rtdn

qs yl<rolc'xer fes(Irl ccs


JsP pYograms ctcl6

S&\tet PrDgrarn ucl3 as Ccr"rrota Lote1 T€sou{ce


-)
Pnfie4].App

CrmrrDuC/dsnltq!)
Broro f<" t riodrxl qqr)
Enu;'tunwft(t"',et)
(rrxgtaton @
(yierrrq{ er ) tqt. )
s€kaDesg:
|ff,o*TJ
@
._4r.,_lrl!I_6.,l

:{rnng _ Errplogf e
^
uT<.qC DBs)@

pfogram tD jsp J
----+ Senl€r PctsSes dolz( Qesutt ' using (t+rc$t otfYla!+ts.

--- "tb€ Sptr.rgBeun cgss (modelB€qn) copt{s fhe recarrdg Resurr3eJ obial lo

frwagList €lern&rt6 \ uetog EmpBe",n clca6 ohjerls ,

NEB-INF
closse.s
llr,n8eovtcr fu /.rlr,u
f--+ *.jotLz)
/,a,.*s j
no.lq -;ouq
> l'l o&t Eeon .& \ta
Neb. x rf) l"ctax _,
)
o ErnpBcon .kvq
Pr '/,r)u^ '-J
i* f;qq l! clAss pArH / l--' EmpBcan . clr.r
,r:- l---t ho*r O16.3. -
rr rrr J
hrp: //iqarhtst tto>olPntetlwJ
morn' rtrtl v
rur lrib &rdc,r
\-/
Spnhg' js'l / commdns - logsrnq 'ic,\/ oJdbcl+'ia{
-to ese cless i., rrpwrtt*,-stbe pbrcd io rhe pocra.Se creard
Jqva lerdescrrt
-> '*r#:
S'a'r' Thar mecrns sP cao t ure rc,vc^.#"#1.#ff, nr'"'
. R" ^*-:?;il:/;:::'"
*te Sarre cocle of ohj€ &agy&rn ep<rr crlfrn @ 4 *e pc.feuo, *@
€g
tlnder6taodiog AnretalioDs :-
P^ the Xm) ftte bc"se d
AnnoruHonS Orc ic(va 6+arernea/- and *q clre ott(rnc're

lr\orr'trr., Sesour ce Con€;SurccHcrn OF/ratlcrn5 .

Sgnrc.x :- 6 z Annotc*ioo >


-mme
It is tiKe xrn I

tto rurcr oP annorrioos


O Arpomriong &n ooct'-cn^rortan o't)
o5 javc-'^ ePt dccsrr(nf cttl
-+ useRrr 6\ri te gocrcfi
g"ut'tt''* @F -* @rh-'os
anl etc'^ '
@Po-t, p;'*t
--+ inlrodrrced &om idK!'i'

@ Anrprrruons 8'r Pnogcmmlog


cft oFttolon S
&rr mercAotzt''rescutce
-: useful @Pest"t @Fo"w*"r
anA eF"'
@vetrtde @H,rohli"a
---+'inrrod-uced fi.rq .rdr t's

netr,.Dafa rr4og dc'tt ob* dcto"'


bcz

;:*;il{ nffi:l::'
s'erkrr'ance
-
" *1,": glos to P$cesg Xmt
dr-tr'rnerurs'

),$L paJsct{s c"r€ l'"*tl trrJSh'


pPtttr'nce '
id'l tgood
' --> Aoooraricrns Bc.a Pre^iuititg 4 rncxuPict'trt'n
ere skfPo/'lo$
'ive bsed tm Jdv-l's+
--t AII Javc^ TeatnoloSes irnr arc desixr'c't

A,r'notc^tio's krsed Plogrornicn eic'-"


: -. ,. ,. o.y
?')" ,'{R?.x
8f,83'x '
. $prvl€t3'xand
Ej:- Sp;rya't + , Hlberrule 3'?+' 6tdut5
\-
'---+ toe Con o.q/ptg ftnnofariocrs ol 3 leu€'l

\v
O Besoarce loef ( on c\ass/InrcrP-re
)
: nubod kr'et (^ j*c,*ahoct)
I
- EJ Ferd )euel ( oo llember vo rade
)
-
o+loaluz
Tg GnBgr-xc Sp.;ngBean crteccr) c^e the St'o-i.,3 anr,okrfionE:-

a) @Compooent
rrc.keg iovcl ctcrss os efrtng
Eaon aod 616 &btc'ale fot 21ag6(bi\
->
Pa tha*auocA inPctlon
b) @ govi"
recoroeod ed io use Rt, &o." Ia<^ 81''"'Xt*n\/
(conra'rtiog !as;6<r.s l-ogit)
c)@ Rqrsi'ttxg
fo use fiii DAo s Bne S;mng
Ecme os @lornpcoe.* bL.t vearnco/'ea Be{i-h$

@ (crnla.,rng Peraisterne tqi c)

T0 Frf.rrm deff'ndcrg injewc'n cfus

to iQfa'r $mt1g \dile'/ arro4wlues, Llsi vcrtuaeE


@vat,re --+
@{b*ut , r fu lotcd \o-lues to rePcYcoce lgPe bee'n p'Ffi-e{
---------t to erxf,-ble olrbtoirlng crn b€o/n PrDfr,,/dq
@A*Wt".a
to ,eg d"P&* \bJttcs Era n"+,let)ga4( -'
' tDe 3. ,Stitt Annolaltn' noi reodt
=a-
fine bant PmPatt'cr'

use brt Xr.,r P;rs c'nd z4n"oulong


x) In Sping enviroorrrer* ur 3eocru"0\
tquth,ux ttl p*Rrrm llpn&nti I'gerttoos '

F<n sprrng ?.b tased Ac.rot'.tiring *Pu alpn 0 oP rhe Saprirncnl<.ng h^&* .-
-7
g\,eo cln Or/oa/>ore

--> L? &nnohatloq is p\c.ced e6 fie top oP serXxx [-) rhon il- ]s


@rutoc,:;'rd
gertu( }Ydeo-tlcrq taseJ cru}oo:iring
SoPlr{
ZP plareA rbe fap crfl parorn (crn5hrrcfor *len ir is
@A,rm-i.red annofcilidr) is
cnrr

goP- CanstrLrct-q f,ru'.do Lued arriacoivin3

ff @A,ao"i"a 6v rht t''t 4 Fefa d.r,r1 \t5u fu


r0nno6r6o, i< plater{
&tkx lxe"ncn to-r"J aunotin; ,
or fas/roi3

I Spring 2.5 Applicaiton on Annotations OCl r)


'A
(f
[41pf i rart.,o
3 ------19.U
/i // Testjava (Spdng lnterface)
' public interface Test
6{
7 public String sayHeltoQ:
*)
9 --------TestBeanjava_
"- ' '-'- --
;, //TeslBeanjava $"-
I : import org.springftamework.stereotype."; g€ef\/rce o').oro$ 6r)
1? import org.springframework.beans.factory.annotation..;
-> _S@,{.*a.:rrea
'\,'(* dnrDt<fl oo
' import java.util.r; + Rr D,E -\
t,
fw.t es rte iJarl,r dors as
SPong Bcan
ii gsu*i". // lle cao dts6 place ./
16 public class TestBean implements@rr,gonent
Test
1? {
J:: // Bean property
'- Dated; r-'' iefu,rrnce $e Bra n pmgml

tvpe) on bean property


: W
.- {
?4 this.d=d;
f]
*n
.f/ pubtic String sayHefloo
.: {
il:.4(; _ return "good morning "+d.tostring0.
)
jj)
: ---------Democfg.xml----
'I ' <beans xmlns="$p44g{€pugta!0cwotk.oro/schema/beans" ernce ire a}D't add @ $"uice , @orn2org4.r anmrcrr
air
ir! top 4 predeftne d laya.(t$t , bft clq)r . so,

:i ':./ x1?:1ig'ff,t;"jflffi_ t,r .rr'st &n$6rre rlor oiax io spr,gcFX $re


.;l as Spnn5 Rzarn
1l lr$o:/,fwvw.sp4nolamewdfti sorino_aoo_2.5.xsd
i. !++tluv$*.sor!nolrame*o"l
:',. ''
5gontextannotation-config /> f> fie sF'iog&'nlai rt{ to €'ognj2e Goa cae 4Dnol-'rttoos
ii rn4v/?t
y; .t-?cond:comF6nEnEGn-uase-package=,'.,, /> -->

l: <bean id=,'tb,' class=',TestBean,,/>


{i <bean id=,df, class="java.util.Date,,/>

r"-r.: </beans>
' //---------___TestClient.iava_____________
Testclient.java
Testclient.iava Jo,r Bt6 :-
, Jo" ln cllssp*ft+ spiog
spnog lcr/ coynmrrt,s
coyr -,o56ln8.Jol
r.l import org.springframework.context.support.*;
importorg.springframework.context.support.*; (sPi"g z's )
: public class Testclient
i;,' t 1
public static void main(Sking[ args)
t
'u FileSystemxmlApplicationContext
FilesystemXmrAppricationcontext ch=new FilesystemxmlApplicationContexl(,DemoCfg.xml,,);
FiresystemxmrAppricationcontextc,oemocfg.xmr,,);
. Test
I esr beanobj=(f
oeanobl=(l est)cU. getBean(,'tb,');
est)cu.getBean(,'tb,');
System.out.prinfln('tesultis',+beanobj.sayHe
System.out.println('tesult
.:
1".
is',+beanobj.sayHe o0);
tjt. Illmain
y/class

,l' Spring 3.x Application on Annotalions(toc)


. -------------Tesflnter.java-___-______

Page 1 of 3
--,{rruglq.ra..)
#{''}-, sp",l"g Eair.e-*ionla,-1,urryc

3rl2013 9:46 AM

package P l:
i0
public interface Testlnter
72 { public String sayHelloQ;
73
?4
75 TestBean.iava-----
76 package pl:
import iava.util.Date;
t'8 import java.util.List;
;9 import javax.annotation.Resource;
30 imDort iavax.annotation.Resources;
imbort brg.springlramework.beans.factory.annotation.Value;
32 import org.springframework.stereotype.Componenti
import org.springiframework.stereotype.Service;
&on id
{J ai racomoonentc'tb") l-o
8$ iirttic itass rdsTB.-ean implements Testlnter
{
//Bean Prooertv
arg i;;A;;;i;--, rcRhence TUp€ $er'n pnr[€r*5

9',: @Value('1o") ql4)- iqje*s Valu a 1p ' to prop<rrq " no "


int no; tkc,n gn)ffrc5
-J Sim0\e
lx\/o' q's*-w'- h *",1 t*, Il* ftrastqr*crv< ,ci( { b{ itiar--fD
t\i4a\a
Date -'
-*'' d1; L*!13'
t* u.r lNO",-"st'"'rt"'
t5 /-:S#'.gEx0Y?ssl6r J]l- t$uo
ti{i @Value("fi (Sva.util.Arrays).aslist(' lndia','Bharat,'Hindustan'))") (Dl
String nicknamesfl;]l ]r% tU0e trDlv-f-j
g$f!".""^srru*uvr o*"6 (ri;s *,raStrr.,rlre Filt k i{t;ftI-fb
ffi11;.f'%
lJE nC&K td,'O 15 ^ -.*.,,,,*
fr 3)v.5 LisrDarrf,
e-,
frrrm List
@Value('S{f(iava.util.Arrays).ggtig!(Red','Blue','Green')]')
List colors;r-r ja\o.uJil. List rgr(
':i)l
^..0, --. *tltthnry -,-.*^
t'^^,-),^-, -Jiclfl on .-9.*arc np
vefax(n c( +Jt4
p-fYa
".tt .--+^ parforwrg
@ResburcL(name="sd') . 1,-',,-. ^^.,o,
l"iqc no I rsl
ffiFi#=,0 "'lj6'i[J.t?r-'€(.,(
{
':
li d1=d;
i
i ir*
rt Y.gq lin€ no ' 13 tr
@Resource(name="Up')
public void setu 1(UseiBean u l)
",1: {
this.ul=u1;
11-i ]
.,
ai
public String sayHello0
t
',Itt System.out.println("no"tno) ;
i lt System.out.println("dl "+d1 .toString0):
System.out.println("nicknames");
':2. :

": 2? for(int i=0;i<nicknames.length;i++)


:2.t System.out.println(nicknameslil):
'?,;
:la System.out.println("Colors="+colors.toString0);
System.out.println("u 1 ="+u 1 );
",2: return "Good Morning";
:21i )
') l"j,

1 :Jl package p1;

:. i import org.springframework.stereotype.*;

@service('ub) f w€ Cdn Gleo uie @(uopcnrer* OnnsrcU{on '

pi,rL5[iE-Essn-serBean
-- PaseT-i3-
3rl2013 9:46 AM
13? {
1 liB String msg="Hello World"'
.139
140 public Stdng tostringo
i41' t
.,42 return "DemoBean.msg"+msg;
143 ]
'i44 |
.l
45 ----DateFactoryBean java--------
i40 package pl;
447
i 43 import org.springftamework.beans.factory.FacloryBean;
1 4g import org.springframework.stereotype.Component; 0lfrDeH r€d Fecnlg Beon ct., \q Y€Jc{tnio t
'!5-1 @Component('dfb")
public class DateFac{oryBean implements FactoryBean *.!a.cr-ti t ' &rtE ctt6s ohjeat '
t
public Object gelobjecto throws Exception {
.I retumjgllqye4!!.qqlq} lcecrttn-t og€_rf
->
157 public Class getobjectType0 {
i i;l retum java.util.Date.class;
j$9 )
i ait public boolean issingleton0 {
131 return false:

1e:
;-- i
'tta;, I
i 65
ie6 ------------Testclientjava---------
package p'l;

: -'rE import org.springftamework.context.annotation.AnnotationConfigApplicationConte)d;


.:
$9 import org.springframework.conlext.support.*;
':7Q
.7: public class Testclient

.::, void main(strins s0)


fublrcstat'c a ft\tuHot 9&,"r +n'hrl"{""t
An**-
: 7i; AnnotationconligApplicationcontext ch = new AnnotationconfigApplicationcontext0;--a
+r ..*t-)).tc,l
ctx.scanf'D1"): //o1 is the oackaoe name -
--ci cl|q-'* wrv -'
ck.relresh0; src'ns Ae ora\-cb.a o( l>t ?oe!'a1a
"'l \ Testlnter test=Cfestlnter)ctx.getBean("tb");
System.out.println("result is"+test.sayHello0);
:!,
':! II
-: ..^ r ) L-, To mar" Cr6arn€,( tocrli ra t{c cl"+e;
e E:\nrps
rj +- *fu;'^' t'
trdoq

F!\ft?g5\srr'\06\s€s ''r:il: ,r"r,il:f 'l-----r


'Y ' clors (F )

Jc,t *r.s ;n a\-,\ssPl'{it

r) cornrDoDs - lo&io3 'i qr (cotterr ftom srdog r's )


,") o16 ' - 3 .l 'o 'PLL" iat
S$ - c,(Sh,
gci 'ia{
3) or1. sf 'LeanS -3 \'o ' i N"{}.1-
4) 6&i . sF '&xfcrob -3la [)i1'j<'r iur.e" "t
s) 6r.;.+ . Cn clf, qr0{lcrt -e'l'O'PcI Jal
9xo,v,,r-r
oti*i1n
s) 6q.rf '{arc * l lo,-f.L!'ic'{
Polda t
Page 3 of 3
R" Sfriog 5 x annofafions b,sed DepcnderrS ftieo-h'ctn crqptice-hlon bc'scd
-

1l1rhs$ usiot ong xrnr &tes Yee<,r 6{?n @ o( rrnrch ors Lnd,"cq

-+ Openiog ot*q C.recrhnS P'Die4t in llSEcliPse f,DE

File rrrcou ------+ irnpc* ----r Grcnercrl


----) EdisHnS PrDi€rfS io uo'r1aga<

o *x* &rewr,5 Fn;sh

NOIE:-
iF Dq."'Aenca
NoEioS tolth AnnorcrrlcrrBosed D#'odecq&jer-rlon'
^n,'. .
**" tb*:
,l .--,1

;"rr **i***, arr dcnre diretdq erq Bu.nP'oror'rcr


d
to
oo necucigJ 4 r,JntHng se*cx (-lrrrtoo., &il6rt-t."tu6 "'€-lcfea
!

.Iqle*tooS'
6tIoalzorl

r,'ie4lcro
: @r.,iu.r
------+ h ctrnBgc're exPlicib depet'dtnca

to ConPi€ure or'9rorD ioit rrrerhool


,.- @PoatGn6irctti ----+

- @ P*esrroX > tT CooF€urc custom deswo5 T*'


springBe'on scope (sioglfgotorele
)
---- - -> to Qeo \
, @ s,oPe --
csotrrces lbcrf
are
to Y€cogni?e sprrng*eans 1d ffi..f,*
'- @G.por.r*5con A*
4'r4 rc*ar""w^ ,, tr^..,n6crs .,"ft,
ft:/
Arnror'$crs 'e
ru*"'tgh
x) trol $prrogz'o bc'xd Ixplicit ftrnswoeRJ' )niecrtcro
-
v open $ o$ suPri'rrnrL'Ye [-nnao..t Si]encm :::U:t"
Yerd frT6
[" *d,**
bascd exc'rnPle c{Pi'}co}lc.t
x) Pt sPnn35 o onnotcr-Hons

! lrc,nd{Xrl- $iucrn
c'f' otf oalrs

fie ifiFil€s. .^.. 1 r.5flrn -deitrub .


-t' "' t
a
e^arr{r\e o{Prr custum / @P*rcanst'"1r',\
x) ft., spxo33.o anrotrrHcros bosecl
re?"r capn@ 4 fte ot[ot[ re \..,nda-'r
\ge"o"*l /
rshods Ccm€rgurarton
c.nDa'itJoPm ct'ui- onl idesrs it
frcrurgk
+) q.,{ gpi,n$3'O Onno\uJdons bc'*ed
A
T(sutfqrt [b1e-t-t- ro anotk',^l BeanCXerE Fotof1
*fu aponQ)4 m[or/rj
\ hdhdd,f
i .krg".,",' .-"1 otlobllr'ri
LjL c4l1 Glso cse Q.In;et annutafio4 td ciJo Pt! Fc\q €xpttar setlc. JqccFl oo lo rlDc e -rir- -fi"sb.rn.
. 3/0/2013 9:46 AM
Same as qPr' e
1 >>>>>>>>>>>>Example Applications on Spring Annotations(lOo)>>>>>>>>>>>> "f
-2
J
yt("y""'fl:lTi:lrt"T1-- &1 Pne6 in cLA6sPAft+"'-.pitlio"s @io'h'u
on
4 Dem - -- /, tr.,] /jovox ' iqi..r 'i..'t'/z
5
public interface
t
- tnnm6Lar<s+ .,

o public String sayHello0i


7 )
I ______DemoBean.iava__F_________
I import javax.injectin;e-a- &' @ tn;..*
-;
10 import org.springframework.beans.factory.annotation.Value; li'| @ wt< e
11 --)
R"
i$8l1,if;3lli$TFilfll'i:*-t*"'component @."-;("Li
12
13
14
public class Dedo*Efean implements Demo
{'int aoe:1
-
15 Stnn! name;l Bir nPo?ernq5
16 float avg; J
17 @lnject
18 public DemoBean(@Value('30")int age, @Value("Raja")String name, @Vatue("50.67")float avg) {
'19 this.age = age; ---
20 this.name = name; ,rgre
@ varue GDnokrllo.t ir{Je(ts fie
v..\qe 6t Pcrrc'met(rs oJ-rd $f i{
this avg = avg;
|nr&tlff(,| v.lt(rds &ye oJgitn€d b
21
22 ] $rtn prq:c'rrl'! '
public String sayHello0
24 t
25 return "Welcome to Spring age= "+age+" name= "+name+" avg= "+avg'
?6 )
27 )
DemoClient.iava-----
29 import org.springframework.context.ApplicationContext;
30 import org.springftamework.context.annotation.AnnotationconligApplicationContext;
31 import org.springframework.context.support.ClassPathxmlApplicationContext;
32
public class Democlient {
34 public static void main(String throws Exception {
35 AGrvatts -$,e anroralioos
bsei
36
Demo lir'e nO , ll lin i
C/'jnfcttr\(Jl '

// calls B.method of SpringBean


39 String result = dl.sayHello0;
40 System.out.println(result);
4'l
42
43
M (5", envir obrhc'a
)
45 3rl_R*1':g_ ::'i:il::_l Tri::_-15) jaretts in ct \ss P4tr+ :- Sotr,e os appn@
46 App.prop€rties
47
48 jdbc.driver=oracle jdbc.driver.OracleDriver
49 idbc.url=idbc:oracle:thin:@localhost: 1 521 :xe
50 db.user=noc1
51 db.pwd=nocl
52 -_---_-select. java____ _______
53 package p1;
54 public interface Select
55 t
56 public void readDBDetailsO;
57 )
58 --------SeleclBean.java----------
59 package p1;
60 imporl org.springframework.beans.faclory.annotation.Value;
61 import org.springframework.context.annotation.lmportResource;
62 import org.springframework.stereot
*,,*.5r'*#r"'co!flpl{"lh*t &re )a co6rX4""a
#r"e)
63 p
rcr orso (,.e Brc(Bcz r,-g.r*s
64 @lmEIlBgsourcel"classpath :/SpringCfg.xml")
65 @ffiiGii1qgi.'rluoi,;r
66 public class SeleAE ean implements Select
ot
68
t 3ir$eun@m:eQltffi+tu popnes p;re (rep<^ 1;n<
"'o"'
60)

6?-et Paoe 1 of 4
:Inicr-rs Vatoe Gtl4cltJ kc-- db-,-,s.. ' k 1 off. popotr.'.* h't ro " Lul4me pYDP"5.
3/8/2013 9:4&A

privale @ValueC'${db.pwdl')
70 String pwd; f,re6tlnano s r I

71 @Ovenide
72 public void readDBDetails0 { ?
73 System.out.println("userName="+uname); b B
74 System.out.println("t"""*o16="+pwd); I "rrhodi-pt"t'rtu *
,

75\J
76)
77
78 <?xml version=" 1 .0 ' encoding="UTF-8"?>
79
80
81
82 xsi:schemaLocationrillBJ&d€pgShg.ofg/colg
--springcfg.xml-- http://cxf.aoache.orq/schemas/core.xsd
83
84
85
86
87
88
89
90
91 </beans>
92
93 ---_--------Setectctientjava------_
package p1:
94 import org.springframework.context.support.ClassPathxmlApplicationConlext:
95 public class Selectclient
e6{
97 public static void main(Saing0 args)
e8{
99 System.out.println('main0:Selectclient);
100 ClassPathxmlApplicationcontext ctx=new ClassPathxmlApplicationcontext("Spdngcfg.xml"):
101 Selectbobj=(Select)ctx.getBean('sb");
102 bobi.readDBDetailso;
103 i
104 ]
105 ------------
106 App3 (custom init-meihod and custom-destroy methods cfg)
107 --------------Demo.java-----------
'108 package p'l;
109 public interface Demo
11o {
11 1 public String sayHello0;
112 ]
1.13 __________DemoBean.iava__________
114 package p1;
1 1 5 import javax.annotation.Postconstruct;
116 import javax.annotation.PreDestroy;
1 17 import org.springframework.beans.factory.annotation.Value:
1 18 import org.springframework.stereotype.Component;
119
ii6 Pcornpon"n("C$;- B*dd
121 public class DenibBean implements Demo {
122 @Value('satya")
123 String msg;
124
125 @Value("1o")
126 int age;
127 DemoBean0
128 {
*t.orintln("DemoBean0:constructoc');
,\oit t)
cntJho<.\
133 ,tto". cct'sto'n
131 peo"rcon"t,ro -' **J**gfnrtl) n(d as
133 public void mylnitO
134 {
135 System.out-println("lnit-Method")i
136 if(age<ox

Page 2 oI 4
137 age=18;
138 System.out.println(Age cannot be -ve,it is set to 18");
r39 )
merhod os cssitn
-dert'Db()
lli
'42 '""."*r*,
--> rr"aKe fte'SDestost)
public void myDestroy0
43 t
44 System.out.println("Destroy-method");
45 age=0;
46
47
l
48 public String sayHello0 {
49 retum "Hello :" + msg+"\n Your Age :"+age;
50 )
51
52 )
53
54
----------Democfg.xml---------
<beans xmlns="http://www.sprinqframework.orq/schema/beans"
155 hF 61n avoid ttu6, xrnl Ble
t56 tt'HcT rG*t"t
t57 bl *ln t Aroo<,uon Gnfrt; Apli
t58
t59 co{r.,n<,God 8l'€tr$lj)''"*'o
160
161
("tu *,,o r\{ /"dilf l*"ar")
162 </beans>
163 --------DemoClient.java---------
't64 package p'l;
165 import org.springframework.context.support.ClassPathxmlApplicationContext;
166 public class Democlient {
public static void main(String s[) throws Exception t
168 ClassPathxmlApplicationContext ctx=new ClassPathxmlApplicationContext('Democfg.xml");
'169 // ask spring container to give springbean class ob.iect
170 Demo dl = (Demo) ctx.getBean("db");
171 // calls B.method of SpringBean class
172 String result = dl.sayHello0;
173 System.out.println(result);
174
175 clx.close0;
176 l
177
17_8
)
*t htv&4
n3 Drc ctals ohj 6t"*
't79 AoD4 {on Faclorv Bean ) / Ys{'rtsocHo5
180 -:-:---' &an 6<rrercr,ti
181 ---te$qeeljeyeqFir<ll
package p1;
182 impori iava.text.SimpleDateFormat;
183 import java.util.Date;
184 import org.spdngframework.beans.factory.FactoryBean;
185 import org.springframework.beans.faclory.annotation.Value;
186 import org.springframework.context.annotation.Scope;
187 import org.springframework.stereotype-Component;
188 (reoF a
qFa", obi rdir bt
189
190 ff:H?q?:l[l*f,?** * -'q*d
191 p-ubtic bislTesiBFan
mplemqnts Factory
i Bea n
192 {
11U2O12") nn.d;R'Y'J
L,
193 @Value("z1
194 private String dt:

196 public Object getobject0


197 t
198 Date d=null;
199
200 ,S;i;-r,-,^("setobiectg:restBean"); Ir5'ct. c.^'dt
Si"f}i}ffiP
201 SimpleDateFormat sdf new SimpleDateFormat("dd/MM/yyyy"); \ ' VdF '
202
J
Ld = sdf.parse(dt);
= t
J
14ry. . uli
203 ]catch(Exception e)
20,4 t
Page 3 ot 4
2O5 System.out.println('ExceptionwhileParsingDf'+e);
206 l cdtl' Dar€ (14s3 ohj€G
;6; 'return d: g'ves
- .krvh'
208
209 '-tpublic Class getobjectType0
21O
211 System.out.println("getobjectType0:TestBean");
212 retum iava.util.Date.class;
213 l
214 public boolean issingleton0
215 t
216 System.out.pnnflnC'issingleton0:TestBean");
217 return false;
218 )
219 I
22O _.---_-----.Demojava------
221 package p 1;
222
223 public interface Demo
224 t
225 public String sayHello0;
226 )
227 ---------DemoBean java-------
228 package p l:
229 import java.util.Date;
230 import javax.annotation.Resource;
231 import org.springframework.stereoiype.Component;
232
233 @Component('db")
2U public class DemoBean implements Demo
235 t
236 ' taR".our.elname='tb'1-') rt?t,r llne no 1 lg1
237 Date dt;
238
239 public String sayHello0
240 t
24'l return "The time is"+dt;
242 )
243 ]
244 --------------DemoCfg.xml----------
245 <?xml version="1.0" encoding="UTF-8"?>
246
247
248
249
250
251
252
<context:component-scan
254 </beans>
255 java----------
256 --------DemoClient
package p1;
import org.springframework.context.support.ClassPathxmlApplicationConteld;
258 public class DemoClient
259 t
260 public static void main(String0 args)
261 t
262 System.out. printlnC'Hello");
263 ClassPathxmlApplicationContexl ctx=new ClassPathXmlApplicalionContext("DemoCfg.xml');
264 Demo bobt=(Demo)c8.getBean("db");
265 System.out.println(bobj.sayHello0);
zob )
267 l

Page 4 ol 4
Modu\e -a ,l
oq/03/20'c
DAO nodu\e -
T!!L-
rl'err ces coe kee+ drero
€Pzrco
To Provide Sloba\ viSibilirg lo iova ohrer*6 ctrrl
-, &N\F{ $ives orr rtg;or5 a)o'
in Yegi6tY$ SltD' f.ver3 crr-b 8e'6ve'{ / aeorlc'eulon

Neb\otic glves trlologic te3i5rt'J


-iomcCIj givgs
-lorrrot A'e6i5hrS

Grfcr*fisb gNes GtossFrb r6ist't


JBcsl gives [np qist'X o{'A at'-'
Lo)rh DBsk
java 6qrp\icaltoob u6e jdocapi (huo* 'ql' €r\a'g/l PP S6 ) to ioltrc'cl
if$ &'t'Pl'go) 1"
iDkYaLt
ddvq o{,Pticcfkm 6 Use jndi c.Pi ( iou".^ - rnm)og aod oirt' Rc6tsq I
jar sl'o)
jauc, jndi ctp] Are Part a( JsE rrnd.rle (
A90a
APP'

Soqal obj ,4

&gq2.
-->
-----+ objl
obi1
-----:

- -) I DeYt c(Yc kDo rurts o P t"g; sr"g sl,-,1s

0 NcrminS Qe6terl dto


talos info as keg vatucs PcrY,5
-----' t1.in
--4 @e rI.,usi lno(-o kctg lo 8o r$e Va[ue8
8,3'"- {etepbc,ne hlr. f'earr;Pe )
Qmr t3;o\
Co
"eglstg
Anl CJc'.-.
e) drectcq fegiSl'Y

--", lloint&io5 in{b as - vatue p^irs crod Val(les Cah enytq prcVn,'s
keX
f
&iHbcrl€
---+ &r€ Coo u,se eirher kaf 5 31 P.xha Prop,i'; eJ to g+ tbe Valueg

4,- Y.ttu.o Pages fcorcacry coise o ,".) (rear ti{e )


hindoos filesgsi-cm J
Nebl€;c Yegisr3
GtossFsb t ft"\
DN6 Y€gl5q
Crnd erc' ' '

Neblogl c

hPe I AtPrirosoq grver elur


co"e)
Veocicr : grn fustcrns lOlc"re

&nnmefelcd slLo
ro'b (corryzrfiole oirh jcrr r'et)
lersicrn r , ^ aryucel*lct
dcnnaln octs ds oDe ^^^7:?.. Sexuen

to c"reele clorrgjnS' Erer6


Glloco6
:161
defuirrt Port
^
cf,rn
l.^,nse. ecornne-{ce . bect. ccrrn
tfiLl-D' o\ode"
fo doconlmd slco : lG@
uslo$ Sorx Nebl.ogic then rhe
f,P murnple prolecm op
a compaoX ore c'fllwteq W
a Cornmct
5e instarred onlttr once io
ltxbqi,c slco coirt olr cme 1r,,t P.va1ttf
bas-i s '
P"' loPtsieffi
be cnea}ed
1o dorre'os cDilt

deffne dtrrrorn ln Wellryi cio'3 kfuo{


*) procedcrve fu C-l'eole L-!'Se.I

Orocle\nlcblogl
c- t 6oicSbfic''rl-
6rcP-a".- 5kx\ ----------'t ffitrem5---------->

Ncbt€ic '9;n.x-tt Qcrealt-a n&{, urelDlo€ic donasn


@cnethng 3tctrted mirh'

------7 a doroain Conhgutd


@Grt.oetctrc
"'
DmcnnNc,-me ll D.l N?xt ---t
Ukr N]aroe j4tvaboss
t-IerparScoora jcrvc.boss.l- __--________-_) Nex b ------+ fi adm inlo' ofrlr.;.F\r4
GlrlQxr. tlc.vlort jcdab665 j-
v.l
--------a ger f Ltstenpcrr, @ ) Nexb ' -+ (zeat<
prccedure- to ke rbe u:<btogic re3;shg op rue,btog;e SPrr'cx
V'Jcbl€i. iosl-q,'n<
,lrcblogi - Dopova
Srcpr:- 6rctyt fle obow flUDtrrdnl &d!?{

llgDorodna
prqtrorn6 ---------+ orooeNcbloStc----------+ useaPT4iefS -*-+
qdroin Senrc-'r &tr r^r-btoglc

gitr,- OPrl odroio CrnsoE 4 fte obo/e hrrrdn &wd

6pn Birocrltx oirdoco --_--a h*pt // leorhosr i'Itll lcc'nsole

USern6rne : 6rvab6 S

P&sstoord : Jrooboss1 ---a !6io

5FcP-s:- vieco tbe hr-btc6ic tr8iswt


.--.-.'...-
Viap Ord i
-----,--4 Admi n &rtx,r ------l
Qdroin Grosole ) Environrrfrri '9'rve{5

and crn EB trtble


lekrc'Vry 5et€0t -tlbc opexofians
UgCctre'
---+ Ne Can lxnftxm ingerr,
bg us;og idbc code '
list oPetrdficms drt
reb\nd,unbiod' l0ol&+ and
------r \{€ Con perftrrm !ind,
bg using jrr& code '
JnAl rest'1
jtnt norot in rc€i'srntr
picrna-"J alicancrrne f
bind ----- keePiog o$ co\rh

Uobnd -------.> \trnoviog


c,b€!f ftr. .%\5t1 I
narne
Oicrmme J crtias
\qil!,,(, ------r qortrnng obar ft,* t Siswx
coiTh

t\5t $arbennS
611 [lndrogs fu* ,tlshl (nicr'nc'mes' oO;s )
Telcrnd

jdbc Conoet}l6-o ohje(f refneseff6 Gnne*fr,rtS Ul(.o ic'Vaafpn and Do s/co'


(U'W clrt(( rtrrn<' ctfl/
-I0 crecrre this Ctrn oh.ter cDen€ed jdUc prog'nrt*
dbuser, du ) o.r, these jdbc
PcoJ yrogxric.l coirl eVnnge baled o" the

*loc dt'uol I db slo uc use


lcrra opPn
---==-----;-\-
, -) Df3slLo
JdbC Drlvcl

-l
.!)

tDBc Dnutr{ ;5 t1',g bidge olto ft.vao1pn and DB '5ltu'

slt^l
> Namin q ,Rgirt?
Itanc,gci

1
Namtng llc,rn.ge 'iS
rhe b*dge Olo Jcl,a apno ctn d (9tnu slru .

Toitic^f Grnfe*t Ohj rePr€serfs c{ronetrvit(i b[tl, jova olpn ond r<6tstry riLr:

*Li6 Jn'ulc,rConre*t Ohl Loe r^ped indi propt{c* tt-rX a*e


lO cr€c$e

D T'iti"f Carntcxt fr'urry ctas s

r) ?tovi&.'i url (lJE.


Slco c-'le
itere jndi PmPtxnes oill cbange h*ed oo the refi't"Y

Undetstz,n&og Jndi Tfte


root c(fnrex t )
@toKr.f )

(o--ouir) (urta;'g;

Ccu'rrut )
(u--"*iz; i
(c---,our)J
Ccunte*)

9--*o
Yliclc&rrr cor) s)dl oalne

$ibraor \s $'!(onlext o? Sarbga CcrnFtnt aoA iE is paenr frm-ffit o( &rhnae,


&dU*_l
N0IE'.- 1o recrl Hme Prqi€.-r5 1be ftrra3o<rrce o$ed Tbof refresenfs JDB c
cLLtQs Dc'n
Comneui(m fsol tDitl be Pl&ced in Rqioq slLo h-tt nicFnoro-,€ fo.)

f* glCIbar visibitiB '

Jndt ptl*'6.s 6f lrJeblogic R"6ishY


(wuutog;' ' j..n;
JnrrialGmfcxr Clas6 noroe : weblr4ic ,.;r,ai ' NLJninarGrnrexrFc'uzng
proridet Lrr I : t3: // eboororrtne/ ret"aa'"ss > i 'W t)6>
Eg"- tt:/loco'tbusi: rt-tt
*@nrirca on4 u*r"rtdcrre6isho
Jndi appn to esrabrish ccroreQ$cnn
blt-o JalaGPPn

// JndiConnlesi.javc.

imgnt ,Javax.rr.,rniog- x : /i.t, oA


rrnrc-n t*lt' * ;
O{!la
flabtic Jodi Coon?s r
{ o, u
-tStang argstl) 'fi* ExcuPrtao

/ P..p.,te J"dj Pr"F,ttl % 4r:os,or.i o0 7


16hi.qr5h'"o>
lkof,r..ote' k)t = rrro l-lcsU.r.Ufetl;
"'d-b\otl c'iti' t"l LJtuir;1

ht.fx,, (G*-t . lN1rrA L - t:ot.lrrxlFAcroPY, ,=-- Gni<x+cr*cxg ,7 .


__T- '
Jrin"G-x"iR *^g Ckcs oan
h.r*o (G"*t, PRovTDER - uPL: t3:/tocc'rbcr:111 ')j

/i C*"t" Iruuc,r Conxrt obJ€g^

ic -- rf,tt) InrrrarG'nrcxt (l't;'


In;riorCtrent
iF (ic== nutr )
")'
S'o'e (" Coonil-kloo is rr*
estu-blishea

etse
is ");
S'o'? C Cotn.rr*-, est-zoushed

!lt"*"
ffr"- rnradeoare \I "-'-
r,tty,ruE^r-to,r\se'ruor\tiu\nrlto3''t-'
liaao tleblogic . jar ( er^r.,utooir -home I io qcds Par(
&,rcrx . rn-i og . ln;ric,rCoruenr ctas6 qives rbe 4lro.rirrg rrEiio4 ft: e,r{<nn .ind,' Oparo.tto5

btna (-, -;
unlind (-;
asbind (-r-)
list t- ) ulaalwt3 jnotf€r r3
looP''d-) yelaltd tD dS Et-d&4-|,C
iqr.
f'ftP Dofa6lt'adcrtY€
,_-/
biod;ogr

bodioga

Lindiot3

Eoch, Mmeoasshil cla\S &J rcl,Yxar\ one blodlng (orcrrntoe'Oj)


.|:uror. noroirg (I) io &., ir*cl Asce o(- Jcrn.ool ,
, NhroiogEo<.roeror.t* EnunreratioorCf, ) .

@ prornple o{Ptialr}oo Oo Jndi tisr oFrd}lon'


/ Jn61 1-;5t 'iava
irDPdt javcrx " cnrnl 16 ' X',
imPc'4' java' ufit' r.;

{xLb\ic c\cdt J'taiLlot


t
s
ongs)t\mrne fxcr?ticnr
o, v ,', (6un6tl
t
/ P.et"rc Jodi Ptog.^tl<3
5s437 ti j
-ll^t'rrol"tt < 6mng i string 7 bt -- rr-u '|-f*5p'ue asrn% ,, 'r
i')cli' l'JI-rT ti#fr'51-
bt.e"r [c'"1.^r
. Jt{rrrA L - coNTExT- FAcloP)
rl'l l")i
, PPOVrur-t uRL ,"btt//l-oo'rb6t:"'tntotqJlc'
hrt.ed (cr*tur -
L " javoooss')
' ;
bt,r^* ( Grnrnt. Secutrriy - Parr'rcrPn
' ,.. ]:ffSr*
,
**''-'
"^
h'p.'r f toiul-trt' SEc\,Rf,TY - CREugrrrrrAI-S/ fttabosi!")iJ
*n t*nf,fl,-
lrr;tr.dCcn*t^. , ,&=re..u lr-rrfrcl G.nr'"ot [ht)) i/eoinra
.,ofi- {@rbnt<}'
r
i
l/ ?e, PuminX I isr opralt on t'{reso '
, ,,I_-
")" llA'uo ca rhe bi''d;ng 4 '**-
/Nc'miogEnurrrraH@ re= ic'lisr("

NarniogEnr,rn€rcr.tlcrn n€= ic'


ri5' (''Jot't^^/ i-s') ; //gl*s our::t:H-f
Ph;re Ine'hc'tHoret))

9iveo nicpnemc gives clclss narDe { rbe o4Yr

/t's"
3
3 iiu*

on Jndl oPenHon6 rek c Jb-stJ"ai , java, TeotJnatr+


@r. €xample oppi'icol\oo

oP {hteno's @r@
$6s6fisb
-t *, lotoaHoo &'vor slLa

veriw: &rone (Orooeccne) \


Vc'{s)cn: a.X (Co-fariule -'nq
-:drt'5t /
0[€nS(Irrce
de&"t'rt &r'aio
to d"ttolnl
anlu!6 to C'rcof. donoalo6 '
defu*nt poftrn-'O : I0 accesS admio 0rr6ole 4246

To accers hlcboQfticafloo i 8o8'd

.IOp slcu iostrlloHon o:tn !e rrsed


C"rtcrgsFsb tlul tl^rrr caroes co,rb {\lc*3eon,9

roirb or ulifio&t NeTEoDeJDE '

Foce dure i0 crtci.fe User DeSesS DorfdD iD GtctsgFish'

erre++demaan
rn#€roelo-e

t- -- 46+5 -- user= t€stus€r


c*a'te -&morn -- cdroioFx
O:\srn$posavtr\uin7 oeodrnio
mYlondoz
proct'dur€ to &e GtassRb rqi6h? oe m5dorcc o t server'

6tcp-J: - 6rr.o t mg&rra;n 2 .!i-r,',


st&r r -d omr.in mgduoai o R'
0:\5un\ APPtcrwx\bto > Qsadr'}lr)

5tQ-E:- OttD lbe ctdm'io Conote 4 rngdcnnciire *tnc"


t'"1
o[,cn Byu,fc{ totndoco ----------r Tgce ths Sttuott'X
t$+O
httP:// locorhoot "
Usrlt)ctme : rcstulc'[
pns*ocnd i tOsruse,i _---+ !6in

6rcP-n:- giv€ $€ $)osstrsb r€flisrr1 '

Jndtbvacoin3 .#
Odmin Coosote ---1 AgonraflonSttLrur --------i-

*'\- ,f\l8ishr,J osrbe buitt-in "r"egrsrng Slrrr'


z(nttrsol-ish €€"rwI BiwB GtcsaF.b

Jodi prop-'rrres 4 GlossRsb

c\&ss n&roo :
lincUConfc"t[crUu'X LWrtt oo>
prurtdcx ur) i iioP://zbcst>:
e$:- iioP;fJ tocotnosr ' +6+6

Jr^r htc [rt"lt'S


fi6 closb it ovoitcLble in dppServ-rt'ic^r ond *uo
App&nrp(\lib
--rb"J
=,\s(,o\
wtlhpte deryndolt Jo, Frct'
opgnerv - admin 'ic'{ OriGilable in
OflBerv - ee.jct\ D:\Sun\ Ar4sc"rt''r\
\ib &tao,

oppstw - ext' jar


javaee. jar
hp'r'rur^\ lib\ iDst<'t-t \o-netrawn\
i\-rqir,sT(i' ia\ '--+ 0r \st'o\ 'T
@Stctr,.*,in$S"JsorPto{rcnicsogTesrJndi'ic^va/TesrJndir-'Jc'vqRtea
*X;s'U slm's (nfa
tr€(on pn(c,rrn Jr'lfrr ppexcrfiens cll Other ruer.n:g.P q)
iioP intci irLK{net Ogb ?{uYoco\
--r f -oui* A"qrr., t Brc\ca.,r
re /oa /,ro ,e
JBcas
TuPe: A{\icc*'rm Servcr elrO

Vergic,n r S'x ( 6o-ponule trrirb jdr l't )


Veodor : Apa,r,e [euanc*)
> 9ive5 5 clektut t dorrrio 3

dePaurt (dePc,-rt )
hJeb
6l-ardar d
0.ll
minimGl

'lodo&rntoad s/co : AS ziP krc Rorn hluro'ofxlr-be'or3 rnrlstc


Jb6s - 5;!-1'oo 'GA -JdK l'5

to instu-[ 61r-r] I etw(&t ap P;re toc^ &rtdert

deh-t+ Frrr no : 6otro Cfo o4"rs *e cboapllccrl'tcrn s)


toog CtO accrrb rhe jne r"6;sr'X )
to Slarr $e ,grver/ ". Llse LJoo.s-born ) \bio\ruo'bctl Ate

moue BrnStr tocrrd P.t


(iP prDblerr6 &re raisej rten
re

{(Io'bcf Bre crnrc,tu )


procedure 1o See the JnP rejishrS oP JBms 5'x sevu€{ '
@
St(P-r;- Sia.,r JBoSS Se'i\'t't
o€ fBoS
Ekp-n.- gpeq odrnio console
OEn bYursq u;lrdcro v:rlrc forrao'ng o'Yl

hmr // lo@thost:toto / imr-ccmtole

99gt $;ue tbe jtPw6iore'ed roc,re d Jndi tre


- ----------5
Odmin Gnsol e ,grvice = Jrdi\i ie-'.!, -------------) Selerf 1l5t opcntrHcrn
inv6l4. e

--,--: loor(lt Gtok^t Jndi Nanf,spa.e


tb€ irrdi PruFrrtte 5 oP CNP rqi*n1 ;
-*T"*1, y:*::'TWS
JnrntrrG,..mxtR*t clc65 name : otfl.inJ.inxrg'ces ' Na-in8G'r*c^#"f.,tF
-._t
provi der u{l : jng: zboat 2'. zptt'flo> irs *r*au,.'on
l/
qh ihp i // toccL\host : toQl <ibosl-h.m€>\ ct;cn't\il"'-rosi't
,ic,r RreS rerlcire d iD clrstF.rb to interacf crr;rb lnle.blo6tc re3 5lr"b 1 fapb)r4tc'ajax
j".r Brea ye+dred in Closspar$
-|o iDKYcL+ Loi$ GlassFsh reSisng :

App5erY -yt .jc.{


javaee.ja.r
aPffe.lv - udrnln'Ja1
- €e"jcr{
OPP5e-trv

aPPServ - ert'ja"t
imq,jms'va'jav
,lrr Bret re+rired in cl&i,6pcrL ttl in*cracf c'oith UB0s6 r€ftshu:

jnp-cticr*, jc.r
itoss - logging - EPi'ia1

qs9! c'n pbnn Jndi


pn4rot",rtl o64 tvitl.-,
Sprin$ jndi provides a5srta{}lcrn lctger
-> tCrt6
Org' sprto6firc'rrsrtru' iod
i' JnaiTempc'rc c ,

S;r"pDPe rbe
plolr, ,Todi ao
d
Ttrr6 Jndilkmplorc closs
inf'rrrctl{ USes
--- elto'
6n I23"t'X
f,ndi opr'rofion6
pyDcrJs
"? P"ft"-t%
Pkrin inai ryo6tommio$
PrePore Jndl PtoPrtlcl
-) oQj
-t C{€ol€ Jni nor Gmtcr"t
jndi oPuroHon S
--o p.nRnrn
[xcqHoo lbnd\ing
-> tttvecotto?

lW15 itdi Pru€rcrm;og

u q* JndtTernpbre class oU
b3 .Tr,d;E
nPtre ''La
6'
&feacare
orp'ra*ons .,r.
L€

Af?: "#:,TfiL' Jndi ProPonle-s


Pr- Spno gc*'f;5uroda" Sre
ryq Spdng Jndi ltltJtro to F's5
fliuq pruiuirrft of rrPd;ficottc'n '
--> Sp"ng Jndi inicrr-)otl$ LrsfS ploinJndi btrr it rr-t-e"! rrr.L€-9 prDBroff,me4

t0 b*,ev &btut htr ge*"g c''befrc'ctlcinl"d*)'


P[cdnJndi ( rtia it norhing

Clitrii o{tica}loD oF €pnn3 o4pticaHoo i6 ioVacl&rb, &T** ir can


be

\v Gs lt6 P'DPcnti€t can Le &t'$6t''""d 'R^


toYen Spring &on apd
D1rt&,qlrgelrron
/- \ ,..r,'h
+ JrraiTanplarc cl&sb gveS bind L,-),dgbiod f-'-), unbiod t-) ond looFu+c-) rrrthd

hrr it is not Biuiog tistt).


ctors *Pk"
'*(D ft,r €xc.mple o4pn cto 6rn"6Jt'ai thor crsrs JndiTernPlaJe

Page ruo, @4@** no:(!


..,
LoXer on plaro
Terhnolqie-6'
..'' Spring Te$nol0gies provides o'bgtlc'cdcrn
-,
cexfcuo 6rpe'ic*tero
lben c;:e
Jorho pnaeJS iF spri..,6ner f;rirs ro &,ppof-

CalrBc'ct< lnutcrPoces
t0 irnplaroent lhc'l
Gn use &r'ng &4Plied
-Teabnolql APa'
OProtlon b5 usiog plcun
_ in irnplerne-rrrorldn
cla!5
---) fte inErPace t*rose rreAods irnplemearei
is cal-led Glgs-o2
adred bt un&victroX c6'nidrr^ o*nvnttc."t\
inrer P'ce'

Fxcrmp le SCenOrlO : -
doas pmvide 'nerbode 'r0
Tbe Spog[ndl su4ptie d J''arlemp\orc cl3ss
as)n$ JtaiGltb"'L
Thi's caobe ochdurd {
l]e,Rnrn tist opcrcrtlon cm veEi'I'A ' co-n
n{'ftod ' ln *us ,rrir'atnx
intcrk.ce. JndiGrrhrl. (r) gives dolnconrext t-)
t{rrit€ pfurrrr jndi Code 1-6 frr?.otn lbt
ofrro]lcm'

o.aa N i naq.o Lis ren er (neto t.J inaorAatrutt


()
t
v"td';;Ct*i"3 [riinaooEu'nr
-t)
RAIrc
q0
u n ^,.r-1
ogsrem'eri(o)
. 3l*rt"a
, ",, 5//ilnach.{
),llmc*laot
' .In'tbe alaove cod e I ..-'

o) Oddbindno[5pv 1) me,rbcrf i6 c4{0ed hc.rrng \vz,

Onf, O[pr crs rhe &rturo(nt V4Lo/e

b)-) 1l^6+ ohjetr ls $e og &nonorrrncrr3 f,-nt'r c-1acf drc'f exren;" %t


Obje'f '-
lrltndoo Adt'Prev c\aEs. J
NinaooGosrotlh)
rncrboo\
c1---+ ThiS Anonocmocrs Jnrrx c-loss is 6vortidd;nf 'J
.J
hti''$ S:rne loglc
'J

trd,CoLtbacr' J:rtcr8c'ce
to'ok*t
O Excrmple A1p1ica'Bcn 6n ioF"eax-rn
\)
the \tat olxrc"tlo'n 4-rncnt.no-l;rg '

r;\nws
*-, spno?
? Af,Pr
Oemocfu . r.n t

ft mocri(n-t ia,ro l' Oa-rx

gc.me as a0dD grneco" 5t


Dorc C Pg . xrnt
ll D"-uCtit'rt'&vo
r otg' Sg' cort-rcx r ' &tf Po{t " * l
i ro frn
irorrI't Oq' SP'iodi " )r j
tocrtt- trrirh C"t/Lllc&t-L|t
imPffi idvox-nc(mlo3 ' +) --'-"-4ProlnJodt
PrrU:c oosS DerooCticni-
{
lrsnpLa-k "'
,stnhic JnatTe-plare
ItSert'n nltkrl 4* ett* nt '
tt-plqtt)
Wbt;c uo'U siTexnpla'te(JnoiTemptare

{ *r'Kmplarre = ttsn]'re)
&
oI' \
aro.g tlr"*a, Etccp{ort

c*x= tt€-otc F.-ft*-Xt 'Av&^t*^w7


(ht cro'.torr)'

'--
lernp)ofe. er(e&rr€ (ne@ JoarG,rboo<L) {
eLP'f dor,,Gnre FCG+er-a! *3t .*:] 1Ez'c+
rt
"n
ve6 Tni tial Gn+e" t
oUj
P!b\'ic
lq;' 6',

t 11*. ploio Jndi CIpi to ,.,p'I,ott'* i't ort"t}t*''

= cirliBt-C' );
''
Mmir5 Erwnr:wnc,t rE.

-'(D 66[r, r e I ne - hu llore C: )


t0

Mrne Clr.ssP.,;'t t')P= (NotttCrossP'v) ne ' nextC);

t)* " " * n p' g er Clctss NhmeL) ) l


5' o' e ("e' 6.* Nc'nne

3 //ul'ite -
TeKr{ D gu\l ]

3 /l dor"O*c.r(-)
' exeau'rt t ) rrrtt'ocf is Coue
J /llntet
ctoss @ rcroplare
ihD€/i
) bg Lee-pin3 Ohfri o? &nonourtfus
) ;l exec"ie C- r'''{<"e'
CIct69 irnple-rncn$n X CnarOub"u
$ /lt"r.;n ct6ss is deP+ni''1
-lbiS Arono&rooki innet
3 fl.rots
dolnC-onrext (- ) merbo.l fer)i"3 ltt b
P"P-q Lut oP'tc'tt on '
ll> ,1avac * 'ieva
r lava krocCticn-l- *rte io ruooirg rnole '
/l ger.ud \s
llrrrire gr't thcr't
hlz-btogic

ro''crhod
dcsor csnrcnD croS
fn St iog trnvi{crqrocnJ- iP eae a sr.rqg
T to acterve
coe use Spnng Jndr Cou bcdi|- Inrcrf<'ce
"rnrurdit tlt-n
thtrt .nethocl
1e fti% Appt;ronon Loe CaD use' 5 rgpee oP Jdbc coo XloIS

(Nrong co'rb Dn'vrflorrage{ &iaSq'Ke ctass


O 6Pr:ng'a Brriirin Ccrnocctto.n )
u.g becturse it drr.s Wl ft'e
crYn o$s
Ib 16 not reCoroeoded lo
-)
@ rr-,a Pa:rt JDBc crn Pol
APode DB'P
-'
CsPO

sPog fues (*Pttc."n-s


W* cL$aie
( P.rn*na"a 16 g'{e io Siz.od%lone thc Sonrr ).
Seflrr ltmged 5Pg6 6aro@l
Ncbsene'r/ fuoti.ort* in rbe gY\/u)
atre de$ogable
(Reronoeodea to use rhe S;r',n3 amos

w$app-n'
pol cLtiuz4dlc/n vePr'r Fe'u
0 fo1 acrmp)e lppsf'atqb Baitt-in Q'n

--+ Apcbe DBCP


.|UPe * dbce"ic.v
: tblrd Pc'rtt corrrrooos
\llu\ ic'ravrto- ca*rtans\
.inr 9;re I zpring-trome >

cnrnrrsos'dbcp '
hgc}tra.fu'nce
closs oafr€: orB' O{aahe '
clctK
imfortcnt PtDfdtl{} clfl. Bosrcht''Scrtnce
dwaC\r'ssNc'*e
initiatSize
d
P.ssdor
Ltt \
use{rEm€

framgle o{P\icaHon

r:\ App5
h----_') sP"Dg
''t*L
Apo*eDBCPAfe
iava -*" ? -
DBffr,ranon '
- |--- Deor^orpnBeon'ia'ra I.*1r''|;.*"
'Jtua J
_
\ - DBoraaarznckufl*
I r SPnngcP6 'xrn \
6prio6C&6 . xrnt

zl DocTlPL:
zvxt)6> >
^*")*; d{ncf€.
o,r,,arnrlc. (brnrrdns. dwp, fus;.fut.$ttott4
;6=.,dbcp,, cl&ss =-',org.
atire,r,O,ouaD,i_,
zpljffr\
"
rrtrne = dri verCl&!9 Mrr€' \blue ="Orcde'idbc'

zprrlrxrnrrtrrf=''url'Value=&bc:ora"le:rho;@taorho51:l$>ir{rrcl
zpmYfrb ftrrnd = t{sornerrE" \hlcre ="&ott'/z
)>
4nf tU mroe = WssouA" vrlrre='l;gw"
injticr-rSze- \lalttz.'^ lz
L{rtory]5 6"
F)G.ro€ ='
zllrcn>
ziao id ="dob' O4ab = DBgperaltcrn Bcctt' z
zIJnpW rsnne = 'd$ " re P='dkP' / z
z_lt3,.aoz

/-l&c'oE>

ia. gEs in cl}ssPlrlt:- jar ftres tn 6;a55prh


zsPnog-ttnoe 7 \ )ib\ ial<c.-ttbcr
- ao.--, 4u-tq
l\ CmnrosDs
/
-dbcf " Jc'l ->
o spt'o€ .i"r
o Cwnrncros -ltrying'iat
> ,lavac *'Java
) .lava DeoPtaHcnCliani
ye sltl
Poo\
bap., ttuna lxrfig idbc
Ccrn

\ c'zPo - o9'l'e "rrrt


: l.slnog -*-". \t;;i
caPo
ftre
"n,
cl4s5 rAme ttnr giues

iroPorent FDFrrtlq
{xsstDord
[J,5e1

[nioPo16;ze
ffux?mt6ize
iduc Ur t
&iver C\oss
Pxarnple cfplic&lloD : -

, 6aroe 6g llrevio(rs Appn hrf Perkrrn fhe R,,or',rg oPgrcltktns. ...-.,

0 Add Srnutog erhirs iD ftv;ngCfu,xmr Sre, ...,,,

.
"Cot'rochange ' Ve' c6PO' Comuoblezlhradrcrce
\2

'J
L@o6, ,, Gmboftnrea fuaofat''<te" 2
\lE:' r-or-(r
-^-r..,nap.13,
"ctrn'rncFon€e' c6?o. -
Ad3.l\ id ='db(P' cl&s6: c\. - 'r, '-)
\frlue Out'cJe'idbc' drivcr' O<rrel]'\'ev /> J
zp.Dqtr1;5 Doroe='6;q6Class" ="
{"': )5>):ool>
@ lDccrlbo6}--
z,xqvrrb rxlrnc=''.1auctkr" \alugz" 6dbc', orooe;

11JrDWtrH ryLrDe2"tJtr,ru Vlr;c --*gn*" J> \J


lqPe{g rxlnne= prssood' Value="figen" /t 'J
''p61ipfol6'"zr'' "'laJte="6' )= \--l
L'./fD..JIs narr€ =
4aPutU name>* rna"Rot5i="'' Vatcte=.)d'/z '..-,/

zlwoo>
Eratt\ >
zlxan iC--" &b" clasS =" DBopzTctHc'n

zwr{rU "d5" rt(='dtr.?" lz


oerne--
zl*cio2
Zl&aoS>
\_-/

\J

odd <Spdo-h6rre>\LIb\ cbPa\ capo- 0.9"1'?"'iat Bre to CLAgPAI-]+ oovironrrrrf..J

Vc,rxrble o5 &dd,'rksrCIJ. j..t f; re ' \_-/

trol $dk'i b hooe 113ef in $u,t'r pruje4 9 '--z


0:-
:
Uthot \t$e JDBc Ccnnnaficrn

is (cnl prDjqt flren use \J


/rc,s; 1? gurr 4"ng pqiat Stcodobne Desrtoq

ttrrrd t-*t lvlcrnoned Oolne;rrlon?oo'l ' ftpocle Bcf \."?, anA alt- -

thcn
tr Sfyrrnt prrberi is lep\o6eecble ucbatpticallon
LLsE

$e'ruCr wraLncrled oDqC fo."rrnect\cmpct)


Undecrc.odiog rbe PioGsS op Worbiog coirb &.trrrr fla.,oXe d JDB c Ccrnne c,non Rn\

jnuc ccm pot aod tils Dorc.6oeKe obj <oiLt 5e


Dam6orrrce ohjecl rPve6enr€
plclced in A:8,u"f slio {t BloErr li6ibiri[ h-i"3 nicKo&rne <r{ atlcs octYr€

hteb 6e{u<J.{

Jo8.Dara8o(]rte Ohu

!@ @'
99o
€ofigo futa $rlrtc O$
->

(on'a io,re (
aizl+l s orivw
4wf

U6in9 JDoc ConrEcfid''o lli)l Ne Can rrrru.€ rnlre Ctjef* c,pplicc*tcn- in tcrc.artog coi*r
Dfi 6\rt b9 usiog minirnkrn no.4 JDBc ccm ohj)6.

A\\ 6onnaaficro OhJt in 6*rrqd'{on Pool f{^"eKJiJ6 canreesvrrS rc'irb 5clroe


in
Orclde meaas o\\ Coorearlon oql'a
D0 s\or' Ey cDsc ConnecH6iP:o1

toirh Srme ord'cle DR sftl .rd'r


*sl on Ye0r€EnJS
C.rqnecfi f}9l
Ocrnnec$ui ry

N t'to the Dicrgrorn ,


trrl rh Drd slo ond l_o

uses t.lp" r | ?' I + | s &'/eY tD inK{coc-t


0 6e1ve{
ob'js'
crfole JDSC Cdnnedcm 1d |n'liog gpBa CorreLtidr'

e (e] Server trtokes Josc sctrctfouce ohituJr lqreseYlttns {0Bc Conneu{onPol


ond kce?6 \h&t $b;e* in fndt 'rt1;s\ l,+ui"g nir'lnarn( funr) al'al nat't"
@ C[er,r oppti c&-hio Lrsec Ondl code to ge+ Darc.Sorrcc offil ko" 'frkh5
Cr;cnf &ppl)cadoo ger3 SDBC Conrfr,tlcro Ohjear P'ort
CcDrDe4i<,r,poct\ -
@(!O
ftmcrgh Darz. Satc o$e.!-'
trDBc cenoel]icm
ohiot fa c.a'le orberr
@ C[an] opplicc,$on crles *,;a
f,DBc crhPtrs ond fo deur'Lap Der(gstenLe l-'og\c

ocIeflfcrppliccL"Ho.ncajls6a5r1'c\oseL)rreilnocltorelec'seUD8cc6onesil.J.n
Chf* bc.dc ro Conne*tcrn Pool '

oP idbc Ccmrrtficto ohi6


Thew are fcDo rufze

O D,rot JDBC ccm obi

u tv]5 $e JDOC 6on ob'j Lle$<a h tht progrcrmmg mcnucdld


" j
'iauc ' d"iwr " Or6'le >"i'/€'{ )
Cta" ' fuName (
otcore
( j",r-ti"ooe: tttn : @toct.lrurt'l5rt;crt.-')'r
1
L( -On
* {).,x1flcrno. et.g:tCa,'..cn..
ne*tort U:x\ "' uztt"t

hoted oOgc cdn 9bj


obj Co\freted
Sra- $" &bc Corr Poot '

---i f,-t-i6 $e Jdbc Gtn

rogdornc,'nl terw
$ol ?L,{ O'iGc-le
Cteorc JDBC GenneaFcrr)
@ Ptocedt.'" to

cf hkutq ic"
'rr5 le '
erdrnioCctt'so
and OFn
A:L Statt ro6dr"'c"nr tsr\'o(

$Kp4r"-

kua6atv<es )
Qdroir' Ctnso\e &'(eo ----> Sefldces JDEc----------+

p4r6 __-----,a Name ; rngdsl Jndtmme t @-- -2ltriaBc.setype ;lo*.€l-


g* se,rurc Conoeltl
HrFo*.* Ott*^ tru tl ^f ----n ncxt ) pax t
DatcoBose Naroe-: FZa ft*toarne ,ltoc.'rnofl por,[6tll --
A*avt\e Utu'nrme;
[GrF \

ft.sroord FrAf CunPcrQcrs kle,e ----r Dfut *--5 TotG"69wcrlo^


----iDexr AdminSrv<,t -----+ FtLtsb'
-'-"-t V
SK.iFg rbe JDSc Cnopoo\ Pctrarrffg'^
DatQ&)Lt{ceb
AdmlnGosot e -------------) Serrrices-------------' JDsc------r
16.-1 nc,.xcopcl.ictJ 6,
aotuJr'Pciru
&moduloo ltoc +.,Jo

r .! I ) *r]*a --------a 6h.nvPwlu'n'x l-qoFl@d'


cc,.Kit i6'115nerr.,t sboad be c'ro-red tnkra,o rhera is
- l.n.*r.r;";1.
--------+s&\€ rdbc cdonedlcn. ohicrls '
aneed & cvcaHo3 nelD

de*roXe rDte f,lgg c6.org$o^n c,rrj&fs ct?t<,( errtf9m"se"-as fs.;^.-Jrr;

Fnisl' hffon is cftk€d the $gc Ocd<'sac'r€.#


NorE'.- in $e o.bow sl-Qg nhr'n
OdorncrhcoilS in Qgrst"x slul '
o4e[f vekrffLe LdtI be f^&cad

rhnr gcrrfexs oUle'r


- x)ft'sP.indi' Jno;Ohe+Facrcnu&oq ia $e FocrcrgBeccn
ond irger'ra thctf
ftr* YetiShn1 slcD th"ounb Jndt \ooF"p OfixcrHoo

Dc,rufo..'ce oqf!'t
.fft" Q"6''rl slto aod to inp* rhor objer ro out
hancic,ss prqx,.Ird,
Serr'tx rrrLnc'Xe<l
to (ase the above i"r-tlogic
Excrmple sP.q$ o?Pllca$oo
- Pool
- JD0c Gnnernon rnocle'
oP hybl%\t in;nn)ng
Setut'T
yli KeeB rogdorr^crnr
rbe lirrroln? rn'c'i;Bcafi"'s
in

8tcPz'"- kee{ fblrh appt' ftodg' a'-'d P"h


Sprrqcfu " r-t R'Le'
/| 3t'tngcfu , x* t

ZlDmtgpe--->
4btsos 7 fu""U8-" $ =
" jo?b" s9' jrrdi'
ors'ot' "':-
furObjett
c\&iS?
61165'o0rg'
Lb/C.ie i6 =
*trndrN^*e' u"t"="!fl9,i:"
/pyooertS r.arne --
Zptry,,q "inoiEnv; ronroert-f " >
n61roe =
Jndi
4tm{>5>
PY1rfsft14 to
p565rish rhe laq 1ee6 - java. nc^rnin3 . fu*"U , inirlcd ) klbhtic.indi.
tnJ Llnrsd Cc'r*e" t[.c.ny 4t*p z "
Connea$ctrr Loi rh

I2eS's\.
ZJ)YDP keg =' ,javrrr{mi'q, DyDuJdonc,rrt > h6://loco.thos,r i zli 1.-
z-LwP6> tlwP, ".'

zlpto[rn1z
lk.o,o>
>
Lvan *& JaoS' 6ns5 ="DB0put..Ft''nBer.n''
uds' yap
Lpwn,o\ eCtnoe = -",jolb' l>
zlVao> T-
Jruetn JDBc a,63crxce OQ.1er.r
l:llrrcc'r>t>
&om Ond;veX;s\ husins .._.,
Q<rrhe..ed
JMtOup*facnrXBean. ihs Ksulknf ohrecr
trill be lrueu-(d
3x?-al- R.rn $e cLicar apPlicotlcm
7 .lava DBOtorafio$f ticntr

jctr res in ctass pc.rb


P\
'
Spnng. jat
Gr.nnrcxrS - lq6;ng 'jc.r
cdrlo8ic . j a't

(bol &,{ orac"ls io t%dorDdnR


.-
(D p.oua-^^'. t0 C''recfe JDBc Cooneolo'n
!-rr ot*tj:1"11
9wukeePo? bc v+.i ci f; ss
zbrca s6(h-ho"'e>\1f,:S
\qba& ffi;\'d;"
:<{\L ' oid
1tu n dnw' tvted
"-"'-----1r-----;" ftrde/
gljuo/ (ort l(b tTdroioOc6ole
SA-O:- O(6de .

.,."..
a6cdnnltl Sictt-dc'r'trln
5ra"4;- Skdr rngdornCunt rn*ir.'.__-r,

Gtade"
JDBC &tnneexoobot
sHP-a;- cfeclte
JDBc
- > jntut:n @16
S6-ctco Qemcrrtrs -=--
Qd'tni9car60\e -=--' TescLM,e rU pe Ijcvctr,sy' Drfasd. Y{e '
{rKrU
ftr 11
---j
Wft\o{e 1 Lryu--J -----------JnekF Iyinaeand rnin[tnl.et:-e [.-+ l.---
poo| rcstzc $urirLHrg I [ .-:
----,-., -_l ._J @{Aae
fDr,rirruYh plSizt l- $-_l
--a V Cf,Lr&Ba!€ r)6(m € Orc I

E Dti<ryruPc *rin
' f&sst'lo'a ti$cr
@
'p f)rltNttrnbct l5>\

B .fenwName to(a-(bosf
l0c4J ho I F
E Se'tuicrNarne
tocorho tt 3 l5>l eorcl
uct- ,.tdbc: oraale ; ft-io', @
@
E** SCcf-t

sder rog@l L'---4 ----+ s3JJe


PioA
--) Finish
6l-cp-U:- Cxare
-) piotog fu the obov( dDBc O^"ffi
JDOC guJ-a5cLrrce

AdrrrlnConsole Sc"reeo---------+ p66r.rt-<r5 ------ J0834 @n$gcPesctux(e8--

llero --------+ JNDI Nleme', ----'[elname: I6sfi:oi{ -------; Q!


**"-ffi;*l*,ttr
w
'- f,k-)

to u.se
RePu eppe crn mo0fg Sprrogcfu-xo\
lqlozlrorA
cntcrsSEsh $t\Krt mcocJed Caqn&$crn pool in q^r^nt
---rl.!

CyPFn
'.thdt &.e<

- 6kp(Di- Ke<p mgdomc.ina' hlctssFish in Qrrnning node


skro'- Keel Po nfi cippn recrq &s shou:n 1n previous old'catlctcth+
Choqe rbe @SrtoO",3 \Jalrrer in Qnin6C-Fa.x*r S,..
0 Chonge tu llg0eJndi f.o- Sr'th1r.
Jndinome
!'ecXt'*J P*l'*t*
chonge v*blog\c Q"$\ p.oirrft\$ t ith Cic"sE
w?c'{ tl$ rrrrnch cilscrrstlons .

gK,P@:- 0xecurc fl'1e crieni olpo b6 cdd;og Srt-ing ;r.r F;tcs

ff
spng,ior, comrnons -loggln6.jaY
6 --+ Olcrs6 Fsb oft.\ iar ft te rPw ra'.<btS
SpntgDno (c,,so cc.tr€d c.s Sptrog mAc) t 5 lo ol"o r:
l5r<roc€ logic P"t- O*er lq;cs 4 the alpt;ad{c,',
the. &va ctas 5 fu,r se{r-r(-l'1c| Pe(s

ard rrr res *)af lo€ic5 Ci6 'reusobfe 1ogic5 is caued DAO

t'6q1.!-{-tQ-
--+ 0AO P6igo partcrD is oo tr'rL5 re'tared co:r$ GptloSDAo
abstrc.ortcro lctg
o"l \)
--'> epdngDAo rnodule 6iw,5 oDBcTemplore ct&s6 l-a provlcle
the wrrs & dedoplnSr
dn PUn JDBC frrograrnlry lha.r rnec.a| E;tnpllRu*

ilDBc petti sYunce Lo6ic.

Pki. JDEc progrorn;og

drr$at coitl DrnrCr tlancrSel


(]J re{i6rc{ idbc
t/)rh Doslo
E5Trdni5b he
Omnel$cro
o ohl
e oL"dfe JDoc 6t'ercrrrn* j

6lto t sledhc \6t -.- .


ood exeaou{ s€}L o'ueru in DB frpplicr$o-n
@ geod
(choqar in 4K'X afon /
aod PrbLels rhe re sitrs J
c qod*.x reslrs

C\os JDsc I Cororocolr:qicS 4 rhe \


,ohi5
i *nn ( ** a.ll JoB( a+:r-\ )
*L"d-lu5 'n
€) 6ll,fo.,rng |;ceCflao )

tclFt cc'Ye 4 Cornrnon


:t"' rhe otac 64gli6aflcn pDt[affrd/r Shcx-rtd
"lo6i.s
O,nd OPliccaron Spec,Ac '

3pn5 JDbc P6*T'"3


obi
0 ff* ftbckoplorc ctcrss ohl b tufrhhi iout Dk.lrt.lce
slOl+Cnf;c"tio", Spec,frc logics
ard execi*e SO,L Alc^e. in DB
O Send
reeutn J
t'c'cl prcLers fhe
O Grtrf^r^ resulr5

6$,n fdbcTennp\c'rc c\ass coitl taVe c&ra oP 0rnmo ioBfce


An the crbc,ra
logia5
So Prugrtrnt't ist need to tertsecore ct+ on\$ Apptl cc.l\on SPcihco
i

--> to Cr(nK JdbcTemplote crosi ohj fih: Dorc,f6c.r ce ohj is &6-,-d.."r o6; '

- -> M.tfu-nce ia rhe irnpoterLt lr''oPof-g op JaUcTerrylare dass(oq'sr'"iabc'ffi


I
-lhe impcxtrr|
rrgrboclb oP TdbcTemplo.fe c\crs.5 lo sr6d ond execr,1q rhe
SgL $rr€Yics " *
''-''/ T0 e{ecu}e frro- Selecr ouerics
- uPdc* (sn'"3 qq )

lueqfulnr (Stn3
m) t Nhen gte*yo-,.g reic,rn r'rn.^Ac vc.t.q
W\WI"o.t (sm"3 ot) JET:- senr cwnt(x) P..", stz,<tcn*.

1re.1F^h+ (Sr"^g %)J,0f,." srec.* 9l-t€,n3 yero{ng 3io6le *rcxd.


Eg' &tetx * fiom 6rude{1* t:he"e Srro=lol

q,r"tF*Lr.i [514"5 %)3wbco 5elq1 *"0 retrtu(ns lltrltrple rrc"rdg

E6'.- &;lra X &or, src,dent.

-lo txtRrrm Baxf'Pocrsstn3


;-

krcnUfl,'t" ( Sr"rngt I ler;e s )


- 661areenf oQ,
at6urrcnr tl-rn 3'nple
'-e Nl-ren olr ftys( rrBr6als are hro.raoS str61e

ajrtt be uEed inrcroaftE


t '-- r'"rn n'r'd troCfu6 ot fh"e e &\8t{Fnqd1
-+hlhen cru these mtrtnc.lg are ca1teJ hooinS turo o'{'B6r'er
I

+.tcrtr CIbi ('Di)\ be us€cl inKrnaut '


- tk- Pr.Pcrted St
Exarl.,pte APPI;ccflorr i -

E:\ APP6

D8OPerdfioo'i4va
D6OpednHcroBrco ' javo
D00peroficrnCfg' xrn\
D8O g,rortcm C ti tn+'Ja'v a

PoP"t us,ng third pc'rg iduc ccm finl tiKe APacfre DecP' \i
DB iab)e inofc.d e

5r&dcoI (+ )
u9to rt^robex
I '_-)Srnrne larclnra (ro)
+__
F saad Va{cho{a C2o)

/l DbOf."an- -ic.vc\-.
iava' (lj'i I ' 'lr /
irnfrott
'p,ff,ia -invtfF \,
D6oftttc'ttc"
"t oaa);
no,8t'tng mme, 6h'lng
fxrb\i c int. ;p6errl#o (int
Yfloc'ddf)
rt'oovfittE'51-d'g
gr-lc\ic iff qPdrrrcDrtrrs (mt rro,sni"g
no)',
prbtic in-t &ereFt<;rs (inr
inl c*rrtstt,.ftnrc( ); V |,t&{ ,
F-'b'i' SaflU 1"c"1 %
1' +uut'R
6t ,aoDetaits (ior no;' k reca^
Pdi. t{o? 6c* 'lnl g<fr4 q!<'J
(Sr"o5 cirq\'
-' J I
g:tSt"Oet-rs -'q,r rn .m e lc
'
Fo\i' Usi -lttfte''ecL'j(
c/ oc ap'ra-r'

)
v

'
joVa
DBofraHon8ro'o

,n#j iiil:fidH;#;"" irqrlcrrrrUs D@lxttallcn

{" lthron tr'Df)./tg


fal.Te-P)are ib)
/lme*oa 5 Cc,nsrrudc't irlP-ttcn

Trb\ic DgOfriro,len &un fOU.tt-pt"*e, KrnpraP)

tt $;s.jt = ftrnPlcrtl
a
.9
//;rnpteornr B.n.retbocls JDGcT(mpldlc throc.g b

Purnrc inr insecTnPo (int m, 5t ',g tn-e,8ung addrs


) DcJdACa€rJ fixcq t'lco .

Ttrr's ts an a1n1l,aJa-< I
{ ekzq\ ll c,n. So, exc<pblo,
,t' ?')': 11ffi.3 in D(o.'o&l<
lor TritrlJ - it. u{dd( ( ins..r into €rcrdenf vc,tues(?,'1, j< 6Pild'1c( '
. fe[0 O*eurt ] [ no"'d''f '
a&t'r63);
CtulfoUt bo"rr8
&r?ptles he 98e""d Pc/xol-Jt*<4 vo-{ug aa.ncc0r

refLrl D ltsqtt ;

3 n$att)
( it" *'3.an6offo-"'
Sr'"3
prillc int uph.reDerr;Ls

{
. o'
frl-
s'r<,delll- Eu 6mrne-- \ P
6mrr Sadd=! mhcx
in Yuult =i b' upAett< L atfA"r" 6rade
\
^
" lt*1"* )f
5.,o-- ? , ned ohr'rll '*tqq{!rn'i
L-, USng Prepar<aSfttt<ml,trl o4iecrs .

\{rurn Tesu\f ;
I
t?
rJ

inr detetcDtrc'''to
(int no )
FlbU c
l'rtr- Cbtt*t ]
t terbe,re g'o=
0
$..&nr
- ir'uf dc'rt (" dtr'rt &q 1",3);
lff Tt.:u\l

rejuvn re3ult)
q
J

$iu'len-ra
()
Qu-ldi
c inf Cdrrr-l c

ohYtllt3)
{ .- - ("rLt .2. (x) ff'orn stc'den* 'ne-
inr rtsoll = jt'guryEnL-* eocrnr
"*
"Yenr\o resolt
"
3
llat I irrr no )
F o\1(,
gersrr,aDer<urs
? "nar:
tPhu.^c sDo= ' /
{ + Prum eruAtrrr
ILa jt.qpa*U F"t1"l (" soe*r It
Yo -* OhF,rL "'3);
Cd{$f'r.f I I ,r.-n
T€TINN m ] no.ts
; )
vdut6
k

[Lb\ic Lr* goSt"a.*rD.r.irs (Sr,iq c;t5


)
f
L
i

Li., L=ir'g..'U[*Liat ("s.i.* + Bo- Sudeag grJd=!",nt-


'ohc"' "/

return 1; Lit Dotosr,'<tw .


OhF.rLll"ryl )

J
)t
)L
MO+ fu1tu3f,&ltLc^(,

/l agownonoocfu'xrr,t .
U
{bean5>
u clol5 = org. ap,cie- Comrnons' dbtp " Basl.DJc.fuc.'{(f," >
zhean 16 ='ldbcP
.J
fllrnc > " drive'iclabNarne

4Lron >
>
" ilAbcTernplafe
&ao id*-'Krrplare clas5=" 0r6'sP'idUc'o""
"ducP" /'
" dofc,Su-.r cg ' reP -- .-- z
ZPrDIrrYt n&rne =
tJVsn)
>
id='dob' c)drs=^ D%6'co{i,," Bco'"'u
LWao
amsrncttx - uJ
reP=" tetnPlote'/z

Awoo,
4,wns,
// Ogq"*x C I i(rrrf iiav c
^
irnpc.it- Q3. SP'Ccrilffxl- 'eqrrlf' " X )

Wuc cl0r5 D8Op."*r.lr.rCL;tr*


{
"p s v rn(6r"nglJ attb)
i V.'
ll P'tvwe Ccmraioc.t

Conn*t c-i-x= h€u) E,.Su*htra*r ovr Gnra I (O:;Xi


EifelXsxmX.r fupticaf,tcttl
llgr&"", clors ohj

DBq.rare^ Uhr= (D8op"<'nrm) o*'5et8ton6"'lob" )i


" )'Sa "

*or cre ieEtrtd " + bo\i' 6rori'4o' );


. ]:til.i' l*r.u
.-r"'\ '
inse'nrlofa

6o.pCno.orQer'asthorco'eUeda*ea..-1bob.),u$axDo<^;ts[rorjx-'t;|.}""qp)
(l" t ));
' d ete+r Dero-rts
u[ Rtca'd s *t* o'." deten"r" +bobi
S'o r I no
s catnt" +bqhj ' Wful"']sc))
)

So r I rp'of Stz.len+
(or))
bohj' getsrt'aDera'rs ;
6'o,r' (" (tit stuclcn* clcrurs' +
grsyao*D.r.,rs ("b6ad'));
s.o.e[ @ hgd btucrcr* JexitE,, 1bob.r.

3il*'
311.oo

ja., f;trs in cLAss PAl H :-


cornrDctns- Iog8hg "i,'^'l
? Sprin6irrr 5 --"--.
6Pl]n3
"JqY'
CornrnClo5 - dbcp'j ay

0 5d bc r+, jc.{ a
:
;n p\o-roJcBc s6d
in 6*n35DBc
9' nrh* is rbe digP rjLo exec"log selecrlueYb
is rpt &'rau7.tbte oby-ti ruseod
g:- plc\in JDBc 8iv€5 QebLrlr&i oloJ€ct' aod )u

Ovet tbe neruo6F '

List, ttoP 0uf<rsft?rcrurq &nd


icl
6Vnng ooec 6ere* quc:g ButA Qesutrs
/ All colferlt(Jn Pramc coorE
drte*tX orrx the otrqlrrY- L D***'.r ot"
lr]( can Send rhis ]'ra5hru*ulcs &'tt9zlble oUtc-'rs b dk"t
Sprrq JOBc inre{oatlt uses ploin,rDBc eu.nrho*B h ptarn3Dbc flrac,cs

CbetledExceptloo Celed 66t-Fxceprton. 'ilr $*"3oDBc Ccrnve{rs rfro.l 6't1g fO

UncWoEed l;xcefilorr aued D'raAc.eas["ctprt"o.

g- FDric inr q,ue"6F"rlr,r(g6"3 ?n) $m<,x ftnffoerEJrccprtoo


s
L
hb
t
/ploin 6uccodc
.L
J
e)
Or,r<-t' IS8rExce{'ntcto
I

itrocr rrd DroAcae*ErcPrtcnL))

Ex<4*ion RerLmcotn3
IY
\,,

The Jnvo. cla55 il^nt *trr,ireLr<b P'rststcoce \o5ic


{t* otrc,,o lqicsoP*e

Cln mov-es $e furgistr_nce \qic cta \tusclble


CId{) ticcttt i5 co,led 0&0. DAo

\qrc ond tha Pleriote to6lc to brd;h,


p.xamp le Neba4plicatt q bas"d o1 m'tc} Ar.hj kctqye aod irrple ot n* r>3 Dno Dn"n u^

llaioserv €.{-
CCrrot o,ter ;

brdnsct tiiodq^] e)
ro ' btr"tt (victo
tJ.rogi. )
c;grr*,1--- l voo"rttan (fui4 genn

@cu.togt.l

@
(prevora416t1 fr4;c )

ic NcbPaq e
(Fscnt 4rp., I-b&tDno I DAo cta"s
l-r{ i() )
(F.orrst o.e ro8i.

De slLo

In rhe abrve atpliceH crn

o DAO, l'1vce ft5i$.' part fn5 are implerne^reJ

o OA0 cl&s5 Gjntrrin SpnngJDEc bd.6ad 1-z.{sJ5ttnCe Lqic.


@ Llse &xv€'t qDooc6€d dynrrzrtor' 55o) }n rbe cubo\t€ ap pt}c'oHor" '

fts;gnflrrton il a oe oa'$tcartoa flrtl'P


Betr sotuncrn % rcoccurrinl pyDb)em5 rr,b^t
rJt
b{*"Y rct'tJnt
Driiqnk^*c(ns a* ,he Sesr prartcts ro c\<*top sla: aPe\icano.nt

.,n tU c{s;n3 l'lgEcti pse trl'x knz't


ft$ @ prn.edut t0 .ler€rop rbe a&",e .odD appllc..tl

8i(P-Ii Crgle wlD [^j".t


Fte ""3 Ne cc *-, NcbPrc.ie Lt

ttrli tct'el [6e.u,r --l Fnlsh


---.:
StrP-s:- Add s0bng C.'{sb\llHes to tbe Proie*

R,ghJ dct- dr, pyqje{r ---- -,-+t'rgEcliP(e + ----) @srninaso'.


Add sp*ng Ca.Debitihic3
[trz'vic-s * sfl{"tq
ffl sp+r.3 j'o cclY6 r l)tLr*ts'(nce a""rt lvfJ#\cf- isogc
.,r .-------c..m
6x?-]li, C{rnA6u.€ l"lXDorrrlio i- ,Seruc4 oP coellql. *""ct toirh lt F.L)P((.IDE-

tJlndco rrgyL, --- Pr€fc€rlrt-s \E)r'ese ---) Jcm,er{ ----s 514$lo6lc \--r'

---
-)
[Jcdo5,. lo,x -------+ (fEoaole -----------J

Bgn hoare D**o,'3

Arlmlnisrcafl cro . UStr name :


passox,rd :

Q.rcIlUctn D znnai n rOOl;

-----) foel! ------------+ ok.

Add 0.Dbcr+ , jar -&'. torbe Buitd lle$4 r{.'e Fqie4 Nlxt't tl-<tlt<&^S
tpl'd^ MdcLLa,Z<n tI,4",
6-,a'r"1 W-rca,.l-H er lafa.
IIC"n P'oJcr* -------+ &rilaRarf: ---------+ M pa Ertcvrre0At..FaleJ
ltd,bcL+. jc.t hrc.
-&ocar<-clrnAS<fu+
\-/
6tcpp:- Add f;1ooin3 €nt-rics ;n $il€cPt hLe .(r"roaercq. x*,
)
-
= or5.sf 'inai' Jodi Ohfcrtr'oto'gBean >/*trc..*
/,,.ao ;6=".,oPb" C\osb
T? apPt;raxo" {,p61 / * tr., ft, &4p!i
gW' b v"Le:gN Ir *#;*;il,|;k
lptogrt l D,irne="
Jndi Nary6
l*rl+
aJ rs n6 oecd .t g,rrn3
..Tt,/;daN
nnl t" ti
zlbgrr> ana, p.f,srrrcG fali ,,*.ir.%.:fl^;-,
o;4
t1

Lbec\n id --" ter',p)a.te c\dss


= O€ 'sP ' .jC bc .co.e . JduTcroptalo
lWdW\ harne= "6k&r,"c6" j
rc(=',lo(b" l7
<Jaeao> \-J

<&or> fd --' rnSdao " clcl-s ="n9Dko" =


\-_,/

<WYfl 2 v
r^o-, ="r#.* ref.-" ftmflu<' f
J
4Lr(rn >
z.bean )d --"fnO " class=" l*lodet Brc.tu > \r
zlrtyry fnn-r€ " re| -'"t4Aati' 12 ')
='rnda6
<lkon> \r
\_)

\-..''
6"pa, poelop *1s DAoclals as Eho.;,o blooc Iv'dr'.*re tofic
f$^\.c.d,.|o"!
'=--+Fu tI'
Pc cn g, c cla:.s clor3re.5rre:
^4Dde'DAa
-'-r
--J clats nd,aD+ol
ftuwtc
' llLeat Wf"vu

rnrvl+sl":tktb
2' JAVTT^P)aI< ib"' InP!|on
l/ nar strlrrl-; w'ohd krsttt'-
jc
prt2r\c Vold atJt ( JdbcTe'npla+c )
.,0
' i+ut'ib--ir;

*,'.n s$fl;.,ir-," (sm"3 ctn, ) nW saad=\


,,rrt -H* &= ir'ry*xk& (" **
n P-- si.de"t '
n rf,,, oarttt [l l"n] );
Xnqo *ai
! l*"a
3 lo^

--ffii 4t'&'tsc'n
pc oor (rc "------, #"ue.
T:^l<x(arc -----., Na,"<,c'" Fl" &)
pq, --------->
-------+

l/tqodtl, ) att c,

WiL inte^Pacr
fi4Pljsr
llder I
rtas.-ti".'+Swdr'rs (SH,J c tl) ;
3 (t"a yt,,
add nole)
pc cra-r. Noroe '' Mo&I B'arrt "--'--n "
so Src-------) M,t1 ------z -_-

;.,ubl,rc cl6rs ltloderB@D itn/tr*'nrs f'foao I


/u,." y'1'*3
llodc,rDAo rrdao',
ll *x, k'ilkoL 1* s,r+- \i"a*.
Fldt c Voi / g1l'lda o (MoaoDl'o "dr.o )
U
*. 'rndqo = wdao;

p*:. ffi" sp^',4!k,J.,.6sC&.4 dt) I


//b.to6rc
if fcrq==nu, ll'ffisj
1 .,u ='ha" 1

3
Iuse Wst@Q lo5;. og DAO ua's

Lr.t flapS= ,"d*. 6arD.r.-rs(crtg)


rucon {r;
\ ll,,'l.'\"A
\ llictot

Fson-hh"r to $a6!rmt {t&,. cP$e 6rtqjerr


Iz.c {d rrawa t ------'-----.+ t,t rrr r httn I ----------z Nlarne
; F rtn- btrn I
!"conwol)€x
LPrnm actloD = .,lr,+)d -" 3<f' >
/iorij-t tbtt -'ttxr'' rnrne ci\' l'
?'
cilS mroe
" " Va-lue="'&arch aew:d 12
Zinrur tgrt='ralrnit \i
z_1?wn>

gngr nljc-
tt*j add lftD?tra-r-1 rt'"ict+

[2
odlsrlkar'{
c---- uan -----= SctV t€-t ------) Name: fl61e,!-rv lc.t ---: B tr.;r {raler*6,
FId6<dloP"nt)
-------+D& F -__--_r .?"r,rel
/oP Yr.PPrn1 ut t : Cmalrlllcd

l'ltrc9"vte+ -E'"rcb. "


Po.bllc closS hoin&orl€t o,Kc/a {.
l'4odu boui I -/
fxtbUc void inlt() t
',J
sPr;Scrnlalnw
/f+*uuo
Ca"*<xt c}'\ -^ clcrsPa4' XtorApplm'rrc'orConrc" C"XW
Clar?arh,Xmr fuplrcat{orr
'h- Co*-n'q !/
il6+g"^fl&* o^ ,4n,'+

I -
&e hhi-- Crb&-t) etx' grBeo"'(''u" )
\J
fln*t) J
Prbrrc loid a"Go(tt6P ?eltrcrt/ ltSR *"p"^l')rf.-s SF)'TOE
:
{
dc.ra
r\ //ruaft'r..n -
\rtq Q-- te14e5f51''Srralarn<rw "'J ")J )
[-oT
SYParornetar L
I coq g.rnar(uA
\ .
Lsr{cae *=
Uui" aa,cr,6rcaerut (sr);
//feP ru,rr+ in klrest o-tt,'&.r-<

/'&"*"6 kryest fu rv-rct tle -,.


'1ta ("arsuti'jsp")
- I
R.a*rDisg*<-het yd
= r€lAest'6oR*1*otDtFi'I4"

(/aoGaC-,-)
)"

: prHic void d.P*r(FlsP r.p,st, Hre *'r*o)rf"* sE/JaE


.
d

doGu )
n"
VI**'*^"*r")
-J
* pr-blrc Void desr-6 C) |
\-
'
3
bohj = nutr )

t
It
' o'to"
to
^ 5rcp [i add rsar+ 'isP to Nerrmt
I tS Xejtr\t'Jsl
FLbroot
rnuP '-----r' '-rco
$P-------r f\larne
P'Con
'- Ll'@paBe imPof :^'iava'ufi) ' *" !'>

1tt>
/tb> ino Llth>
ztb> smr'' r t lth >
zth> SdAd /lfl', >
48>
L/' P^ (i"t i=o I izl-si2e( ) ; +ti)
JL

11,.p ,n = (moP).1' ge+(i)', /'z


ltr>
LlLa >
Ld> t1'=rn'sefc"s^io")'/'>
21!> L/'= > 4d>
nD'getC"SNAmr") z'
/d> A'1': l'rr'get[''Snoo') v> AHz
zlYt >
)rt
,J '/7 4uw>
&cp:.""- Ruo rbe prDjee-l
PlrnAs fyuklifrJe goaw ctPPl)catl aD
Bc oo Prarer --+ -_"- ------)
l^t$loBl clo'x

. .'l
cst rtc Pilded

OF,n Brocoltr L0ioaoco -----------+ Lr+?;/i tocalbost:11'zl f rc*Patf forn"hrml


j
procedrrre 6 Gnhgco.re g)eSSF,sh E.X Dorrg,n Seyucn (i]irh l'1U E<JJ'Pse JDE .
J
l$lndo<omtnu--------e p^rrPaeocelo ------11"t[EdP{e-----i &nE-na "------- blarSFXXtr-

&,tassFuha'x @E.nlte------" ]l''ned'vem'X' %


Gt?igrva.tt' d"'",r"^6 : --------1 brein fiarrr :

.M^
----- In rbe Clrn9t26.rrortor, Rr" tr c}ange iind; mrnt ta 54rfu"- lo t'1 3 D5 [ha-,
\-/

Conr'ed'too pool trq


dcxsnot provide Senvcl cnar63ed
JP ondertoXlo3 Se'rr.'t-rt
pod5 tn frd avnr,|bcLsed
-lhiYd p&(tLJ ccrnnecllcn
pyogyarnm e,r cctn Ltse
\-'l
hlcb alPtlcoHc'n" r$\ nin .La
lne "Vtel
lmro"rto6t1)
plain Ccoc su'r'ac"rs an\X PosiHondl (*'*'Vilii'
par,"$()a{s
-> brb psiHo'(?) aod rnmcd
g('in]',xosc
'U Sw9crs

.--+trhrnePaT4rD€}e{scc'eset?descriprSue,fuoc,rV.Psitlcrrr.lrfufe$&o^u'(neeAt/
dDtscTernpla}eclalsrtocooucoirhr.l"*..,patamefo,let-n^red|*t,,"eAM,'#fu
*ki Jzgc No"5l{ss
kwbc"H'"@
M,"..J f6,1apefr',3
4 Fr aa"rpte apPlicdlldD cn

\,
v
\--,/'
ar( not dltcsl X possiSl€ coirl &e r*thado
of- ra 6tTcrpla
iP Cafain (rrsisK'1i of)e'aLkloos
g''p€rt '
Oab$ then toe Caq ]mp)crnen t ihcse og,ra,rlon6 coirb 66tttbacr iDrctP6L6

-Io rbe l?esut r5et oU


Ro,r l"hppex Poc€r5 one reccrrd oP
-> rnutHple recerrde oF Pes'rt set
ohj
RerrLrfuE ohacr^ --> ib P.ce^E *e
P."pr.aSr.."r.*.rutCrc.tar &ro ohic* f0 c.reolc and c.ee idbc P"q-"ea6rt*t-t'*o$
Biu€6
-_-
?*p^.d5r.*,-.'*5.tt<,, 51,.s
P"tpr"a$tz*emenr og to u{e ib'
ond uJa{uDt (0lr-6
15) ,-oY exqmpl€ opplicdfid'o - on spm,xDno fSose Setact ofxnaHcrnS

*' Prgt rrds QD


*@
of?ticc*tctn ''fj '+

l{loe lror}

'^- '--+ lnorder fo maLe oertcrin Bcratnes's Logic as Teuscrbte togrc ond- cenhc"{-jzed
oP D'ruB*es)
103,c ux Cc(q urrk coirb pLl56L fttoaedatre6
c'od R ncrong

collooS oPc
'in
-'. PtlSgL flrDc€dqh€ and tr(ocJrc'ns are rlisiule rnuttiPle oPPl''

rnodulc c,nd ln mutFple rrrdulee op a prqiecr'


p," *,rs
Ct{ F<rr'Jrcro
.---4 Usi",3 frr"ng JDac @e &D ccrll Pu\go'u lrnrccdrrre

|I)e ntedf6ke c Jav( ClasS e^fcnd,lo3 -fioa Or5's?'jduc'ohjcot' e*tPffi


ed fD

cind coe use ex€cr.*ec) to c@ot rh,e PLlsst fmrc<&Ye to) fi'ncnon '

'- @ p" exarnple c,pplicc"ttcro ao (or-{-rrrg pl-fsor-


proced"e 4 o't(!t-t" DB 61(o

"€ee'{ Pofe rrro; @AO A-feoso: @ !6 usln5


Logic oirt Ye &udzed
plcrtD g65c and 5pY,ng ;Fbc yeqlsrc4e
sJL" lelrnAenr E'*<
e",<- DoraBcse
39rt- Ouevies c,n d *rse g6L @uet're)
?M+H6' <t
So, W rhese PcrrsisKoce
)-o1\c A're t"-Jt l- ^*-'"n
LzEi

Lo'd;' torl''a^f
flD6t\ffn
(e
---? ro da,elop Ohrts b.sed ft-tq6Qie slto ;n'lepc#e'rt ++&'n'*t*
Lring soll6uedcs then Loe ne€d fo mcnlccoi/,.r orrn sltos lirc '

fBaAoS, 16P lin k ond €-re ' ' '


OPn slto' fiar its Pro^ride
:-r 6pnng ORn wrlule d crs not 3491t its ocon slot'
ku<'t cn exi6tinl oPr4 slrrr C.nJ lir^PliFic5 1te Prccer 4 Lca<MnX urt rd opr',t
-lemplat
f;" +u. lF e'rct;es 6stflple clc{s Sea .

ORn 6]co ir6Jeroplctt-e clas6

H;berDerc 619 ' o? - oynr, ' bi&;rD-t<a ' lh r"ror<l etnp)6Je

ibons o€'5F'otr.o . )ba-H6, 5q,rYbpC0c"trcropl<rre


3do oq,sf, , orro' .Ho'trdoTcmPlaf<
JIX. afi.sP'or.o ' iPa 'JlJcrnol<tt'<
'1bpt;oE
iq'rf t< ' llPL;nrT-Pl.rc
^rt,roPl,,n
p.r trus
oq.sp.orro.bib,eroor€ a.Lrat&satcnkcr."gk n 0hrs &s€jcnR'4'""u 4j'
JdbcDarcrSarrce ohJ ;r rcryiw d.

clars oQJ
futa"fr'cn y obj )e rq.r\rtd lo L$.rle )Ab,&IAe't'PIat<

a Eeoo rbsi JDtsc kd'<.8ctu-c€ obj


B;t/e8

&aq Tlr,f gl'ca t}'"u.trrrrc S.rrl*.,E.t3 oq1 ( b-t&ot'"F"4k'^^d)


.-> @no
*# 6&^
Hibcr'areErnolare

imgrrtenr rnerbcds 4 1-ItermrcTe'nryjt^t


R , Sinatera,o oPx"ollonc :
P"r reccrd iPseaic'"'
@
-- y *il:
:H[ **.^^
"*"cj)
lard0-) I Wa'^t,.I*no 1€cc'd *rc'"4
)-r^ur'-r-+ ft ,dd( ; {.n ioornng )
oeAoH'S '

et t*i'P )
,^-birJ^,*
e^ ht\E oPto$T'-j-J o?t"o,J^
kl --5
k)
urrrU@te
o"rrU$orc-+ trvrl-
-r
^8c'reJ '.iH-r..ryrr-se)elr
fl6,L B$ei
oytd^
e,,err oy@
Eqrrt
---n P^ |$r-
il;r;ff.naxr^tr) P^ Ho' b/t<ed I ,L or"n*.*'
iftratc ('',W
-->
ilOdute -lll
ug!ry rg"r"
tpringcoirbHibetmreApp\;coniraltrDprlog'APPDT€-PYeseofgB'Log;c
L-qlic'
aod Hibcfnrc Afpn 'G{:reSenrb Jrraiereoce
*--> Sp,,ng ood l'fiberrn-re Jnrcgrario'o i5 mrbiog h.r c'cldiog b;utt*"tt lrt6i5j-..rre
logic in 5pr;rg appo.
: buqsiog
_-> Jb trrl re l*beroa]< 64>r> pef6i5ieDce io6ic io fix,og&rn ctoes

5gr;og CRrl rrodure &r need HibrrnoleTe-piore class o[i '


.-, , 1
u-)
ctr-ns
- 6trrr,9 ufth Fhl*rrr'l<' Appn lusiq Hibcroorc Terop)c*e
J

fii6ornqprtpp
Byrffserr Ctind oCd

',hva ( HB PoJoc tc*l

lPrhere is no *{",tc,t< lcoinfssLogic ;D Spn$BcoD


rr..,.nlJ*n*log;.re
clcts cls
B.Lc,g;c 4 rhe St riqgB€.,n

on\g 5Pr;ng Cronfigc,rc.Hon Firr qlso


l"na,ntcriniog \he tntr;% o? Fhbrrno_rc (crnBgo.rc,l"^,,
Pro€cdrrr-e tn de.tttop tbe abow $;ng crltb l-hbetoc,t< erf el.':co6*

6icP-r:-
ftvelup l-l,bc.rnte class) rooPPiDS €.le
rroa-o
jnPo'- \-/
keeP Spnng aod fhbcroorc y€laJcd .t'av ftfeS in CMss pArq orrd hJE6__r^)r\h.$

jo, 8r.s
6,a.^) _
in c$s6p4ru : 6prin6. jar, bibc'cnre a..ic.y

Jar Eres in dg$-r^,F\ lib Brac.r: ?----------) sprrng ,hr ftres


' t'-------e hi*'o..,'. .ht &lcs
bfeP-m:- CPg *re #'rro.o;t,3 bcaos in Spng cfo B't c

-> Beao givrn g filbchrc.Soc.rce ObJe4

-, Locrt &rs,t"lH*j ra...., flvin3 l-$berrr*e Eessronfr,ar<,g o&.r


--J fHberno"reTernplore class as Springka.b

our Spring $can iqlttng l-hhrnorelernplorc ctass o\ -

\i
Srpry'-- deve lop Epnn g Inrcr$.ce, SPnng Eeon

NOTc :- Nrirc f€r6i5Knce l-ogic ir, 6p"ng&oo ersrng


crass $
ll'tcrmrcJe'Dtlc.* ciass o[i
v6ulcx Yr&nbet'
6rc?;[:- the renrro'rnirrS'resocrrc€s & rt',e OfPo in
Deve]op

d Spnng u:rrlr Hik"nc*c olPh rePus lbe


Ro tna crbow st-t?6 base
4tt'ndocrf 6n eo/ oal zort
E-rpplime rLtc't AiLLr'
Tbe l-ht- 6uev9 $crt is plc"ced io rcr{,p;r,g 8re borr"6 loBic'I rrome ;s czued
"*T:rryi
and hj Nl&rrfd payam.

*)Exeat',oX tta,.11.a Nrn,ie;,l,tnrs nf,i po$r;cnal pasa-r'elr.s

gq a2, *.,irc Nahve seL q/rr'! 16ifl1 p0$ t)owJ Par\an't<a

zh-n>

"t*l-- - '
Ll\los; >

/sql' qlletuJ e6Pg"- #s+N''


-9s(d
LretLLyn clars=
-Clg poro rtr.s , -, 7'
e
? and
^.^A t!\e:lidr-=\ fJ>
ulc
Lts"dd -- ' -

./t.LcD^1Al srxt+ ;P''; ulc'n< obo"e


zlsq'vqut\z
zlh-m>

€ltp-!'.' ettllo< lhe aJfi\N llI+;w sar afm4.


()
W5\i L l-lttcttx't 3e*
fut/r.\

[ ^ l.rcste,, n",u 6q3c+[J {roo,eat3)'


g"dBXNavPd t}-'et L 'r

Lxr J= br'
awattx ib: 't' ift{clto'() "
wluro iL)
&

*) fiieot+' airh Narred Pararnett^t


Mnrd Alo.t+ur SaL T\
6lq-ri- pnpart Nanve eat ytv,1 NaLnxd fxta:tt*o"t, )n malpi ^6 (n"
';ltl,
2)ym2
Lclass --- 7

,1cL"s>
&/\-1a\ narre =" rutd >
LleWn c lcrts =" Uy.n' I >

.ftl4 a &o- u !cr.s u:Ft rt role =: ? r

rlsql-cyr'ttr 7
4h-n>
skfilh. erco* rhe cLbar€ q/a$!
pAlic Jerarrr getfuta t I
Po'o- f "+"t2 " 're, Sm"6 ! I t" ? ;i ,,"' 54Prl3[t r]
Lrt l- V,r- ft
"
iBU rtto*"' 6*"i Amr Named

zE'.et}1{ it; '! - i hera*s c) /'


fl h inst<r $ogle r*o,<d
L/er ut--oeaa UarCr; \-'
ar -selUid(loot); Wb;re Wnrl";o3 W;rb pb.;n Biklrrrk o1.{

&r . scr L/na.nef" p41at ",)t bt


non - &lect per{Gisrertt oPactftcDs rncast .\.,,.

Ltr. fetPolr C'p.l', ); a5 -lrr.nSacHonal 6t€drrrrnJ6 "


P;elJ,J-red
bt.soue (al; &* ;n .fi"6 l\Wnrc lhar i< nor YeoYnftl'
vef&t0;5;

P[$]ic Lruatzx AtDdJaL) "


l-i* r= hrl. pna 85 Namza 6u ,\ fud Naxned la:'arn ("rutz",r''t'"t .9'.5[rIt, 3,nao @1..rl3
IftY,FL,t iL = !,ituafa< t))
/l tr 6npn- burr< rnrdt6'coFon using il6u
int re,s= bt-br.tr?gdat<C"rtdro U*n u1 ser'o1'rb1e=-1 r,o'k"e ulvole=?'j
nw Ohy*tl{ ng.r'l 'i.r{);
S,o'p("n0.4 r<atcd6 *at a,< u?&xA" *):
rekfn ib;
onA +av't **
cn p\ao kWna-t<
ltn
lliy'lrr,ara-templale cla'rs W\)tdes obsnadtn :
{ne 1,,'-,n6 lafunvl oyratlonl

-)

{nt &-YSuo Dqet*'


2 Tii!e:Spring with Hitrernate App
= = =,= =- =::)-':l::l- ----- -
{4#,sd€t

L2)
13 public int getuid( X return uid; )
14 public void setuname(String s)t uname=s; )
{5 public String getuname0{ return uname; }
16 public void setRole(St.ing r){ role=r; }
17 public String getRoleo{ return role; }
is)
1q
20 l*
2L create table users
2-2 ( userid number(s) primary key,
23 uname va rchar2( 20 ),
24 role varchar2( 20)
25 );
76 */
zj -__,---_______ -_rrser.hbm.xmr-!hgs_*fr_i:_s_qs_____
28 <?xml version="1-o"?>
29 <!DOCTYPE hibernate-mappins PUELIC
3O t'- / ,/Hibernatel Hibernate Mapping DTD 3.0//EN"
31 "http: / / hibernate.sourceforqe.netlhibernate:mappinq-3.O.dtd.i>
32 < h ibernate-mapping> f'tPotr6 cr6l S
-+
,34 <id name="u]T-column=..userid" />
l5
36
37

39 < / hibernate-mapping >


4rr -------------- -demointer.java-EPil&r$-tl!*!9-:-------:---
41 inrport java.util. *;
42 public interface demointer
43{
ouot't rterator getDatq{}-
13 , fus;ncss mohod, Decramfiqd)
46
47 import java. util.+;
48 import org.springframework.orm.hit ernate3.x;
49
5O public class demoimpl implem6nts d€mointGr
s1 {
private HibernateTemplate ht;
i3 f I fo6;. to ioj..,
21 { nubtic void setHt( HibernateTemptate ht) (, +;bet rrat( Tcmplotc itc..Si o6y^6 .

;; Jt this.ht=ht: | ;----ful
s7 Lr
58 ,) *1.^rs l_.!l*leL
-59 public Iterator getData( )
60 { r---t H6L g,ret)
t1 List l= ht.find( "froin User',);
62 Iterator it = l. iterator( );
63 -
54 return it;
55
56
67-...--------.--....------'----.sprinqHB'xml.-.--..
68 <?xml version="t.O" encoding= "UTF-8,'?>
69 <!DOCTYPE beans PUBLIC "-//spRING//DTD BEAN//EN.
Page I of 3
/ sDrinq-beans'dtdl' >
70 '!httB: /./ www.sprinqframework'orq/dtd
<beans>
<bean id="myds"
74 iitlJ!:.[]tl"t,"gframework'jdbc'datasource'DriverManagerDatasource">
gNc$ <orooertv name="driverClassName">
-
?"Jr""l o.u.r..jdbc.driver'oracleDriver< /vaiue>
JDg C
77 </propertY>
< propertY name="url">
U,ra9'{rJ'9;
?JJt-ueliaui:oracte:tnin:otocattrost: r szr:satva</value>
ohre* 33 < / ProPerty> -J
<pioP".ty name= "username">
(rur,$en{Tl <value>scott< /value>

L04
ios <bean id="template" class=" lprop€rty>
106 iirii."v > <ref bean="
".le=i'sessionFactorv" rce {io€ no; *q
1-o-1 </bean>
104
Org snrnq i6s C<bean id="d1" class= "demoimpl"> > </propertv>
<propertv "J-t-=l t*"t <ref bean = "template" /
""-]-ll].1t ro { < Ttrean>
lfan(otbfi$fD!. l- y@ tioeno:lob
inf,Ldng lhlilBol. l (q0bt-€ (lc.ss obJ
113 </beans>
114 -------------------------------selectservlet'java
1i5 imPort javax"servlet'*; *;
116 import iavax'servlet'http'
*;
117 imPort java.io.
1fS i-.f-.4-grgirhit'"'rffi
119 imPortjava.util.*;
iro ;;;;;;s.tp.i,,sft"*"*o'k'beans'ractorv'*;
ili i-'p"* ".g.springframework'context'*;
;;; ;;;;; o.i.sp.ln!f'amework'context'support'*;
i;; ;;;ll;.1";s selJctservlet extends Httpservlet
,r"0,,. response)
111 void service(HttpservretRequest request,HttpservretResponse
i;;'throws servletexception'roException };
t , {' Pritltwriter out=response'getwriter(
;;; svstem.out'printlni"tn seivice method of servlet")i
t?Jpti.utior,-co",textctx=newrclassPathxmlApplicationcoht€xt(
13'3 tta''<
i1i
;;3
{:K"*'ffi;tr{ffi;U6t-ttsiveast"^xw4'^
lterator i1=d l'getData( ); red>'l):
;;; out. piintlnl"<ooav- og""toi= *rfffcc text-=
users< / h-1>.<hi> <br><h3>" )i
13s out.prlntln("<n iJit-t'oiuttafr
;; out.println(;<tanlslvicllh=8oo/oborder=2>")i
1zz while( il'hasNext( ))
13a {
16?-rrr,r l68icro disptatd ret*Ls as I'lrhL+'hl. VffiSffi*,in Ur'L"
Ft's'ncts nvd.ccls af h;5 &ct"
4.39 User u1= ( User);1.next( );
r40 €ut.println{"<tr> <td > ".} ul.gettrid{ )-1." <trr>" +u l.getU name( ) + "
141 <td> " +ul.getRole0+ "< /tr>" );
142 )
L43 out:println( "<i/table> " );
t44 )
145 catch(ltffiException e)
146 {
L17 out. println(e);
144 e.printstackT.ta€9();, ,,..,"., ,,:
: ,.
+fe i"l:i-
tF0
151
ls2
153 <?xml version="1-O" encoding="ISO-a859-1"?>
1,54 <web-app xmlns="@"
L55 xmlnsixsi=" "
156 xsi :sch€maLocation= "http: / /iava.sun.com/xml /ns /i2ee
157 http: / / iava.sun.cohr /xml /ns/i2ee/web-apD 2 4.xsd"
158 version="2.4">
1s9 <servlet>
16() <servlet-name>select</servlet-nam€>
161 <servlet-class>selectservlet</servl€t-class>
162 </servlet>
!63 <servlet-mapping>
194 idervlet </q€rvlet-natI|e>
-+6 5 <url-patterh>l!!! /r.rl rl.0qtl6rn >
166 < /servlet-mapping>
L67 </web-app>
164

SFioSt+gAeP
696 -r,NF
clcss(6 .-J
Lt!€{ '.t'(s.5
6Bl€.r6c' {l
(t ' lAl S
(

[8rt+r) tilart'hbm'^rD\
WLb.nml SprirSDB xF)\

d,,,Jf"'Jiy:!:?
JorFret in cga:pAn+ : scrrl€l._Ap;.jcr.,, d"nol",et - iiass

jr,r ftrts
+n"t,r.h*liu.*.la.,i"n
;n ilE8'.rroc\li b htocr .. e _____-,
"p"n,;o6r.s
t--r ilibrrrrrtc lcrr 6r<3
I --* ofD(icw,,ic.r 6t<

PexSitEn.e o?e{oH6rr5 clcae!


l1ore
S crS;o 3 Hib€irn}c?mPldJ{ .

r) E^eGir; og HAL 6€.EI'! 1u 6j coi+ p6i 66rsl PcL,{.(rnef(Jrs


fLdi c Itqotcr gerDrat;
l <=l nurr tlt't."*3 );
Lio n= hr. Fna
[ " Poto {se,r r,oh.* ai!> = i ord ui d 1
Ohiq,t
lrpo--4o' r&f..S
Jtrtrzr ir: L.ittrolrx(-)j Llor"-- ;j
t€icq
Ftfqmet<i
3 D ;r )

+) Exe.r'"Hr) g HgL &tet't %d)t rorh Nanled P&rcrrnefo(

lltbli c lfcrotar g(tDttaC I pase 3 at 3

U ard uid 4= l'fa', n&o 5r"r6tlfll'n


,,r, ,-, ht.PindByNr,,oede.^.- (" k*n Ustn r,oita,.
'*3jG no"ta p"r'meSlarr cbtldJ
I'ilcraf,6i),'
,r,'er,,?^ it liDo'r,ol)i
=
.. ft.lzan iL,. .:
L.
\)
q-:.::::_ 4'
Ex€dt'in Mq.r€d H6'L q/aaB to)rh frgiil'rndl Ftctrtefu<S

Slcp -r:- liJrire Naff€d HaL


qr'!3 t; *o")og rrc'pe) q Sre
Lh-m>
z)ass --. 2
:
zlcsu{s >
/+eZ m\ne:"Lcsi$ " > o
4to- lJec" cts rnltrt ,r5..n1g liEe I
4qtu"l,
4h- .n>

$?-{ri ereure *c ab\Ie +\o'Lquery


pir8ic f,,tuat ,t 6aD'tat) -.$ v -\
t nt- O$"r11 l'l'at 5 '

,*. h+' F|"aftM'*a 6"o1("tr"rl "1

''
fu6-nJ'^ -- !' '1Y )'t<xala'C> )

Kram ;t;

fiunnq
(l-t Namtd lr6t-@-
nl4flru (;tc htL:rnX Afi'cA
sry]-;ri r,t{,^'r( t'.w..d H\Ldfltd ;o I

/h-ff.>
Lc.larJ ---7

4ctcrgt>
" fatL' >
and ur'uaz=:b Jl >
,/ rlcOATA
[ &t Uit" ub @heYe ttb'ctid >="' Pi-
. tlapr4z
th,-
^,
sk?4i uro,x tL" o'br( ML+unJ'
===:: pl>Iit fu6"At{ trDd-"
{
o"'r M'^'aP^"' [
]"#; n;smffil
Na'ea An J
L,s+ r-=-h*. ft"r 86
i;':"1 ;,'
f&tzfiri i+ > I . Ifcra,",'- C) )

yelurn it )
execohng llibe.mte Pe$i5ft\r}ce Lo6ic 4 Cri tcrlaApl bU c{5jog l1;&rrnl<Caub<ca Q;4
Spo6OPn rodule.

Brblic Jrctor,x ffbrztL)


(neoo [
Ll* g= [Liot) bt' e^ec"rc l-1iue'ooreCar-ob"rrC)

prric OhF'i dotroll'beroale (5*t'"' sen) {'

A,t;o A?t I',.,sLd Pers;sta'nce lo6;c


ll
Grte';a cr; ses' c..'oor.Gra,io (Ue"'cr"'ss);
ll aaa Co,',Atcn

Gle; * co'nd = PestrtcHcrns ' l;tse ( "lole ", " '/ P'r" )"'
CF'add (C"t'a ;;
/l exer"te lo6;c
l-.t3i "0.=
ct' lisi t )i
tetutn 'L',

Jllncr+A
ctats
Jll;nncr

)'' il"u^"a
I-ttratzn it, = !' itevttu L))
y(farn it',
l
l
rn the o.fuve code ht-ueto.,x().{ne6 k caued h""n5 innuda*J
4$: dLnc'nomQs

Ohreq thdf ;rry)ternenK [lrWr"XCoufuc* (t1


16 e^eutl< *ts Cocle plare fr fortoui.,y jc,rPites iv't'rhe ctasparb'
I
(Ss"g..1ar I

I( h'Or,*t - jar
,o't
5.rn 1a- -a,41
€'re and
CanfiXuraHcn
-a ru;rl-r Hibp{rute appli(afic,ns ule cdn tcrY-e l}'ts{nclft
5p,rng w""
rr.t olJrrUJ a.e rnc,st
D,'" V
p !c ht ^,'*-
- , tl,tn
YILn rrr' nalc G-fur''radcrr l-ir brr
Conft5r''ro$cm f'te
s1;arLrtJ'
snparrtS
sr"n3 LUrrtrJ--
Sfdng ' 0l^.^,.--r-.7
uoni n^-at'r"tt l"'rn*on ivigo{t\ w"*x&*v4
l;npea LDlrt, Spng
rnfu ftre
P ' ']'- Coak6r'* Locanon
4
''- avoYa(ry
'4
Trrrlrvs Situc*\on fkr< isno nted 4 grnfiXr'ii$ ke'nttr'l gfru doraSxrce objc'r-

in Sp';nq G,^f.3uvaH.* f,rt ,


Revtsed Spnog urid-, Ihk"lat_ thjt--P*"*g c)&6s

$".5HBAee
l.J EB-INF
J----------------+
ClAsg€B
X ,Jovcr f+)
P )t.jal derrointc,r , c 1,"*<
derrrrimp I . clars
Nc-b. IrDl
SP'tnghS.xrn'l
fi;,Utta,rc. cfu,lmt
(I&'bbrn. 1pa1
U[<lr.ctctrs

I
hiberod.t€' cfu.
> 6ek*&wt*'ctali
rrn) :-

&rm ora lri*rnalt 6o-nf[crreHc"' Bre

t'iqHg x-r
z-lfucrlPE
\)
ZIXooO > .*t:
of6 '5r'inskroecDc,,(p.6rrrr.}uberra.te3
LLf..a id -.rq56as]coTac.lzm6u cuos.
* ''b't4t'nle' tfo'xm \" I >
rprDe= Arggl-o."n.r,' v4lue="ct?ssP&lfi
4trD\rrn
LIfuo>
Corft3 uwjtoo
eam e ora 'lli bcr ncrrc-Ttnnplc're' krod"-rp\ ctassu
JJ
\,
teaa pre\i&s o?Pn'
zlbeons> \-/
baszd finnq, hibe,nofe ;^Fc6rat&/'
C{p(lcorton crn
onnotctllcios
@po e*o,np," (sw"6 a, bibemorc + )
tPel ibe {t,ndocrl- orl zor:
SL{SlmC ncttz{v3 6*^ oaf

;u
Mo&rle -iV
3pt,.rr.LElPg Plodule

D 9ive3 APdicahic'o Co'w^t &nr<nrfx


?) povides *, &varrrdl o+\ ?r^ mc'i)ing operaActrs
ctbehacdcto Lrge,

ab6hraortcm tagu ott i.rs €" rnessag)og


ope'raf{cm5 '
3) provideS
appticallo"<
t deveiP d'F;t'rc'l
tmi, tdelrsew'tln
1) fJr,ivldes crbstrocHoo 4o^
cruecl HLTPJT'voEcx '
5) g;ve6 dire* dist ltr*ed terbrolqS
-ll'rr ba-ced schedul;n3
ovaollcxt3 '

4 fop'* co;rl Re6rsrt5 6spttr'res'


+) prDvide.g obsl-racrtcm Lcrdcr orr ind; 'io ioierac*

and erc....
g-e orl'er ol$
oo Cerrcrin oara cnd
l4at.',ng &rr clpPttcct'Hcto execrrh'r,3
-'>
is norhnS bt'r €nabillng
1t'o-*
fi" one hme ot) P^ rnutriple hmeS
'iirrerr-,rr-t'o aous ftjs et''cd-ltg'
on $e apptic&.*cm6. dhire &aiJ"3 cottb
r5 Verj rrnprrn-(ni-,

ExampleS i -
e*-monrb'
Sffdin3 r€mainder,g an the lstoP
c)eaning Temporov5 $res ewldru d lt'o'clocL
,^_ F*
r fbese oe-.alio$
Ne can use T'tT vTctsK,
-[ime
r Clas's ctp idk envitor'rnen]
*'u iob oo cohjch'
class def,'nee
--> The Java cnsS thaf exteods Proro TimeTasta

Coe ore PlcrnninS io endbte Sex!ice

__ The Schredr,ted nfJhor\ cr| In'rr ctocj can erp'ble scbedr'un3 on the iob
!

& - Srvice anrpUcutton rek,t Of?lia3flor)(O e,lt.


idK leuzl ltrray P"3::,'9
rrnP5:
"'t4+S-fqtz ..-t ,."" :: lnnlr.l.,n r.r pnr.t,ta ri.rrn +]lice
lrrc'r gx "d Cq
The log;c on ol"uc,F, Ltr aft lool';n3 lo en'ebtc
\qq\o@@ Tnitio{ in5 rrrilli irrrnd3
JT
deleS
s6c;6cs lne rrmc 0ep
bluo * *&"Jf.-*

Igc+
50q0
t
- lqt{
SFd615 in; Hor dalag"

ex€(!d,( rhe .fbb ctn S


6
peci€rel Dal6 and ima
" '
odvc.ntag% o{- sP"n5
$ned-ti'r6**tt* lr'x" *, ildts Eut, schedz.trnl ao cl
$ivea the fttrrcrtng benfirs'

io PetF.- &}edltiog oh rrrrtHple JobS'


0 Ollo(o5
lX usrnS xr4l BleJ:-
cFrla'rc*ive
@ &\t$o5 to SfreciFt Schedt urrg ",etarcd W@Y{f,1<'{6
flxJ&se' ur-ndeftrrd
on rbe urc' dePrned
@ 0llo(o5 ro prPorrn 6chedrting -llrnaiF s V ctatj
etrcrr}.A Psc'""
: clc55e,) . ttcr rrrcns da36€a ner.d not b be
',J
ope'aficios'
lfrrte ip61p66r1t beont oP €fr'ln3Based TirreT \,,/

o 0rg. €p. shedurifrs. tirrr-r--hrrerrFcrcroiBeotn,, __.-_r J


6nit'..ner is stcocca 7
6e*rlire h]bren
[S*"a fuWT'rrr"
\.,
@ otg'sp. srhd,tin 1" fi""r' 5n*-iltmez-TasL' *xvice,)
to eoa',,'e avtvtt
the Job cpkrte|, @e trctt,'r -'' -.- -,,.^-e
-r regrerrri6 "n ?-" Tit'u-fust^*:
'--r 1fu'a iob musrbe tt*-te
inaiava ac't rlx* 6*coao

-hvrr-'t &{ui ce
to s*bIe
--1 Yegeir-firslhe
job dn eohich ur uYLoJ
uxn-&hwl datn"l"u''
me-o,d &
---t -tttr-5 Job cat' Le lbe€ in a u*-^'"g''ntd

do6 '6L91" o{P'i&"Hon l9'>n c:? r1*


O{?Plicorl
Pcr 6prriog k sed CI)ealalllng exarople :
Fte no's 68 io fu \_/
Taloal'nt5

qpr!!t.!4
312312013 9:22 AN
I SpringHBAppAnno
.2 l-----.-----*-'wEB-lNF
l----->classes
4 l---------'pl
5 I l-.-----'Demolnterjava/.class
6 I F--- ---tDemolmple.java/.class
7 I l----->Selectservlet.javal.class
B
o
rtl-----
I
I F------>User.iava/.class
F->SpringHB.xmt
10 j-----'lib
11
12
I l__-_.C.jar)
" F->web.xml io c,rxssPA Ttl
13 ,pt Bres
14
,_1i-:_':
l: l5-2? coltc$ Prom bg"t.sr< + 'l' j^0x " Persislcrre - jaY
c15 anl|l-2.7 .7 -jat der' aorn
)-e,5 cot\ecr P',,.6 Jc!.rFj'r qrff jcrygrf -5 1 \'aELJ
0ro commons{ogging.jar ai(.'sP ' @$<at
117 dom4j-1.6. 1.iar P7-8b Cbr'eL* ertra spnag6) Ls&s E J
a{
lrs hibemate-commons-annotations4.O. l.Final.iar orl s9 a",rt"t'3'l l tzE
I rg hibernate-core-4.1.8.Fina!.jar o,i sg ' bens -l 't PbE-l\sE
r
' J6'{
[lzo
hibernate-ehcache-4.1.8.Final jar o"l
^- W)l.As e ' ;
\i; hibernate-jpa-2.0-api-1.0.1 _Finat.jar
javassist3. 1 5.0-cA jar
orX *e urt - 31 1'

javax.persistence.jar +'t't Fn<'t' ic't


24: jbosslogging-3. 1.O.cA.jar,
D hg"'nc*e-c""c -
25J jboss-transaction-api '1
.1_spec- 1 .0,0. Final..iar
26 ojdbcl4.jar
org.springframework.asm-3. 1. l.RELEASE.jar
ize org.sprlngframework.aspects-3. l.l.RELEASE.jar
)25 org.springframework.beans-3.1.1.RELEASE jai
1:o org.springframework_context.suppo(-3..1. 1. RELEASE.jaT
lsr org.springframework.context-3..1. j. RELEASE.jaT
'l zz org.springframework.core-3..t.1.RELEASE jar'
/ss org.springframework.expression-3. 1..1. RELEASE.jaT
lza org.springframework.jdbc-3.1 _.I.RELEASE jar
lss org.springframework.orm-3. j.I.RELEASE jar
\:o org.springframework.transaction-3.1. l.REaEASE..iar
37
38
39 Demolnter-java
40
41 package p1;
42 import java.util.';
43 public interface Demolnter
44 {
45 public lterator getData0throws Exception;
46 -l
,47
48
.49 _D:T1T!1*
-50 package p'l;
import org.hibernate.";
import java.util.";
53 import org.springframework.stereotype.":
54 rmport org.springframework.beans.factory.annotation.Autowiredl

56 @Component("d1")
public class Demolmpl implements Demolnter
t
59 @Autowired
'60 private SessionFactory sesfact;
61
:62 public void setSesfact(SessionFactory f1)
63 {
64 sesfact=fl;
65 ]
66
public lterator getDataOthrows Exception
68 {

Page 1 of 3
sprint.q! 3D3t2013 9.22 AM
-
69 Session ses=sesfact.openSession0;
70 Query query=ses.createQuery('from Usei');
7'l Iterator i1=query.iterateO;
72 return i1;
73 )
74
75
76
77 -!-:li_i1t"
7a package p l;
79 import javax.persistence.*;
80
81 @Entity
@Table (name= "users")
public class User
84 {
85 @td
86 @Generatedvalue
87 @Column(name = "userid")
88 private int uid;
89
90 @Column(name= "uname")
91 private Slring uname;
92
o'l @Column (name= "role")
94 privale String role;

96 public void setuid(int n)


{
98 uid=n;
99 )
100
101 public int getuidO{ return uid; }
102 public void setuname(Slring s){ uname=s; }
'103 public String getunameo{ return uname; }
104 public void setRole(String rX role=r; )
105 public String getRoleo{ return role; }
106 )
107
108 DBTable
109
110 create table users
111 ( userid number(5) primary key,
112 uname varchar2(20),
113 role varcha12(20)
114 );
115
116 SpringHB.xml
117
118 <beans xmlns="htto://www.sprinoframework.orq/schema/beans',
119 xmlns:xsi="http:l/www.w3,orq/200 1 r(MLSchema-instance,'
120 xmlns:context="hlto://www.sprinqframework.orq/schema/iontext,'
121 xsi:sctlemaLocation="htto://www.sprinqframework.oro/sctrerna/beans
122
taJ htto:/,Adww.sorinqframework.orq/schema/context
124 htto://wwwsDringframework.orq/schema/contexusDrino-conied-2.S.xsd',>
125
'126 <context:component-scan base-package=,'p1,, />
l-a
127 €laltdn/ed
128
129
<bean id="myds" class="org.springframework.jdbc.datasource.DriverManagerDalaSource,,>
<property name="driverclassName"><value>oracle.jdbc.driver.oracleDriier</value> </property>
*eu":^H
130 <property name="url"> <value>jdbc:oracle:thin </value> </property> ' /ksrh4 t t{
131 <property name="username"> <value>scolt</value> </property>
<property name="password"> <value>tiger</value>
133
134
</property>
</bean> J[::'.5..*'
136 <bean id="sesfact" class="org_sprangframework.orm.hibernate4.LocalsessionFactoryBean,,>

Page 2 of 3
sprint.lxt 3/23120'13 9:23 AM
<property name="dataSource" ref="myds"/>
<!- use this to avoid configuring mapping file->
139 <property name="packaqesToScan" value="D1,'></orooertv>
140 </- Lrrra*"U cl.r9 s€8 lirk ' Poc
141 *f 6frnn6 Cor*ainey ftL%tu z;o3 sll the F€*.? ctrerl^,e.e in' P,

142 </beans>
143
144
145 ::::l:tl:lj"*
146 package p1;
147
148 import.javax.servlet.*i
'149 import iavax.servlet.http.*;
150 import java.io.';
151 import org.hibernate.*;
152 import java.util.-;
153 import org.springframework.beans.factory.*;
154 import org.springframework.context. *:
155 import org.springframework.conte):t.support.r,
156 publicclass Selectservlet eldends Httpservlet
t
158 public void service(HttpServletRequest request,HttpServletResponse response)
159 throws ServlelException, lOException
160 {
161
162 Printwriler out=response. getwriter0,
163 System.out.println("ln service method of Servlet,,);
164 tryi
.165 ApplicationContext ctx=new ClasspathXmlApplicationContext(',SpringHB.xml");
I Ot) demointer d1 =(demointelctx.getBean("d 1.');
.167 Iterator il=d t.getData0;
t06
'169 out.println("<body bgcolor=#ffffcc text=red>,,);
170 out.prinlln("<h1><cenler>all users</hl ><hr><br><h3>,,).
171 out.println("<table width=80% border=2>',);
172 while(i1_hasNext0)
'173
t
174 User u1=(User)i1.next0;
175 out.println("<tr><td>"+u 1 .getUid0+,, <td>,,+u1 .gstuname0+' <td>',+u1 .getRole0+,,</tr>,,).
176 .i
177 out.println("</table>") :
17A )
'179 catch(Exception e)
'180
{
181 out.println(e);
182 e.printstackTrace0;
.183 )
184
-, 185
186
187 web.xml
188
189 <web-app>
190 <servlet>
191 <serylet-name>select</servlet-name>
192 <servlet-class>p l.Selectservlet</servlet-class>
193 </servlet>
194
-'195 <servlet-mapping>
196 <servlet-name>select</servlel-name>
197 <url-patlern>/selectaction </url-pattern>
'198 </servlet-mappinq>
'199
200 </web-app>
201
202

Page 3 of 3
Io 6frr,.,9 5.! [tibel oatcTemf]afe cl6ss l'tc brcn dqn cct+ea aod vemot rrd so, i D;€LI-

l" 8fr'5ilec"" olUte cooru,r6 c,r;rt Sl*n3 a( l'r' Uroo,he +


l+iberrnfe Sessi-faoz.T ohjerr
C.trhb narttoh -
Ftvcr lt,i I

-> Ltlrr Ba$e S/ur rrro,ol-c..io6 re(or dj'

'r€f5hv
6lut rr&ia tctins Ohjeo$
.TcrLi'l &rvCr rre;nfcrio6 erDci l CtccounJ6 O-.rcl '.Xssc.geS '

*) Jovct Opplicolltln
U€e6 idbc 6rP;
ir; (o'raue, 'sujtrse c^oA e+c " -
uses DbSf )
Jrtl c,fi (w@il+e*l- jSpss regrarg c'r'd *c"-)
-----+ Jc(Vct d0Pn Qgtst'g d,o
Jala roai I 6rp;
.tava olpn llcl,lt servert slo [ &mes fta*-ser *t,Ui-"orn1ey'bffi,

javax 'r'rtl I ' iDt(ln€J- ere (Oa' t& Jzu- -tdttr e-


)
icva rrrd t af; rn€ r(r:$ iavax-rrctir ,
rc fo efl:ril c+cocurt'l's aod eroa; I
DB sllo| , r,rlc-lo Seru<'{ Scos crze rDt responsib

--> ttrX arl- troo tgfxs nrd ) 'ticnts


,,bt<'s nora )
D AoaX llade rna;t
cucnrs (rlecur*r 'fl6atlavexprr5s
&^va,.r,a;\ oa'i uriti za{*)
z) lJ.cna66ble nail ctlcnrs l*t'o

UndersrandirS n-rdl S€:rve-Y

or I 6e'i ve'{ (rrac}une ro)


frrirninq &r!et ( lbPa ltl.4AP 6argo'oQ se"vor [nre)
Accoct r
ot
]----+ aNBox

a4dr€J
f,l&i, cllcht

UJe5 Jovayrrd, d?;


ancomiog 6arve{ i5 resPcno Sibl e fo Ytcrr't.e Ond monc,ge 6 Ei I messcls €6 hD fb e

inboxes o? errrn\ dc4l)(rnJ6.

'-) CtlSoing b{t)t i5 Y€spr,tlblt to 6end err,cf I rn€Jsc{A'z Pmt'> dne en:rl) 1 'L<abQnt

to CtnOtber Lfiou\ CLcltatrt| .

--'+ PoPa incornlD, $grLtd drlercl lhe err'4il ry11ssare'i {}otn inbox onne fi\

rno-rl cJiorrs' &' lt ls r r se ft.r-{ +^ inlrcrneJ rnoi)ing 64+c,rn--,t


al€ ,-d 4
-lhe rhe elraril rrrseffA ip1 $e lnbox
----t &rep lnCDroirtg Selt'rtt rrain'taino
1.htl c.re
{fum inSox, ;t i5 SLnftLbLe k"t }l1<xnef 0r'-ael
3;wn a?to{ {ead
3o,

mnitin3 Oporcrrlo'ns .

ESI- \iLe Wt^'lJ ' Gltoil'com


Setrucrr6
i
rm*e ?rDt0cols ta infc{crcf @itb inccr-ning
\i
---1 floJ\ clienrs use Poeal
& rrt'i\ &fl€r6 '
> ,{)o'st 6Peic€ PYDtocD\
P0PS y'ccess pzrfoco\'
l1:rt
Tl4ftP-------------":'*n*
I l.lc,,tlctitntt ust frt0rocots to Jnfct'&r* (oi$ aagang &rd"tt(n6
sr',rrP !

6+ no.;1 Sevu'ed5'
potoco\ ' gg '---r Cq lan CUetu

SMTP---------n Simp)e 11411tt'nsF'v b< r bl;nd &/&sq cliu'a+ '


'Ibe Strucrrrve oP E",olt t sg

To Fom c c bcc &Aiert


Darc aDd ete," -.

I4f e&nEr$., -" - . "

A$acFrrrfr$ a

Altad,m enl- a
&mes
l--, fg fe :, llai I &..ve.l
' \e{5icrn : 2'^
vcnd o{ : Afcdo e

dePcu'tt Pc'f no S
644 6drnio Ccrnsote : 45b 5

ft'r POP6 incDroiog &tutd i llg


Fttt SnrP &riSoing Se'flrer i 25
zip +ir insrou 6't-14" 4 sl,,:.
Tnsrax crti(n 1 VIYGLI rhe
-----+
tc'o'bc* P;te '
: L Jame i-bo-e >\tlt\
To enrt he Til^tl 3€1\"e-{

in JameS rrfrl I Se'rvc'i "' -


prccedo-e to cr€c$e errni I AccscrrLlrg n-}cnuall3

5rcpJ :- 6fnr rbe Jatr6 #'' vd


n*t*'fo csnnef tosto.l-]n cm6o1L Q lrar*s xt*n

{uf)+ tglne} Of€n lOCc'-iboS f 4-5bb


sl-r.rt
--' -------+ lqin id:
r00t
Err6cctCrr d "'
106 t
fuetC666 le6t.
letp

-rovrrarie .,- 9**'


G ddtrst^r Srttanr|, 6tiranrl''

fi-rn i rrft\zi
6dduS e'i
' lislus€r 6

CarctruQseY 6

deluser 164ri

U5ti r&vi deleffd


iol!- a49n otl J
.ioe Cotonechvt r5 Lf-t(i€en
ohieq oP 3vc\ mol \ API feoree'1fs
\ pmlre*ies ond
Sesaro,n the(e-
To cware thi 5 tar*.,rr obj of, neecl YrpLl
rr0J l Server '
bctsed on rhe
prD00,r'3 ncrrnes ar< ftxed \cilueg toii\ uct'Ulrrg
rn&r) sei'vor de u6t '
' 6 P," exampte opplicatlon on Oalrl Flclrt 6oq6) p18eoo'6 opp'r) no,.
^px
lo r€o.t w$level mcd l crypti(atlaos rhe &vq noi ) APr Code ul;tl te Tre-frrv q in
-)
V&,brescrurre pyogram B like &:''''trcf ) CsP. to fuErnr, vrlJ | 67vaa tls1g 616 erncti
_
Oatotrrt15.

Detairs oP Gnor t rrsi I 5e'rvcr


"
-

: com
Boro€ eerver mrne-
gd SnTP ' CnHol I "

.
MJaQ pol"r cur.hr,,r 4 cxrhSoiog ee{vc'f ( +b5

frf,oml og Sew&f rf.m€ : poP ' GrDorl t ' Co rO

fryDml og &'rvrx pornurnkr : qqs I D


Yerov
c'P cnmol
se{wr
i nrcrrg c-oltb
|I)drl
P"'Pvio celo rrni I APr bdsed o'Pr'}6 ro c'4 o-tlcnf '>"re
+.h'Jd'r thJ('l
o{'pltan$6r} € io opto 4 tbe ;;;

.:
anloa i"o,u
312512013 5:5O PM

1 Java mailApps {rrginq plAI D i:av(( frIj I Apr


2 --App1 -SendAttachment.iava-\::--9--l-------- )
3 --*-----*-----
4 Java Application to send an E-mail with attachment
5
.6 import javax.mail.*;
7 import javax-mail.internet.*;
import javax.activation.*;
import java.util.*;
10 public class SendAftachment
11 {
public static void main(String [args) throws Exception
'13
t
'14 //Creating Properties Objct
15 Properties properties=new Properlies0;
16
l7 //adding protocol,mailserver address & the port number ofthe mailserver
18 properties.put("mail.transport.protocol","smtp,');
19 properties.put("mail.smtp-hosf ',"localhost");
20 properties.put("mail.smtp.port',"25");
21
/lCreating the Session Object
Session session=Session.getlnstance(properties);
24
//Creating and configuring the Message object
26 Message message=new MimeMessage(session);
27
28 message.setFrom(new lnternetAddress(,'sachin.l,,));
lnternetAddress address[={new lntemelAddressCdhonil',)};
30 message.setRecipients(Message.RecipientType.TO,address);
message.setSentDale(new Date0);
32 message.setSubjec("MAlL WtTH ATTACHMENT,,);

34 // mail body obj


Multipart mailb'ody=new MimeMullipart0; represe,rts rhe emPB bodrJ c(- *t€ Endn| m49'(3€
Jt) -+
37 content)
// mail body partl obj (text .l
38 MimeBody'Pirt partr?ie* rrrri*eg,jovp"rt(); I aadlno p&!il tb rnesqSe bod-5.
39 partl.setText("hello see my resume'): ( "
40 mailbody.addBodyPart(part1): .)
41
42
4J mail body part2<attachmenl)
44 FileDataSource fds=new FileDataSource(args[Ol);/A represents attachmeni tile
45 MimeBodyPartpart2=newMimeBodypart0; (
part2.setDataHandler(newDataHandler(fds)); l c{ddiog Pc.Yla to rn:sscge bodX
47 part2.setFileName(fds.getName0); I
48 mailbody.addBodyPart(part2); .)
49
50 message.setconlent(maitbody); &tting *tHJrn.ge ccqnfc*
5l -r UoaX
//Sending the mail_
Transport.send{message);
54 )//main ood ntrit.iot $'le b rbe cLAsspAftt
55 ]/class
56 //>javac SendAft achment. java
//iava SendAitachment one.txt
58
59 // Prgs on plain java mail api (with Gmail Env,....)
bU -*-- App2
ot //Mail.java
62 import java.util.*;
63 import javax.mail.*;
64 import javax.mail.internet.*:
oc
66 public class SendMail
67 {
6B public SendMail0 i
Fase i-itio
TB-?4 tnardt rcn; (,-.Nre a!.cn b-.o5 tDlt+' \tol &niil Se-rv€r '

3/25/2013 5:50 PM

69
70
71
72
73
74

76 trv {
77 &t irrrx clclls
7A ffirTffifi::ff! new SMrpAuthenricaror0;---? obric <t c*r,gtn
79
80 Session session = Session.getlnstance(props,auth);
81
82 //prepare mail msg
B3 MimeMessage msg = new MimeMessage(session),
84 //set header values
85 msg.setsubject("open lo it know if'), t isizav.{ 6 grd'i r . (oD
86 msg.setFrom(new lnter netAddress("sa+Y#+*+@eBrail-€em")):
87 msg.addRecipient(Message.RecipientType.TO, new lnternetAddress("!A!aEz(@goa!kg$"));
88 //msg text
89 msg.setText("mail from satya");
90
91 Transport.send(msg);
\tftry
93 catch (Exception ex) {
94 ex.printStackTrace0;
]/catch
96 )//constructo r
ioncr crass k"'io 9-
-1
9B private class SMTPAuthentacator extends javax-mail.Authenticator {
public PasswordAuthentication getPisswordAuthentacation0 i
arrrl,r,'.t'calloo
\lcJ; c
L
rDcdl.nrn/(.5
100 return new PasswordAuthenti;tion("satva€ffiil+23@qsaitinm","ra$t2€e"); .-, *,* L.l-^ -,*
't0t
]/method t€st zov.\
tesri."o &4)c )s mqri) l\t"ir.
102 )//inner class ' ,/ '
103 public static void main(String0 argsx
144 SendMail mail=new SendMail0;
105 System.out-println("mail has been delivered"); odd rrra;t"iar in be cL'AssPArH '
106 \llmain >.hvac &rdt\aiit' jarv a
107 )// Mail class \
108
'109 import java.util.';
110 import javax.mail.';
111
public class GetMail {
113
114 String host="pop.gmail.com": g512aya @gw . rom
1 '15 String emarlfrom="satvaemaifi 231m€em" :

116 Sting passwo rd ="iavaj2€€-";


'117 StringPort="995", tLstJC'v"
118
119 GetMail0
120 t
121 Properties props = new Properlies0;
122
123 props.put("mail.pop3.host", host);
124 props.put("mail.pop3.port", port);
125 props.put("mail.pop3.aulh",''true");
126 props.put("mail.pop3.socketFactory.class", "javax.net-ssl.SSLSocketFactory"):
127
trv {
129 Authenticator auth = new SlvlTPAuthenticator0;
130 Session sessioo = Session.getlnslance(props, auth);
13'1
Store store = session.getstore("pop3s"), f-z Amr€cring lo popS incr-ming
133
134 store.connect(host,emailfrom, password); ----r Cr,re*s tO eirylil ! d
13s
136 Folder folder = store.getFolde("inbox");

Page 2 of 6
3/2512013 5:50 PM

137
io Rg^D-!NLY *"'
138 folder.open(Folder.READ-oNly);----r anbdv o?cn
".,,.^." Eom rbe rnb6x
Messagel msg = folder.getMessages0 - ) *re errr. r n)')Jqd-
139
140
I€adiD8 ol-t
,
141 l4i6 r! C System.out.println((msg.length{)+" message lound,'):
142 d,scYt ) for (int i = 1; i <= msg tength; i++) {
143 ou rt''-,- ) Message mess=folder.getMessage(i);
1,14elf,oJlrnt'i
L
mess.writeTo(System.out);
149 . 1lfo, cv,rpa=r,.<.w,( u.tt m!g! tc, b..f!i r.d )
146 lltty
147 catch(Exception e)
148 {e.printstackTrace0;}
149 )//constructor
150
151 private class SMTPAuthenticator extends javax.mail,Authenticator {
152 publicPasswordAuthenticationgetPasswordAuthentication0{
i53 returnnewPasswordAuthentication(emailfrom,password);
154 ]
155 ) //private class
156
157 public static void main(String argsl)
1s8 t
159 new GetMail0;
160 ]/main
161 ]/class
'162 -*- *-App4-------*-----DeleteMailjava--*-----
163 importjava.util.-;
164 importjavax.mail.';
165 Dd€re
166 public class€€tl4ail {
167
'168
String host="pop.gmail.com";
'169 String emailfrom="sadya
170 String password="ia+ai2ee";
171 Striog port="995"; itsr.i.'va
172 tVftjL
173 '- €etMail0
174 {
175 Properties props = new Properties0;
I /tt
177 props.put("mail-pop3.host", host);
178 props.put("mail.pop3.port", porl);
179 props.put("mail.pop3_auth", "true");
180 props.put("mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory.);
t81
182 try i
Authenticator auth = new SMTPAuthenticator0;
i84 Session session = Session.getlnstance(props, auth);
185
186 Store store = session.getstore(,,pop3s");
187
188 store.connect(host,emailfrom,password) ;

190 Folder folder = store.getFolde("inbox',);


191
dl?llE
192 folder.open(Folder-RtAD_€NS:
193 Messagefl msg = folder_getMessages0;
Fla t D' b"." ) i/l T"'' hft 'q
194
Iol ..erFa? ( F\dt5' 3'DF-LE'
195
. : jnbor to;r$ 9la3 lrur
196 Srde r t rose ( btt'€ ) //clGc rte
197
198 91.6. clore())
199
2CO
?01
202
203
204

Page 3 of 6
3/2512013 5:50 PN

205 private class SMTPAuthenticator extends javax.mail.Authenticator {


206 public PasswordAuthentication getPasswordAuthentication0 {
207 return new PasswordAuthentication(emailfrom, password);
208 ]
209 ) //private class
210
211 public static void main(String args0)
212 { fpretr
213 new GI/ail0;
214 i//main
y/class
216
217 Application sending sms........
218 -:-App5----------SendSMSjava----------------- *
lao import java.io.*; --) i"T'ir )'\ rl,ct'."\
220 import java,net.lnetAddress;
221 import java.util.Properties;
222 import java.util.Date;
import javax.mail.';. *rt
. 1.h**,
224 rmpon lavax. ma .rnternet. --: \ "
import javax.activation.'; J
226
227 public class SendSMS {

public SendSMS0 {
230 )
231 llc(eate an account on ipipi.com with the given username and password
public void msgsend0 {".,""SoEs
233 Str ing username =' giditfqqw" | /l/our Credentials
234 Strin! password = "sffi" 7"""b'-l-
z5c String smtphost = "ipipi.com"://lp/Name of Server
Slrinq compressre.r\:-':None": //l dont want any compression
237 Strin6 from = "ffiE\/S@ioipi com";//u r [email protected]
238 //This mobile number need not be registered with ipipi.com
239 String to = "[email protected]";//mobile nurnber where u want to send sms
240 String body = "HiThis Msg is sent through Java Code";
241 Transport lr = null;
242
243 try {
244 Prdperties props = System.getPropertiesg, ?. crttr,-n r)eLrr til'lI [nu{r/lP!
?45 props.put("mail.smtp.auth", "true');
246
J ruT* .;*": m(llt fqre{h\:s

247 // Gei a Session object


248 Session mailSession = Session.getDefaultlnstance(props, null);
249
250 // construct the message
Message msg = new MimeMessage(mailSession); .---: o"6ptJ (.d'hlE
252 dr
//Set message attr ibutes r> t ' -!r{ ds}.{
254 msg.selFrom(new lnte(netAddress(from)) :

255 lnternetAddressI address = {new lnternetAddress(ti})}:


msg.selRecipients(Message.RecipientType.TO, address),
257 msg.setSubject(compression) ;
258 msg.setText(body); cmilmsJ
P{sPonin$
msg.setsentDate(new Date0); (6nJ!. + iPlPi
260
o$ctt poinn h Fe o(rr6'ii-6
tr = mailSession getTransport("smtp") ;ft1 tfonspc'rrr
*n,,.,.' of )eici
;

262 //lry to connect


263 tr.connect(smtphost, username, Password);-J G'hhett-f la dtqo'3
264 msg.saveChanges0;
265 //send msg to dll reciprents
--," ,b^Lt* C-r
/{4lti f,. qec.t}f
rt€(t'G{ JlD
r'',j,t
tr-sendMelsage(msg, msg.getAllRecipients0); s€rBJ
267 tr.close0; -) ltce,1t,"-ls
268 ) catch (Exception e) {
269 e.printStackTrace0;
270 )
272 public static void main(StringU argv) {

Page 4 of 6
3/25120'13 5:51 PM

273 SendSMS sms = new SendSMS0;


274
?75
sms-msgsend0;
System.out.println("Successfull");
cidd rrgir.iav ftle fo rl'e clatsta6 '
276 l> &,to-c *oa-6r+s 'i"nci
277 1> .i4!( S€dshl
,278
279 App6)>>>>>>>>>springMailwithAttachmentS<<<<<<s<<<<<<<<<<
280 - --------------Siudent.jau"4spciriS'--*erfc.a)
281 public interface Student {
282 public void sendEmailMsg0;
283 I
284'--- * -*-- ------Sludenttmpt.jau"(Strlrla-A(q!)--
- - -- -
285 import org.springframework.mail.'; -
?86 import org.springframework.mailjavamail.t;
287 import javax.mail.*; -* ujrog plaio t@4 fini I nei a{Ba4
'- &N<'lt4<
ahfljr&
288 import javax.mail.internet.': So, t x t !. plarpe D.r,r roa),
289 import org,springframework.core-io.*; ^PE
290
291 public class Studentlmpl implements Student
292 |
?93 private JavaMailsenderlmpl mailsender, -\
294 ro in'iclr
295 pubtic void setMaitsender(JavaMaitsenderlmpl maitsendef) { |
f,a-r:rlrb'{ l"QJd e .rrnpl cla6 oleJc{
this'mailsender = mailsender; *"11f RRa rt4tt tt ta
13? ) J
298
299 public void sendEmailMsgo
300 {
301 try{
302 .send(new MimeMessagePreparator0 {
303 ..
public void prepare(MimeMessage mimeMessage) throws MessagingException
i91
305
,.*C, ,, L. a {
306 hadnS
307 crcsr oqj
308
309
ilfl
'-.:,-lry)
il::::8: ::ll:[iffffi,,!3;.,,
310 dd ..^"-"-"Fs:ij1'l{"^-r.lj:ff|9"_19."1P_91{li-_
messaqe.setText("hello This mail Con
311 €lldl
.r**5 message.addAltachment("abc.!!!", new ClassPalhResource(',abc.ixt,'));
ro rr'e me$ore
312nqs'tr I
J IJ P€f&YfL
314 St,.ed \lftry
315 catch(MailException me) {
me.printStackTrace0;
317 i
318 }/sendEmailMsg
319
320 )//class
---------------------------------------maircrg.xmr--4pleg-e-fu-tsaJ----
i,21
322 <?xml version="1.0"encoding="UTF-8,'?>
323 <IDOCTYPE beans PUBLIC '.-//SPRING//DTD BEAN//EN"
324 "htto://www.sorinqframework.orq/dtd/sorinq-beans.dtd,'>
325 <beans>
<bean id="ms" class="org.springframework.mailjavamail.JavaMailsenderlmpj,'>
l?9 qr€se.* f
l?1 u."^ .,,1 <properly name="host"><value>localhost</value></property>
<property name="port"><value>25</value></property>
i<9 :_-;" I
\.rbean' name="prolocol"><value,smtp</vilue></property> .\
. 29 {)io\rnn> [ <property
330 t) _To run rfii s o0pu(atloo K€€f
331
332 <bean id="sti" class="Studen mpl',> &rrrs n61 Sarot ri"i., l2cronlng
<property name="mailsender"><ref bean="ms-'/></property>
?lq
334 </bean> -6y1p.n. tire Do:Ba6
mete.
335 </beans> - \
336 -----. --ft.4ailclient.iava ..Lel,knf -o+pn-)---.--
.
r) 4dr 'fatoto;n3 j"'r ftrz: in
337 irnport org.springframework.beans.tactory.",
338 import org.springframeviork.context.";
339 lmporl org.sp.ingframework.context.support.";
tk ctrrtssPrr*
340 public class MailClient g'nrLd. ia-yi brpdl'j..Yl filr i6n-s']{ffi?X*
Page 5 ofo
3/2512013 5;5;1 PM

341 {
342 public static void main(String args0)
343 {
344 Applicationcontext ctx=new FilesystemxmlApplicationcontext("mailcfg.xml");
345 Studentbeanrets(Student)ctx.getBean("sti");
346 beanref.sendEmailMsgo;
347 System.oul.println("mailhasbeendelivered")l
348 1
349 )
350
35'1

Page 6 oi 6
SPting tlail "- Leloer Sewrc<s
io r'Jlndods -7

--) provi&s ab6rro.6 crD 1at3e.r o.r Pl&in Jc'va Ytd


\ APr'

---+ As oP ncc Spring rlcri I i5 &aPfiJ r{ (ml[ Serrl rrr': t o PeYc(HctD5 '

rndll prDgrriei in Sptn$


cq ftre DeLtaYc'$,ftr8'
-) Al\oos eef ffr,il rosg prDp,tlie5 ond
tntrh ot+zr-irro erut-s '
--) give.5 Gobc.cl< i yut{fu{e5 io 6end errnr I m5g'5

J -----> Org. SP.rmi I DoLFage, 1\ qrreJenrb Sr,rln€rr^rdt APt '

Orf " SF.mdil'iovdrr}ctil pocl4$€s J


ftrl rD S€nd errni I |n€s"f
( use 1
'" sp^n$Pf*t ie& gt"o""t" to'PrtP,*- rrru I cTxT cchtclns
--) 0rg. 6P. nrriI repr€seffg

-----) oyg . 39. hrrnl . javarrrn lttrf"senrs spnng's cdrsr6cr4fton b,4- o" Pb;n java rrr.' t aPi'
t
(crrefu tr.l s€nd an'ail m€sso|<l tol$#
)

- @ nr example cqrp\icatloo oo gendl.,5 emcril m€Jsage b3 u:lng ftmngrrrttl


'""/ .rfPcr 6,4P., no'.Qi
.reeer( 6r4pn P'6e oo's br
not@ oP fie F'B€.nos 6r q( 6Ir e

---, *-t:tl1: t -API ur need to


c*tc.alrrrar* b3 crsing
Sp"tr6mcLt
s.nd
seod &
@ t rnsgt
env:twnsgs t,rrh ottc'alrrrar*
tolrh
t) { -e- M'*tf'u
errrU
--> To
'
[llrrrYlessogsp'tpe'rnt"t
fllrneYlessaflep"epe'mt"r
.-.,, LOrdF io;Ih rhe
io;rh dre coubc'cja Irlh&r€<ree
Coubc.c,la ltl-h&r€<ree

cc.rued fli-eYlcsr'0eHeletn c-oirL


oo I bcrsed, *'
- @ fc^ €xcrople
c'{Pliccrroo Spangrrlcn
fif' :'^'
r***''?i*l'"''
arr-&ehrreqr -Y;;6#; e'""^

.'

'
i
N"1RS.s , IPrPI , \5oh R. Gnd Qlc'. cre rbe Srrr Cnrcaco3S. These &crturrgs

Can feceive rf,es6ate5 Ob efnai I rr€56c€€S cond del;vers these rnesscfle{

t0 SFcific phone numlae.rs 05 Sm5 rrcsscges


S€rvo{

[*XasrS cff iPiPisr ldcbga *.1


Errn, t rrrs6 coirt 5e
Govc.ird info SMS

@ Praedu.. fu end 6rn6 rnsg6 to mdrile nfrrnh,6 b6 .*1"3 &vamorl Apr.{pn

u1"- Creote 666 Acccrrr* in J,tlTp.r "com.

SEpe:- Uslname C zavaboES

posstrrord ; zc.vabosO I

[email protected] fun rhe f"ee." : tutpuffr.ru..n3 t*['* 8*'* ")d9:


t,.tirh dorrc'in name-
frrccedu'c to O&es$ the ufbd{pilmfloq o? Torcrorg*rr'r ""'-'

o? LDrndd!6XPf7
5K?0l- spe--h do.rrrio m-e i.) brrr-1n -"# DNs re6'stt

goto c\winaaos\sgsre-aa\ o.*'\.,t"\ hosr6 f;re 6nd xeplace l?-+'o'O'l kort'osY

to l?+.0"0'-1 Nt^ll'.1 ' rnlaraz " in


rh(
'-[omar ' tt 10
cknnge &rv.,r pt-- ntxnvd 80
9 trt) tben rhe grol-ocol
hJfP
xf prt numbtn is not specificcl in lltQreryest
g
tt a Serv;cc nLrost
pc'rt-ltlrotor lqgl-'
tnes to send the re#-tesr

odu ffrtoco;n$ cde in 6erver'xml Bre und"r


LV'\tne7 v1 Splofuing r+'.-

Cbt,crlt yt6.,'rg and urebolrlp\i cctidn qOrne


\$l'9 rrol-t.raz' in' oppBose -''tt:tbo1p5
Z. Hoof rgme --" t,twt^J'
bzbo€.jr) rarn<
vnte" >
unpockl^JAR5::;;;-;'- ar.roftPro5 ""
l, I

LGnrc"r p{.rb ="" docBnse = Vorcr


APe />
l-6ataPPtr t<'on on
zll+oet >
'
ur-lD@ppD \n tor!^caf&\1rr
"Y9, ftploEee tbe atow ryec;fu Voa'&p
arl&PPl^)'
frnbe sure lhGf lnletrorrpBte is 0ro$6a"ed in rbarh
I
gKf4',- Qgrc"vr the 6efv€,{ cnce .

6tQbl- "\t6t $e 6ryriar$on


in
www ' rr'tc.raz' I

CrPo brotgc't u;odoto - ond rgpe frls ot\ trrw '- Jl

"*
Urrdersrc,nding rbe reed ofl Dismr,urcd
onou.*1Derolry
liad,ltlonol Ole.rf -&iwd-9{0!

ct* locolto"dq"-*"r
c6*'- PYD8fcrrning e""t )
Trcdiriortdr c)ien'-se.(!e^ o{)p\lcollcr)s
.ttrof meonS o*.,l c\onge in rhe locot*r6 a4 Senror oqelf Cc*lc'n 1pc vrrul;t
trctiE
-Ibs indi'cc*re cllenr arrl ri{tPhi &Yr H$M% -
Gde {n rbe clien} &PPns' 'Sev';e.r

CouOed a4,Pn5[h"lpt*) h,*.*


rP de6ree o? dq.,nJe",? ii * d* ft* ^*Y-Y::^:^':,
cd-oppnr , leect6 - cor.tt
lthHil o,;H c{pn6 s[- corre **a a'< b$eA
Cl.lcni - 6eT!c'l
To deueloP rbe wrz6 .e Apfnl CrS LocaitcrD ti.erspe6,^cn5 l1pg rten deu toee the m
c{6 dieuuoed c(Pl ; catl c'n 3

Disi-,ibrjJdJ A?Ph '


fnGrhioe 1

B'tompenP ' bd-

Od I Rea;gttq s).o

irdia I -----+ B.cotrpe tef

lftila? --,-, B'aorrPa r€


.canp?rag ' boat

aNYA grpfrof [-.{oHcn ltuns?d-\trd'4 rtrrt rneoog atutr c"lzanle ln rhr


Di*rits.,td
infr'nrrd b *t1"\ efto ' antr rhtnLs
Looc"Hon of 6erva c,+pttc^do\ just needs io be
ott o?png l\}<r{&at 6"5fi
no nerd oP aharSe in c{rde,nl C\ient &ppns ' Ecz ciJcyl.t 5t-rrttar

oft*ntt ftt r7'uw7 rlo'


oppns bg gugltrsGn"pnz+
$efllng

a{lns xr,lprrt laatl bohnte btt


tts' thy oWo us n d"nl"P mtltlPle
Druu*.d
'

BLulnetl furmpontnis in mut$ple S*- oPPllrorr^s

.qJ- n'-iJisL"'
ons cD'tl be derlor"J tr'"g rntJdPlr B'ct^Pw^n'
@ [ry,LrHPle $e'Yslr CLPPticafl ol^s (-'t
V tttEli,eJ tDirh Tedlrh0
scfcxcncea coit I
t)l There routHPle B'ct"ng'unrf
vi!;tllii-l.
wlt,"nxt 'k^
dhbd. *7r'r'6 si'
C cl;eni amns fre^ B'rornP"nc"*
a^J hAe{e B"'r'}'olg
(E @, €l crien'r &?Pn taus B'rncr{rodr o( B'tnt*'p^t"t
oF S",rrtX c,-fpl t'itr e^.."*a(Snol .'-.s,rrt LtU<. frb Cllor-t o|pvr'
6ru
i
To dax.toP Dish'ibured oyfx>g 6a oed rt''e 9+w* 4
J;.niu.r"J lahnoloytte

voker / CoRBA ond Q}r-" "'


E3 :- Rrf r , €JB , wcla ser! rces / l-ltbp Jn

er*trn6 d.tr*arrcd tahnolo6la f lya B;rI, E<IB.,


--- slt% JEE pmrrlde.l a,b'r@art"0 lo6^ ^ 5uor"r
im o"ro J^'n;b'rA hr-bnolo6;
catted f]utp '

Nfl&wicea a"'d ajso PrD\'ldcs

d App ioPrnent + Drlo:dts are involvzi '


Jo D;sr,i tc,.re Dci re

O $g1y;1g J'*crPac"/Bt.,siness J,rr.rRace -- tosq&"Dmoo"t"*''X.;tT:T*i.lX-6;


ive &a't'e bY'ro'h"'/ qnl-r€ra'v
Drctc.raH oo c{ b..arbod,g i'tifi.*
->
@ S,'* P,ovidor APP
'AfP io 8'coroewnt)
St"t,v' fle' canJoln6 b"'rerboA3'
(*
@ Pr{'.1-t sl.t ohts an d also ruroVcs Dlt*u,rea
( *o.. b-omP rcftrena* 0s gl$a\ visiste

}qTb as lmarroo tlorr3Pat""r off".)


@ Gvire Ct;er* nPP
( c"rrs Oe b.muhocb oP 8'co'F"c"rrs'

Plain RHr :-
at JDts
----+ ft i5 btrirt - in Disl'lua}td lecbnoto6S

Qrni regist"tr q.5 Rq;ar'1


slttr
---) useb

c'Pi : iq"fq11qgu"l P}6s


-"' Cote pirg s oP troi oYc iava ' rrni '

S;ldboi i5 he DPPetoce blLD Loco\ gfltn* ood Qe,norc ctier* !


'!.
=
ye,eldes 6n 6ctme JVn
theoir Is CarreJ
lru., Ig rbe oppo ood ;tg cl]cd-
-===
Locor cticr* ft'o{'Pn'
regjde5 in tuo criP?e*er* ilns 4 SrrnLal

- IF otPn and it5 cUcn*


cl,icnr Jo a-fltl'
digft*nr CcmFrtcrs *rn it )s
\J C&!ed Qc-ot'e
Otuca*
q'
.- 3;- lihad is rtre DiFP rlt'',, lso-t ohf* dnJ eernore .Ro* t-occ'l, cx ..,rrs the,n ib tr

=*"
= trle,hoa' o9 rhe ohre'r Crn be currel on\1
- rP
cl|<rrj
Clded Locgi' objeor' LM4! reer'5ts
be @red hm !ltl^
TP t\t-mentro& & rht ohJerr Orn
o'\ ol'u'' ics
Obtfit krz'ne: Ptrorchlr
t\fl(n lb i5 Clffe-J ftcr.ote O{]tt]'
- class imptc rrrnrs java. rrn I ,[2"'6o* (')

--+ hlhite deuloping &srnhted dppos d/\ he b,rsnegs dUelfS rru.sr be att l"pq
G( krrr ra O$eer ,

@ E,*arople oppiicoHoo ch Plaln rrni


kcr .ic.va CS"onlo 7n*trft'ce-)
"iova C6e*rte Povrac,r *pp )
,Qrvcn App

Cilcn*App"iavo f s"*t.u Cu".,r Ale)


Qrni re6rsrrX Cpr6ur,1 st )
Jn ona ornpcrtcr ff,1/ripre JVHS @n be lbenc l-o wtn rnolkiple ic.uc. oppns
Sirnurtancous\B Cor) GncurrcnrlX

6.,'.rla
r S:nvcrApp .i o'v a
-Gie.l*#rc^
Cll.il A?P ",j c,rv a

il k*' ir..' o(&"rire 3*rcr Fac' )


imPo* jara'rrni '* i
PLtDi
c i66* Pate Fat ertodg QernoK
-f
' li*oo B'rrrrhroa< Ex(Pd"n i
(int vc'r)'$nu'i: Ba66tc

il. t* f;6Eerz"r<^i

/i|9*.Aw'i"vo'.
' )t )
imfrort J&\Ct'lrni xi
,,-,'ffitf,,*tffi
o'
PJb\.ic E*T'npr t)
tlwot':s Qc"ereEltq"l

{ i sararn Grurn,.cr"r" )
i
S'o I f" €'*rtn r s-

/',^03.-.*,.'.'1'-1o* o (lnt vor)


frtu. t^3 $nart
f^ Linr \=!-; i <=ttat ; ++ i )
a
1.
1a5: reg *i)
3
tl(lfn ,ftai
J /l $naL*"'i'a

B$lic class &wrhP


n o"6stJ)rtrocs fu'Pna
o'v.',(5rl1
-
E rl-pt obj=nero krrfrnp\l)i //B*r*s ou'

qrso r
ll r'ro's'''" N6'ios'bind C
Na.,i.2 i i ouil
U"'':;i.^l"a"
'v 5'o d ( " st"- *pp rs r"^at - - ' '" )'
3
5

il Ctic'$APP'iavq
irnpolt ' rrni'*r
"iala

Fib[c ctos5 CtitnrApp


\ ElttPd on
J* u'.'s') w*
n , v t(Sr""gtl
t, stt'gl.' lo,w
or"'ou^
,* n t* "F fin,,., *oon5

.toova.(uinu;,): il*so6i=(ruu)r'n'rni'r*!'{'r'ri}lJtrIl
E.j r"bj= LE"r)f.Ji-,ij
L-, lt ["lqtt to
ll col B't"ruat ''ntorr

S'o' rCCut* hw :' +b\'s' fl'"a l..or''.* "r t5


));

3ll-^^
31o*
Coroptte ,.1auo Bres'

1'javQ
E:\Apps\spfing\Server)'i'rvac
c60t Far-t'cras Ptre il Ctpnr 6rderr'

f ,\fills\ SprinS\Critnl> jc.voc +'Jo'va'


$errrarc SnrUftre ..-0,$;'$, r--, cl&sJ Ro.rn( o? B'al+
El\ Alrrs\sr,,rnc\ r".**;' ;Ll" Factl-nngt
g)ve$ farJ'npt -&,,b .ctar,s

Ct5 6n b P're to Ctierrr SLzPJ

6tc,.rr {mi re6t6tfU fr. €e"*n Qoae'r

E :\ ApP5\ sP" n5 \ scvwr ) rmiregis\


Run tbe &rwx olPucafio'
E',\ Ar0p6 \ si'*t\ 3e,r'/6. > ,Jc.!a 6c*<'rApp
Qun fte Cr,.i(ni c.{Ptl.aH ffr'l

€: \ nr:f,s\qmng\ CU.* > o,,.va CunrrAo,o

To chaoge Rrrri re6iot",1 poyr rf,rmtr4 i-

Sntal i, -
Ttrniregiarx Loeawtroo >
E[} >rmirefi6rl 2ooo

da-ta
Data to rrrercpq' q61tt11on
--> t)g proces 6 o? crnve*i n9 3:'rra rntcrllcne
15
is Cdled 0n rrcrahof'l' '
k corred *trh"""'8' and Te$rxse

these rrcrshocornS {rn""-f--\'


--+ T6e 6kib &f clienJ Side 4 or €e"ver
s;ae grrhms
P a'.vc'{ cPPn'
' rnM\
IU
ful
oPc'rctl66n3 9.aP's'de
o, r urrrl cePn 4.
oP
on b.hale
t0i$ ec.cl, orhc'r
gcz Iheie icoo Prolie5 Loiu ccrnrounicdl
)

on rroi cllc*d 4 St"'* 61'de dPPos"

1 3t"'B'i!" l;--.r1-* ,'r * need,* \2


sh6P'.s
65g,6crrHon loter.on
Ftr- tuo'"
--, frrovide5 ftbstrct(-nu" l:'^. c",+rq c{,pns,
cu'al apPns as S,'inl
c.l,p,s, I
I x,fl|]
exprlcrrg
b dewJ4 €r.w'r { l-, ,".*r,i'.*: .*:^ii. ,..-
o*cros
; ;::, *l.". n 166orcin! urirh p\c"n t-i aPi ' lffi;"X+if # #:ll :-
tT* t1''
r,r\i /- ^- *i
. I Oncrto-'/ari"s r'z'me @&wi..f"rq4""!
---t ot1.5P.rerno.n5'rrnl Pug "flo.et'fs - ffivrnr apPos'
€,,.er*sn L"a'n3 ln "-
5n'5
; ;".';';.-,'la o *ni'"'",
Q'^Plicjtb
r) lhe'.e is ho need op 6bY6nf rml re6\sl^t$
-----i CaJ\ c,lofo corrh ftmnSCor*at:nt'l 6k''''tcd Yrni XisrI) ff( (c'n r''lc'(E fn'r\ explrcidj
6f'tltd Ylrri ltf i si"Y
'in frDi re?;.3hr5 ftrocr! \ dqz.'rle,<;
--) dllc[o6 io keeP hrs;rrrs O$ecl rePcrr'oce

jnje*i(m Prbcess 6od ol[oco6 to tf* g.obj reP R"r r-; ro8i"h} rbtat-t3l^,

derr.den,l iqjeuton PrcceiI'

----> ariaUJblo de.etop ftr',=sc."ces c(3 Po0i's 4 p"to't


'-) ouoc,rS lo 6*dfo rmi r€Bi5hrj relamd cFSs in xrnt ft13 &lar<tHr'"-16'
Busi obeet to Rrni
F-;^r'o'rcr cdn aPose 8ir'€,' "'!s
619 ' sP' Ycrnotlog ' rrnl ' Qoi Servire
q
oarn
haornX 6Pet;P;od
ga$r''ea &"m
6rX' 6('' rc,..,ohofi'rmi ' P-; P.*lFto-1t3ton
---- [3aslne'r;
1r**IoaY ogtaH o>'
rh' ou3['
''*
""''t6rsr5 ct{'one *?^ *ut.'";'6t
@ n" exomple &1rpl;co'on cr' 3;-,"gR"^ri bt'eed Dsr'Jl,',-/'ecl
t
tol I-i n3 &r-c"'t5
lopiog erlr cr{?n Loe o'ed ro 6c'lte'i
-> hth;le deve picri6 c.rier^tj-

R*m Se.rve, cppucc+rc1-1.


O) DicK lome $ivcr1 16 rr"i B ohjeti
a acopy tp &rvice inirrpq.., 6k'b fttes '',". mn'#, oo'rn,..br,)
c) o'r a4 trn\ rtfierl tt-' \.
ro p,. frrm
Url Loovrrp o1c^otl
acr+''o ds lI /'\
d) prc-..t*oti oa a)8* Busintts
a€ia.ils *6t'r br't'* '{+t' '
crPPn t'd- need 4u""1^3
l,rl[.,,tt de'*-{,p'r3 SpogRyrr et;enf r9/",w '
)s rp{-
4 some as otpve deta;is bk sk'b6rt

(''l* )--
plain trni Servot Af,pn ( Ploin'(roi clicnJ APPq

(vce)
--- Spncg rrn; ciictf afPn
gpnog rroi servc,r APpn n
(ttt) gPnog rrr)i cl ienf dPp/)
plorn rroi &.rvcx ArPPO n
'
lo Cr;e'* apnn side ]
fSr,to Flre sho(ld
coPred

(to) plcro rrrri clicrlt ctffn


gp,nn! rmi Sgtw Appn * ,
3nc6 ?ite !rr'r 5fri3 alnn *rs hol-
f orrin rmi clie# Appn oeed
rrni $ew<a

$orrt<,re ft.s Stau fl're e,Vf:cfrig]

-, In r(cd {.t!rld 6.Lt Ci€d.it ca{d Gnd Card for4 pon ertF siinJ Cor rt dc't'loPel' ol
Debit frrvc\fe

Dtsr;hrrca fompcvrenx mrr;coti*s


/
&rv eromple cqplic&ficrn oq 5prioSrmi &ri,5 Sg',.389 wslo4e \ee1-, o++^ {04
ge Ege mts or(ts
ft;qnnr Serl,<"r aldrr{ o\ ctlc Grr) loue t$e. &'an<'rr- og
Mhre d,rhptnS lqrrs in
gprrog Ofzn, DAO rncrd&teJ obre de.*'l'Prt &r"ln*s[o$t:'

Drloh,rfS O? Pnl :-
Se{\x/rel!P q rtrt-r*t-
be
(-tr.,* t"to"u totb cuerd- clrld
O RmJ i3 Languaxe &fxnde'-tt
ctelelo1rJ ln Java Lar4aafie ' ) ,

e Rmr o{,Pn6 eorl r use J*e" ner rykrotlL as rb',t G-rnrrurrJ cq}lc'o d':aonel ' \--,

on rhe S'srnesslo5tcs "P Rrtrt oryrrta it


@ Aw\r"X middler-mre Se.vrcus
t/r.tr d,'PFJo.rt
r IL'* (gtLsluaoP"on@
@ Rrnr re6rsry is a &rcalt retlslY5 to L"are
lrtno'oP '-
ltK EJB, HE"Fr'tt":
T0 0\ercorne thf5e 1y"blerng ose gtbc,r Dtst'iu-rreJ ]a'rrnolo6rea
v
Nclos3vvttr{ ond e}e.-. EJB, HnplnuoEor atc l-6*3u- d{t\At"rt. ltl6k"?rcrs
i< l.anguqe inde,{^1de'rl-, -
cc'n rPk
q$tn'afi^If cr'rt \-
Sp"TEfg ehrdsrton le'd'*'')
SpgErO pravi&s ehrdsrton le'dl't'') plornEJB ' br q$tn'afi^Iry mAe
- dad'srnpnJ-c+ i'--/

ujcd
scd iq rh€ &r4oprna- rP
&r4oprna-,P
v EJB 6rn1n*^r$or iu'sr u*<|'^L in$e
dad'srnpnJ-cf
grATE'n
gfA1tr"r8
JB dtent
EW ctrut Aep ht6r*n fS.
Aw *rxl^r4,,r,,* fs. Sn"3 htl"v'* xtot'r tknPs "b* )) ' '.-

gr^6lrlcbsmr..r bfn *'tut't


,n b*'' kn &t'latw
su''tu"t anA cLit* ka
'
-- 3rr'6 Llosor,* prwides
prwides alsrror.rr"nl-o6o'r
abswa,,""J4w
^ ^a
HTTP lNVOKER
: !-"-
Teor't'ologl
-o J \r
slrri.rgs u'ln
rr ls slrria'gS urln *^ d disttrtu-rca
d'*rrk*cd
ctt'b
u'ieb base
!

6pdog &rnta,n r cots


os Fe6lsr'5 SltO \--
tbe Sad'(,'l
inthe
A.^l*nps in sai"t,t
i5 rrotlrrn3 W a$oppficcrloo dtplof:el \--',
Heie &r,.,or o4pq
thand q"tone aPPD
ot ufl*pgt *
lbr( cu{^1i c4pn Can Le 'YeEs 6'oars inthe
0'rg' 69' rr,o,rnX ' U;J* ft*tt*g..ni'ehr'*r"' (o")'-
\,..
e nttmL crs \'')cts nort&
q,rt'1 Crp"nJ U''*'* ) h'"t"6
in-t'e cPoc
&rvice

** g'x E'*ut "&'*ot-


ot" o*""^^
.vtffodng . l-,-.,n!6r.,,r" ![rrrL**Pr^uh*g&""
&'"
5F
,Yt hKP'r

..J
thie tatrnolq5 is ak6 \*g"%. &{".&t*' btU *"*,r. and oppl''caxons rtr'Jtte
Nvittco in jaua Lrn6,ro6e.

fte &.va r.rtse l+ttP rt9/re6l- i;veat &om e-tie-nl-,


clC^SSeS oP Wcbappticorlcrrr Corl b

ond theX coo't fcrrroff llrrp"esp"nse dsrett n utet*,


'10 / el ft-6rahn
*eltrrl 6e'rv tel ftogram
Ovsr Corne fhi S groHe m Coe icrke erne
D
to frc{ and tcrbe cr.u Httpre$rrst &,rnlng % urbo+pn i{ar-r clienr'5 aod to luus

the reryrsis to aap#o Jal]a daNes .

llhis FlorLrarfratl€,('
Spedal €ewwl JsP t,.^grarn, is coued

rdtlongfi,r,,l

qcrg ctars )

F .rnrCcokollc,/

Trsr a [&va crars)

FyonlccmrrDllaf i6 a sp€cjcd uj(byrso&6ce


ryxg'an 4a *or aofs at ffJrX 4
&it poin* ha'ndrhX aL d.\i |64.,",
c3' (Hatoa**t*, op crd,.nj
aPn [.cPo. a]xw dic.Xrarn) Jarxtcte,crt a,^urb

h SWrs appn fr<l'larrSeru{ef 13 fior GxhDLl(^ $*ter.


F*esS.wret k F"".tCo-r'tttr&rruter, In Sp^"X a9pn5 orO.se.H#'e^tcr.Di'g
is tronr G*rrtttr Q*t.r.
--) O Foflr&nrtrDu({ *r.!tcf musl bz Caohflued in'0 utb lrn) krc ko;,g A<tud on rtr.tc],

or D;teca2maf.f' arl Prk-ro


-lo t'ap a"J 1aw ruLfple'YY-1rr{rr .

Wtbgc'cvcT AptiQdon €orw,/


GCrre.arCS {EAeJ+ olPn -1
Nt"b
h*p: // rrr,r hosr : roto/
F'gAtuer"1
.F--
I br+iru.t ,* ..- .*.0
.bt*ilrpt (gurrt"" ootn

tr}hleb( )

B.ou.r rP; 6erl,-Jeerc: ; u'(l wta t\


i-.....3
-,.tr

.rtrti. \ '> },*p;-pl otoss oqy


(ni.*DaF< ) @$..f o4rr€ )

Nhreo DtsfarrheSftvlft i,5 ir6hr4n$okd ib inrcrncd[ activohcS WtfApof'*'+""G"'K"+G^"4";


as SpogGn$y'ta$"o S'}'"i*
4 +ounq ?O,
vlef -' fr{rrf > Cofittl|
N.r to ille Dqrarn
\J
Htfpfrxofet $srucir Gtr{'D
co hlela4plica-19c6- ir> vflo #:rW
prdgmmer dePlog€eb
"o i clans oulat
.,- ,,, r.*,-.\^..! c'"e,'r<s Drrr,o.r.r,a &rvler -
@ $cz oP load or' 6ra'fi(,p 9'tttlet1'pntcsttt't
rbc deplogcetrn"* op t*Latnn'
eiftc,r drc,n3 *-t"'r 6ran-c'p Co) d-'-'vlng
Ot"ta:nn bX
-tl'rrs 9"rt<J intcnrsrq activolea Ncbfippn *Confcxt
D;srtrlclr'r
@ g'" * c"ts6"'"tln hel
5a{vl4' xml Sr"r5
Iounl lDwo*r,te'nv*L'ofilo'rNamaF
3r*'58eons c'F Sftryt.*
.Ihis Sp*ns.c"..rdr{d 1x^ftr,ros f-lrr-ins-r,ntraftoD on a]r rhe
@
f;re.
9a'^ttceEzpotrs ktt{'6
A
€J t" * o+ prelrsrantiaH'r'n tr lJrrp$rnort
W@
in rt.;srr. tfo hru;ry S*itt1'"*o&6q ffirrncas o*Lo,nd
Brssioess Cla* cqi€d '
C,.rni ce\rn Uses g-" yqf{est url anA "b&* 8e..,^} -h dT*
Etpe6r to &"w6 o4pucoHon.
B'ahietr
'.-'- O Bored (rn rbe cr'bow auiuhiea :he Dsrorj'er&"vter garFrrs
tcftEence fior" ReXiorrS a[o. - :
/A - o reforencc ftom
*rPr**.,rp &"tg a+t'n
O cti,* opn 9cl5 ^.,"^,
B'oUtar

'- lrs'.oP B.Fr'bod arec*<b


' ":|,#lL .,,r* apptt.ai';'
),
O
-'66{cr
Pcrseno

g* €xcrrople o{pn er}


HirPr'""b:go rffilJl;@
---
beo WebopfJn of lon-r'oc'bapPo'
.--o A Dstdh.ttcl 6rppllco*loo Con
aonA oJJJD<nt
"
Uouo:x'iftc'*Pa"eDt
weucppn *n* uses Yqist^d €'ppolt,o5
-+
&ghlkded aopt's'
- -+ Htt?tr.,vole{r wb3{vices ate- f'e Nobaeea o?f't$'
'*'-4 rprar olr Dsniuxtr<J
Servlet, J5? 1^r5o1,pDs a're ;

*lbe
^Lnffur
&ttoulvrg tg'tt P-omrhe'
ctienr oppe dcudo;rr o? Hwf.uoFe'v shn'rd 6c,4r,r
&"r" Omn 4 HtP.trnvo\.c,r.
cD q aft of 8ervicel.rrcrf"r
/Ar"l"essJnrt*Rece
b) Teftst urt to ge*Qustrress 6qjar "rekrence
C) DcrcrrnenkrHoo ohlt Bu.s;rrsg rrrr$'o61 ,

dera;r6 fo clicnr- A?p


Wd'ru
Sanrt crppn ippc\opor Con Sand rtt-is
nuil cn as a Cdnl€ai to do<pntoaJ,
rhe
rn&atrg pafuos uxblllic(S Gt-r $r';ngNeh&rvices
a{Do. Qrbq\a!;S. rheg UcP". uslng fifplnvotcat fudarlop
ep,ngbc.ed bisilsrtt oppnE, Spr.,rger,rrls
mr ln&srry
gta,,r&qf Dts*ia*d 1e$notqy
h drqlqp tht Oisurued O{rfyyrj,
tff S (Jouo l-\essogc &,vra ) :-

--) I9 cl;er't ig b)ocre d 6r oor Ptee ro gcncYzLrc De^r requ€6 t t6t) io fxt f="tO

eiicrLt 6ide oPc,'otlc'o 6 (IY*i \ fiwn vea#eSt wfg'l.ed Yesrffse CoT neg to el;c,ni- fi.-.'-_

Se.r,t'r , rben b ii d Cor'rr*-r rLiftrH on


i Crrue $nc$rcmtrS .

---J Xn G3ochronx-rs Com11-frnjca116rn e[ic\d appb ond €ert'e" ctpps6S 6^

fie 6htlX Cnqrled o-0pn5


gSrrtronot A Corffo{lrucotl oo

Clicnt APP
rErres l Cr)

ne^r v€4,l,l€6t-
-) fD 6unchYu-o(.ls GrnrrfrruCCrrfon Alcx't*
Clicru 5id e
O|I/rc$tCm-l
$rr.ranan ond Senr'l d{fr8 e". kshn\ cv'PE[
aoPrts '

I8 Cticr* q)pn bneedg to poftrr- C\icrw5ide oF4al.tons And tl gerrgrctfc rgl-


-)
'{e$resr coirb o+crrctting &,r gj€o r€,\€sfd y€4enlz S.n g-rnr.opn
'1q.pJr
ttrc,.t it i3 Calttd " Aqno**crs
Ccrrrroc{nrcc.Hcrn."

oi(rl+App
reO

P,.t;
Da(f yE&eF
Ste f 1t^f*-
Cl,ciu si e{e bttRMi''
otf{''rs-
--) Jn Clieff ood &)r'r(/ ci{,Png ccre lme! Cc,4ted
ASSrrchYDftrLs Cornmer ru'cortlc'r;

---J In Sgrfhruncxrs [ommtrruca]tto i? clicnl alpn ig ttt,scJ fbe 8o'w dPPnS

its idle cr\d Vtcc wdr..


((e$dc
Ln A65rcb.;ronc,t.s bofi C\i1nt and $"'Yut'r a+nnS
Ccrrqrnc.rru(at{crr-r

in [us5 rrrte Cont{nuarrlX .


I
{uo'{t , ;2t' ,
oalor-l:oro
=-:--

What ls Messaqinq?
Mcssirging is a rrctlrL\.1 r:f conrrrrurrication
b"t*a, j, roiiruaa cornponeo!s
pecr.ro_pccr lircrrrry: A rrressagins or
fror\ any :;i:]^i:_a
;|ffi"r.,:"* olhcr clicni e..l i.i;",,,"]llll: 'r nrc5sagrng u,lettl
send mEQET6]E-if#
ctienr can ca;;;A;;;;;;;;::=_
,"n,r;,tg. .l."iui,,gi'il,..:"}j;i-:1il1,,:olrnects ro a rnessaging agent that pro;id"" fu"lii;;

,"",..,". ll":'::*,'""iii1.i'::.,.;'ili:l:l.con)rrlunicatib,r rhat is toosetv coupred.


sender and the r.ce;vc. ca:r.retrieve
vo'r rcLrrcve lne
the messaee ftonl rhe
message irorr
d^
rcceiver ao ^^, ,.....-"-!,1,.n,
no,tr,|V"-'t''"' lhe dr
dt
sendcr rloes no, n".a-io;ii;t#fF9*ir!4!l!-{rlre ri,ni in order to c
s-ame
receiver;
aboLrt the sender' rh;;i;'";;;';i:'l::-10"* 'h: lo
recelver need
does the rcceiver
tu^no\vontyuhal
knorvonlyryhat
no-._r

to use. In this respect, ,-^----, orrlers llom


.p".,-, ,n"rruain.,- messace fon
dcstinalion
Invocation
rnvocar,on /RNtl\ r,,h;^r .^^..: - -
(Rlrll), ri,fri.f,,"0"-ir.-"" tightly
.rrgntty coupled technolQr);-,q
teci

. N,essasino also
Nlessaging .ri;-r-,,. li.
ar<^ diiTers '' -- 'lv
-" ro
"]rrrLrr.rru'rr
a^pprrcar.)n
knorv
NrvrY ca rcmole
rernore apoltcation's m!d6^45'€r;:"
appricorioni X,!ir
l\4ehod
--
r)qtwcen pcople or i*i.r'' i1-*[S$i*
"'tt'tonj" mail (e:rnail).
n"**"
behvcen ,n,,,,.,."n
p""pt. ,rr""lgieT.*€$a-'i*,| coru.rnunicarion
.",i",*ii,iijl
'l'n'i"'" "ool"",i"',i! li''jl',ii":";t:j;;::H,:"t
W-ts_Us&e_JMSJ8E
The Java fulcssarc Selvicc
is ir javx
Apl thar allorv, oppiijut;on,,iiirr..
pril,rcr receive, and ,erd
;n',T,-.::: ,ft''"-:::,j1,,t".1,,:l:.:.y.,ai '? 51""'' '"n6,
"o,npuni",i'ii,b'ii,t
coi,r',, i,, c:rrc rrirh orhcr
In(ssi,.-ijr, ,;,,iii:1,,:iil:,jl::-',,',1' ".ii'.""t"t'iir'; il: lidffi;",lil:il :;'
.Dr,t lltc JMS Al,l rnrrrrrnr-zcs r tl'ol concepts a pro8.ramtnel
mu Iciuo
t,r'r,rirlcs cDorr-qlr li,rrlrr.cs ,,, .,.ll. 1e u5s Lnessrgi'rq proilucts
{l)cr}r,rrrr,ir;ry Lrr-ji!rS a'pricirri.rrs 'r1't'rt s<'Ilristicrtcd #i;:t'
I r)c rrrs A'r c'rbres
';"rr-"g,;; ro mrxitnize
ts notf.o:i!l.,;l;;.F
coirrr r rnic ,i,::':;:1.11"'s
only loosc '"#i;::il;:[,j:;:;:'''*'
ly'iou plc'j bur also
rs-rtrc1ror,",,r.
,lrrrvr: 16 s11,x(51 a ir,ii ,,r,"t,'itJt rlessrg'ei io r ct;, ni n, rh.y
;,, ;;;,:; ',; ,l .'.ll :l;..';liuer 0., i','"; a cii.nr
'n".r"g;
|ttti:rblc. llrc JIIS,\l,t,,,,,.;,.,;"',;.';
,Jo.,s nor
. . .
" .^^
ll,:,T,1:::',',, ";.:
.,,;;";;:';:i.'";i;,:ll:[:'il]j,.::;:]ij.j' onry
once Lory:r ,:vers
lj,":::;1:1,::,"0
lcss;ig.s o o ,ecei!e cluplicete ,

'll'c Jt!.S Spccific,rri,n


Sptciiie,rrio. ,rrr r,., J'r'blishctl. i,
u".ri.,,'ir.ro.',.;,1),"i:' Arr{:,rsr r908.
Spccincarion 't
i,o,",r,.,n,s *.",,,um;,*l*::;,1:;:ji,illll'rJ]:j';:1,;;:::: ::#:jH

;l:ffit:1F,i;ff*ffi,,
tr;[l{-#,*,'';i: *:",'1,''""'"ry:,il**
#:::H:,,y: ;il,:"::::.:ff 'rui+',J1;*gffi
l:il ;l"lliff l,: :"t;i;;'l;ffi'::'
1'"
transaction-
a ' :: ;';,'i; #
't''e"
stngte 4uuw J

U++usgsret*

ht:;*f'ffi lli*li-fi tf,,"'*",il,fu ffi 3#;,.r."Tifi j.jilil


nf{inf ,**lt{t*+ri:riffi
ifi *l"*,";*#* ffi;*
(

\
.)
'+! i
!
*
t
i
Point-to-Poin
r urrrr-ro-rornJt M
Mcssaeitg
cssaging Domirin
Domrrin
A poinl'to-poinl llteffiOucr or aDolic.t;^n
rvers. Each ,,je\(,rop i<
pplication is
i< built
^- rh- cdncept
h,rirr on_tirc -r rncssage gueues,
^.:.--^-. ol
il"' queues
the fi ^AA.---^).^
:::",':1":i:ii:',':T"1.ii,L':a{
establisbed ro tiota rrr#--'--
tv
1;'Gil ;#:: ;']l'H1.'fi'J:;ll'::f;;
q )PELl]|'j queue' ano recervlng
messages. eucues rerain all rnessages
-
clients extract r
i"nt ,o ,ta^ uniil
cons'jare., o*hril
are consumcd the *---^,^--
or until ih. messa'ges expirc.
Ittepbo'e
'rdd o:irh
n
Com4fbr ArxArrlr6tcr&lrtne

#"i, *o u.."*"-Plt to onde! ste$ e


E
$tifu o
"tut
;>nrrro h.hr,,aq
l,Cller;il
I
l:,'1r,!!.riii:ji..
I
llliJ:li ri.rr,ir I
ftndd'
@
[3
S€nd5 @ffi
Figure 3-r-3 Poinr-to.poinr

ferch $e

rht Asare dP,s tirrrftro b e.l*t'4$'e


co4:ltncr.

l\r hlislr/$u bscr!b! M cssatl irrs l lo rrr:r irr

*".,,",,':iJ;ll'j,';i:':',1i,.i,,,1,;:'#",*;.f,ooJ.'
c)na,nrcn
messascs
lly publish or subscribe {+Jlfff:,ffJfiiTl"i.i,jl{,1;llTil
rrrving frorn a ro'ic,s ,,1-t,.ln: t"l':nJ \Tg-archy,f The sylrcm tlakes br'r-
onlv as 1,ng
-rv.ir,"g "'
i,i'r", i"',ri,,il"l" ;iili;ij; :*li:Llll'r<i .its"irrulriprc subscrib.ii.
" i,i"k;:';':':;i;:l'11il;il::;|liffii,J:,,ilri'urriprc
"i;;;;;br;;;;#
s,b'.';u.,r. i,pi",
i,pi., ;;;#;,..;,,i:: ;ff;j:,:il:
Pub/sub r'essaging f,", ,t," .^,,-...,.i,f:'. l:/ ,H

j-. 5::l l:.:,*and.-subscr.ibers


ruotrsners
u,r.-,,:;; ,:::::*tttt-'-'
con$rne onry trv;i:.,l'-i-_,-
t.lt-:u:iilil:"t depcndency. A cri
rness:gcs pubrishcd
con,inue ,o u. ..,i""i-",5.Jii.J;i"":1jH..;1*,;;i'.:,,"#:I."^.,.;i";:#:,,::,r.l;rJ.:fi,:.';jl.j,l
The JMS Apl
durable r,,t.".;^,:^--
subscribers io create
rnany rccipients.
not active. Dujable
to send messages to

lu,.l
tt
F*tF6!Eb!'

I
,, i,r
.-.... ! . .

to crnddsrand pl l9r'b matet think


alarr Gd"K"" '
'' l r::' Safill.ll€

-r::
|
-. ;
rCl\
) rJ :1116 ;. c,!-.n crogie.

Messaqe Consumption
Messaging products arc inlrcrcnrly gJrr'llrrerluu5'
bctrvccn :n thc produition and
'.-"''' rsynchronoui: There I rlere ls fundrt::i3f timing
is no lundamenhl tTi"hlde
ona tlc
tf ," ol
of a rnesrge.
rnessroe l1^.o.v^. ,^r"
n a r[ore Drecise sen* M",",s.; "o;,; l.:lorvevcr, rh-
rhe ,;";il";l;; b;,
JMs
ll.;.i,l;;fl#" j.:,".
-i.tttch rynou:trv. A srrbscribcr ;, ,-;;
;;;;il';;;l;ffi ;":ii:,
"o,,ru,nl,ion
_,*..,,,.,^ ^..-u,J|ion
"- rrr sr'Ircr iil,l,",]il;,:i
oI Iwo rvavs: j
-r.r- -- '!r !^F'vrrrJ
cxplicitly rsrcncs
.,,.iiu.. block ferchds tnc
rhe mcssao
mcssagc from the
--^-.,..- -ur.rt
.re reccive n,prh^.J r'he receiuc
the
,ol arive
not 'ethod.
r.;v. \,;r,;- until a rressage arrivei
rvithin a spccified tirne lilrrir

::'::::::,:,::,:::!; t: 1", " :*wi,h a "'iJ:i?fi;t,fr::


fl,:H,:::,:::,:: :_"^::::! ii,'i"'i"l'iJff consumer. A messase
il il:1I::ff*l:ff
calti'g ;il;;:,;,.;
:::.i.1".:':1",
rhe risiencrs onruress,gc ",'r";, il'ffi
:iX:",:;,i:ifi,i,::.j:;

I;;*dl -
.--iJ.''
rffi
lffi
W
A dministered Obiecis

l]:'o.p"',, Jlln,, applic:rion .desrin:,;ji, una .onn".,;on


p,-,,-s#lu,",icalr), :rh.e 12.r^.
;i,#::::'l'::,1':,l""r,on
tlii;tiliilH::i;*t#i{ir,rlt1u
i.i'liJi"H*:I:",''#:ir;i::*','#
r'cr'r gs ,virh
,r,". i:*.";*l +r,::[;:^'ix'JH;:;l'i,,'i:;,TJii':j
j';lF",u*iiil,":jp.:::fiil?;ff J:.,";ai:r;*:
"r,i,j";,,,,,'i,";.,:iJfi"il'"";'l;,:#ili::,J}"..".ji,i:;
qonncttioI Factorics .
A ,o,,nurtio,u
/o"-ifrs rhe obiecr r e ri""r ,,"--.^
"n"op,,iu,",, r.i Ji";;;.;,:;'":l::::r.uses ro cieare a connecrion ro pt""idcr' A co'tection facto'v
!Llnnec-rron racrory is P:rmmerers ;;;';;;;.1
an ifii"n.; oftl:ujot;on
tr'' conn"J';onio.ro;1il;;:::"":;T;t"ffi,ifi"i'*.o'' e';
loprcconnecrionFa",gryl,rrrr"."
r/c |tlalions r: ;1,
A d.'stit,oti()t is thc o'bject
:r clicur spcci! thc rir-(ct of Dessf,
nrcssirscs ir .,,ur,"*lin',i,""';:;f;,
':::: ]:
u,.,s,E;,'g ,rn,uainl j;;;,;;il;:- j,:'.";;5:Hf s .r;,';;, ;;;,,,",'li'j'"','."..1,:ii[:::"'"TJ',,"ffiJJ
Conneclions
a ,o,,n"iiirupsuhres a vinuar
rcp/rp socker
,
u",ri"",-.;,"",,j1"0 provider "r,l a Jrr4S provider. A cr
scssrons. i'. - - 'r"."^l:::l:l' ser"i." ae.r'",, v"" ,i"'jT::t]".1 could reprcsenr ar open
connection l,c crerte one or mor"

A.rcsrirr is a single-threadcd
conro
pn,d,".,i il:i,,-. J:ffj:.t:l'."..*:lll and consurnins rne:
;sages You use sessions
'n",,"s. L,r..l,nu rressages. to create

!,
d{ :.r i i. t
r
6l
.l
t--.
3t

I
I Eessaqe prqducers
A ncssage produccr is an
t obiccr rh
It implei'enrs ,rr. M.;;";;fi;:::1'n,.'.rtirt'J" by a sessio' iind uscd for sendin!r
r])essages ro a desrinalion.
.',..'",.
t Messaqe ConSumers
A: ness?8e

t 1'l::::
"o^u.ullln
/r mess3ge consumer a ou.s
obiecr rhar i< .r,6,-.r L.-
t,i.pr"'.,u,"ii,."i'r:::jfi::ff'J:1 -
*ni.:.:*'""
a tls c'j;.^r ;:;;;.;::.,,1:''.. .
and used ror receiving
nressase! senr ro a
i
pfovrder manages the delivcry tt*'ott in a dcsrir)al,ll:
oesrnarron_ ort']ll1::
rncss;rges ':l]',,1]t:
a dcsrinariorr.. ,"
frorn'nteresr provider. 1.he JMS
.-_ lllc rcgtslcred consulhers
of the . -
Messiqe Listeners
! lessqe listetrcr is ar oUiccr rt,
1,ris.hjcc,
;:',til';tr,'liyti#;:ilil,jrltiiil:,fi{il::';:"H',";LJ;'ytli::.:':r,:,
laken a r"-."g;;;.i;;r.
"''r'ruo'
rvhen
onMeslase ln the onit{g554gs

Selectors
Messaqe Selectors .'
If-your messcging applicarion

assign rhc work of


nccd
seJccror, rvhich alows a rnessac,.
::lil;J"j::l:Hi:,ln'"':#1";nl
"j"l?,,11:t:^,T
fihcring,ne;;";.,o.o"
l:"tsoges
jtiffi
il"s;;;,J,'JJ";,i1.;
ir receives, you can ,s

;:r#tr;imi:":'i)::.1;
appiicarion.
j:,:'.,,:::
Messaqeq
The ulrirnate pu+ose of a JMS
aooj rr
is to
rw prod-uce.
other
orher soft*.are aonlierria-. lVil,,--'""
soitw.aie applications. ,^,a a1:11t"" and ro
Pleuucerano loconsurne_nlessa3cs thJr
ca,r ihsn be u.r,d bv
you
you,ro crc'c mcssages rhJt mdtcl| fo rrrat r\ (l,nple i,, r,igr,ry-n..;i;'";:::,;{
to crcltc
'"";;,s.. ,il;.;;:;;;;;;::,":.1.il"""::;,i^j:11l,lI:,::l"pr" but highly flerible, cl
s Ltrs ,,",.,o"" i,ni,i,;;;;;i;:':',:,::,:i'::]':-'r.:r i:"l,Ys rppric.riorrs on hc,crc:jenco,,s rrirro,,ns
i\ I cssagc Hcadcrs
A Jtvlimesagc headcr contains
ptouia.r.o." r?ii"J; lickh r|irr c.rn;ri, virr,cs rh:,r r\,rr,
properties * #ilI'l::;jf f'*'t"' crl's,rr.s irir(l
. rylessage ..i ,.,.
,o,hose p,ovidcd by,he
*#$:."11;'J'"T:i;:::';:'?,0T"-,:'.':"'#"i;;iJ",I:;
use them
lo create m"s."g. ,"l"i,o^
r:""00',"n
other m.ssasing t;,r,.,ut, o,
1,ou .un
Mcssage Dodics
Thc JMS ApI defiaes
tgc bu,dy lbcrrlts, also callcJ rllcsser
to receiv€ data in many rvhich aJlow v()u to
fo-nns and provide c"^""iiii;.'., .il;"- '.',1c5- sc'd utd
1 exlsllng
,:.------.---:-_--:-
Contains
messaging fon nets.

TexlMessage ooitt, (tut .*""rp1", tt'"


'Fu"tt1'na on-ex.nsiut" rrr,.,.r",p
"on-rcnrrlr

ty
;i:il1fr en,incraror u, .",",,r,,,,,ril-i-u.;:. ;;"fi*.il ,i: """::,::j::
;i::';":fl"j:fiffdM
ectMcssagc scriatizabh objccr',,'iirJi;;;lilg;,;;;;-,g ti,;c,*;". -*. -- - - -
tg. Cornposed of heao.rliJliiit prqp",r..s r h,_, ,*r;"r.
when a message body is not
required. ""t). ryp" l;

ffi0wm,
1
jr'!E applicarionB---
,
I"":::'1f*')-_-.------Myeueuer",,o"r;"uo3odro-.,r...) --_
it importjavaxjms.';
5 import ravax.naming :i n r€ttt5
6 i-port j""r.uGiii.ilrti""; {.p rtie or c-rc*r oliar gornr'ng tD o}o$Fsb
@ xgnvnrs cbnnedivl bl to serda ooP n and JnJ
7 19 $mx'l
8
9 public class MyQueuesender
10 {
11 public stitlc void main($tsingE args)
throws Exception
12 t 4 a. /^ ." -r-.--.'
Propetti€E propEnew Propenies(); . corn,scoo. er*6"prSse . rar,l'5' Sen;arJoitdo u$atn\
c)Jli Irop,put{Conlext.lNIIIAL_CONTEXT_FACToRY,"@,,);
lrs prop.pu{contextPRovtDER_uRL,"B rfloiJ}&:lir.H
lrs
\tl lnitirlcontoxt ic:new InitialContexqprop);
18 ,^- QueueConnectionFactory qcts(eueueConnectionFactorvlic,lookuDa.'conFactJndi,,I:
t9 l€) Quoueconn€ction qconn=qct.cEateQueueConncction(li-"qc41;.i4; -Til';""e'jlrro to J$C.""rghc't)
20 QueueSossion qqession=q6onn.createeueugsession(tiiio,illsion,AUTo AcKNowlroen:E?i'rA!hb
21 t+trtotti 6<sslot0hic* OS b4le b por(orD On{-JHl, Opootj oDS. - " todt'
22 Queuequeue=(Queuelct(.lookup("QueueJndi,'); --+ potds .iO rhe
23 Queuesender qsende.=qsession.createsender(queue); ___.j -ir,n*. Cesrlr,ol*rn Ce Crt(4 l,F<b Orvr,,
er*redC
24t oqt(J
frrlnlng tO Stf|t€ d.j$Ddfb,,
25a t""""n"t ..-
a5-60 c'arr5 ?o 1cxr rrssases bool og ?o djgftJ,*'t 1txf onttrus
261 Iili|X"r:il,n"
nl ds beucs ' bor €i-rtri 5 m€tso3es &nia,os s"me \kr!'e
28 1 int k=l;
zsl in rfrme PDg,nS.
30 I for(int i=l;i<!4;i++)
3rl {
321 if(i==1) To nrn PlOln Omg) SprJng JrnS O{tPn6
::l texts"Hotrnail";
34lt else if(i:=2) Q teel e 4sr'ruor cf CrrlassFsb ;n runninX rncete
rngdo.ncrio
TI texts"Amazon";
JD\ else if(l==3) otffi:3i:P..il'6''*'&ft'-:S;1i&-,1,',11",-"lqr$ir*1
3f textr'Jcuru";
38
39
olse
text!"Bazes";
Cli)qD(a v -ert 'i4'l
CID a{P&rv-alm)h'lc.t
40
47 I fo(int 1=1;1<=5;1s1
tir) a{Xr,r! - ee . jc.r
42 I t Cr),huee.jar
43 I message=qs€ssion,croateToxtMossagg0;
41 I meslags.setstrin gProporty(,'Name",text);
45 I messa ge,setText("This is ltem "+k+,,"-,-."+toxt);
ael System.outprintln("Sendirlg,,+k+,,\t"+text);'
471 qsender.gend(message);
aal ' k#;
4eI I lot
50' lltor
51
52 qse3sion.close0;
53 qconn'close();
s4 yjrlr6a f1!6u<rre&n&r.ictvct
55
56
{ava Hg6ueue&n&'t
57 importravaxjms.r;
58 import javax.naming.*;
59 lmport Java.util.Properties;
60
61 publiccrass MvoueueReceiverimo"'""""""ii1tixr3ll
62 -.uer ftam a..cr.edes"ffis"?
63 '
64 public stadc void main(string argsp) rbrows Exception [r!c'.un! d"-,.i:,14 Ary".d"m't)
65

6frsFsl (hDld'b
66
67 @ chonge trsa Jndi pnfr,,tttr tt
68 Properties prqp=ney Properties();
60 prop.put{ContexllNlTlAL_CONTEXT_FACTORY,.\lveblogicjndi.T3tnitialCo
toarFartcr/.};
70 prop.puqContextPROVtDER_URL,,,t3://localhost'001"t'
71
72 lnilialConlext ic=new lnitiatCont€xt(prop);
73 QueucConnectionFactory qcts(eueueConnectionFactory)ic.lookup("ConFactJndi,,);
74
75 QueueConnection qconn=qct crsabqueueConnection0;
Que!eSession qsossion=qconn.:reateeueuesession(false,Session,AUTO_ACKNOWLEDGE);
ii
Queue queue=(eueue)ct(.lookup("Oud&ndi,,);
l:I9 6 f;trct rtr srscng
80 stdng serector=',Name tt{t,eazeel.,Hobn",,r".-- n"**"*
t;, QueseReceiverqreceiver=isesston.c.ei;ie;eive(queue.setector);
cQriog trs-vor pot"it'n ra B&e,.€ akltimlc*!
tq
u4
uvQu"r"n""ui"". fi=?#iffffu3.,u"*".","k
qFceiver.setJlessadeListengr{mq};
85 -------L objcrf,
86 qconn'start{)i ffi"-1l"""6c L\ttt'<'t Titl'* current cla-x
-E-e.-',tt [slan't h m<rsalc skrr< dc rocxcSex '
!i89 , f.*tari\rae msfr €zlh firr€ ,
90 F-)yqrrtg4fs
I
public void onllossaqe(Messaoe mLot
31f,r,ffi;;;i#i"a+"'(Edat<'acolr"'eoclrmesso-netor'il4t7
r/\csgest<tre
sr
lgrran i6iaressag6 bnsg={Textuessago)ms9;
R"?il?d($;"""s"'i"'".t*s
ii## iJ"11i#:$Tlli Tffi 'i**.s a* ffi.,),
Sf dl ' e,pdntstackTrace{)i
98)
9e)
100).
tot *.-.___*
t02 (App2l On Topic
163 -.--...*-________-____-Igpicpemojava-_B#j.:b(:_amD.)
104 importjavax.naming,';
'105 importiava.util.properties;

139'.o"nl:gtln".j_rrrn5 Apr)
108 public ctasi TopicDemo
r09 t
1.19 public static finat String TOPIC_FACTORY
'l'll pubfic static finat String TOpIC=,,TopicJndi,,;=,,tconFacrJndi,.:
112
.lt3 public static void mainistring argsgiltrrows NamingFxception,
JMsException
{
111
'115
Properties prop=new Propeniesg: Jnf,r! properrtct
4 Cntrlss$rh rt6,s tj
prop'put{context'lNlrlAL-c-oNT_EXT-FACToRY,"corn-sun]enierprise,naming.seria
'!'!6 prop.put(context.pRovro-en_unl,"iiop:rir"" jiii"t.jiqs); """ nitcon texhactory,.);
11.1
118
Contextctx=newtnitialconteit{prop);
ToplcDemo ttsnew Tep;sggrnsil.
qioiu!(gxFuJ."o"t*a,e*,a;#$ifu -j(ur'<'u rr6!s a!,krr-
113
121 )
122
'123 public void dopubrconrext ctx) throws
JMsExceptioo, llamingExcepticn
124 {
125 Topic topic=(Togiclcb(.lookuolToptcr:
126 -Ggr*iAf,|;'$e tn)( &$tnaHon c& OrhsFsh rqisrr5

iil €) rlT:ii:311ffi:li:ll::-':i,*:*l:i*:n:*nrcrory)cb(''|ookup(roprc-rnironv);
i3ffi."Hi"Ye'+:#anr*i$,ieH#*ess
ill ion.ruro_ec KNowLE DG E) ;

|t;
TopicPublisher tp:ts.createpubtisher(iopicli _) F6llshel is creareJ [r]r+i'
ili @ lD lOp, c

136 f TerlMessaqe mso:


1!i iL system.ourprinunfl
;;#;:;r:,[i;r'iluessase(',rhis is rrom sathya rechsliz..t ,,t,
n,ui-"r,ins,st lc*r,g 6ne ]e^r m5J.
lr,Jirli3i""tiJijil,i;i,,;;,
133 on
1

iii --r &ods one le'(r tD ihe ropic d.esrinattcl


lf.*:9il(r*s); rns0
142 )
143 )
144 "--*--*- _subscriberDemo.iava_.-._6_____-_
145 import javax.naming.';
t46 impoft iava-util.properties;
147 importjavaxjms,.;
148 public ctass SubscriberDemo{
149 public static void mainfshi;g arys0) throws
NamingException, Jlt/tsExceplion
150 Propertiesprop=newproperuis0i {

JorBte5 ;n closa p&rt Samg c6 p1g\/iocad cr{po


0
1s| run trb5clibm c,+pn P<,r meotttpr( times from d)?k"&r* t lndrrog +ien vun rhe
Pcr2nishor app6 .g' are firne.
151 ptop.put{ContextlNlTlAL CONTIXT_F,ACTORY,',com.sun.d'|torpr;6e_ni,ming.Ee.ia}|tritCor}iextFactory,,);
152 prop.puqContextPROV|D:ER URL,"iiop:,, io"u it
153 "*t,+C+$'i;-'
151 Contrxt chnew lnitialcontex{prop};
155
155 SubscriberDemo tFnew SubscdberDemo0; r- C(lryrfll ( td\s obf(+
157 tt do-Sub(gk);,-? i.,k, ftF,ff d-"teEa-ytg!,r rine no: l6()-l-l-r
158 cq.closeo;
ts9 )
160 public void dosub(Context ct() throws JMsExcep..ion, NamingException{
161
162 Topic topic=(Topic)ct(.lookup("ToDicJndi"t:
163 <g (nlalrF-sh Y<E;sh'l
rhe tDP;c d
'164 'JrlDa$drt
rcf =_(To-picConnecrionFactory)cb(.!ookup(,,tconFacundi,,);
165 I:ti:::lT!Pl?crory
166
167
%emF..r-;
Topicsession tsEtc.createTopicsession(falss,Topicsession-AUTO_ACKNOWLEDGE),
{6E
169 Topicsubscriber bub=ts.createsubcriber(topic);-> "Bp;(trbsc$br^ .rs rb
170 Crc.Ilr(d fnly*iy
tc.start{);
171 Thl< o€stir!}l on '
172 TextMggsage msg; *&
173 ms9=(TexaMessage)tsub.receive(); -----> r<((rvc,s m6d (]'om lt*tc des6rr'Oorl
174
175 System.outpdntln("Received message is:"+msg.getText0).
176
1rt
rc.croseO; ---T-i',r,- * c"ac* Q ln' *4"
17A ) ) ..

179 ----------
180 Applications on Spring JMS
181 {App4X or queue)
183 Send€rApp {on eueue} -\
1s4 ---.----.:*'-:--l-j...-------.-rrlessasesenderlava(Si$&*d..-_h.c_rry.toS.tc tu 6o' d T(^r yn€rsa5 €
185 impolt javaxjms,.;
186 import org,springtrameworkjma.cor".-, @) cdero;ai:ct Jt45fc.rdaf,< tlc't{ 4tidt $mrutb Cf{<' ct'i"$"t
187 publlc class f essageSender {
188 iarBrcr io oarsrxrrtl
plivateJmsremptatejt; SfrrinA Jan Bret : @
133 sar* 5 3s f,res .,p - ppoD
lotrralr'r
pubtic Messasesender0 O
131 &lrff,sb erlrr shrrrd bC iO ruodoT moJe
r93 public void seut{JmsTemplate
it)
194
thisjr jt; settdc.l
195 =
f,-"- J }i 'Jav aL!)
196 )
197 l-"- qn rng.
"-1
'198
199 1-. t.l so oeP;ned B' mabod E ndc^ > .i1vc4 x javq
200 public void sendMessaoelt
201 6cJc. > i<lla k'dc t;z"l-

?9? MBsagecreatorcrcator:newMessagecreator()
203 {
public.MessagecreateMessage(Sessionsession)
l3i
?9q
207
Texutilessage message = nu
tly
;

208 ,
tffi!" rr'e.1 message = session,createTexfluessage{);
z'tv -J tmessage.setstrinqproperty("text","HelloWortd,,):
i99
211 ) \l'etr4sd Jq''br f" 6Dl.r ihrfxr,i.tb r,r,.1 .

catch (J tsExceprion e)
111
s'Printstackrraceo;
lii lreturn message;
216
1i:, ); ) eoe- art :- |e.t ohjcq F,, nreou,,e,s
219 inrx'r curs abof ir'fl.rr'an.rj
220 fitsend(creator); rn""a.1sCt a1"(rn<.L..a torcrtA

1li ,V *ft."*"i cDcr'sm..a-rc.)


lli
225 -l'1.'-
I
<?xmt verston=,,1,0,,
:'s .----*:_.s.s!s..,..Gnryefu-fuc).-1.*;n3
encoding=,,UiF-8;D
tqic ro iqcrr rhe
irOfa*lota at,.rf ohjeq ,
@;irri r'-g,rti..s { a,tc.ss B:h Yeidtrty!*
226 <lDOCTypE beans PUBLIC ,,JripRtNG:tDrD
dll BEANi E
;tthi//www.sprlrgtrirrnework.orgidtd/sprin;_;;;,d,-;:,>
.,

tzu <beaDs>

j ifiX :t ru ;:;:=''ffi ;SlHBll'"f;'rework jrdi'r'rdiobjectractoryBean">


;l'1 -iH -:Effirfl ::i#;::ffiI,ffi'namins'seriarrnitcontextFactory<prop>
/

23a;U*dXy:,
11,5
(Ir
Name,, varue=,,rc nd
cu i
i,,D
8t,rh&s c{nrrurd.,F<drrrJcLj.a frrm glc.rFsh rc5istr.,
o n Fa nd

239

?11 <b6rnid=.igmptato"
iiilrii*i,T#l1Je.""Xi??i"TF;??#'[il:X,,#,'::::"*]"-l:-*?,,",
>qo

261
262
ntexi,s u ppo11.
263 fi ffi l;:$g:Tl:,,ij;ework.co ;
264 (
265 public static void main(Sttng
266
argsll)
267
268
?69 ft{*##l[t#i':i,ffltf"'Jl'S3;ffii,tr&#;$??f,q]tri,-"ioncontext(,,sp,;ns.xmi,,);
270 system.ouLprinfl n(.'message
ser)t,,);
271 )
272
273
274
2ft RecelyerApp
276
277
278 importjavaxjms.*i
279 import org.sf rin gframework jms.core.";
280
281 public class ilessageReceiver
282 private JmsTemplate jt;
{ joi Brce in
283
closS fiaA:- sane cr
284 &ndrr4pen .
285 pubtic MessageReceiver0
286 O
{?&&'vlr,
287 public void seUmsTemplate(JmsTemptate
288 t
jt) f- --+x jor:<o1
289
290
thisjt =jg J--- sp*ng ,
) ^m1
291
292 llecqua > i..vac t( 'Jcr!c\
293 >Jcrrrc. R-.r\teC0c",r-
294 public void receiveMessage0
295 t :;.eiv{ rtf
msq frDrn
296 Messi.ge message
= il;eceivefl: O,c, rs-Ct $trlafidrl
297
298
Tc:fltlessa ge tms g :;f iij<
n (me$a9o instanceof Text
299 rlessage)
300 tnsgE(TextMossage)message;
i
301 try
302 {
303 System.ouLprintln(trDsg,getTexq))i
304
.) System.outprintln(tnsg.gestlingproperry(,ierr',));
305
306 catc\J sErception e)
307 {\
308 e.prin6
309 )
310 !l/'?
31t Itdd
312 | //.b4
_:: -_--_-..-.spring.xrnt....--
l!9 .tOOCWpe mans pUBLtC "./APR|NG/,DTD BEAN/E .
M
316 "http:/www.springframework.orgrdtOfspringn€a;.dto;>
316 <beans>
317
119 <bean id="cfl clas-s!',org.springframeworkjndi.JndiObiectFactorvBean,,>
319 <propertynam€="jndiEnvironmenf.>
320 <props>
321 <Prop
322 <prop le}':'l1l1l11l!g.factory,initiat">com.sun.enterprise,namins.serialtnitcontexFactory<prop>
ksy="F ROV?DER-IJRL,'>ilop:/,[ocalhost*d{S<./o;dD>
323 <props> -btr'oorn)n8. prDvldk.urt {++t '
324 <property>
325 <property name='JndiNamo', valueJ,GonFactJndi"/t
326 </bean>
327
328 .9:11-i91C" class.E'org.springframework jndi.JndiObiecrFacroryBean,,>
329 <property name='lndiEnvlronment">
330 <props>
331 <prop
332 <prop :LIRL">iiop:/localhost:+846</prop>
333 </props> .
a/r\t,&r.br | +6+b
334 </property>
135 <,/bean>
336
<property name=.jndiName" value:"eueueJndi,.,/>

337
119 <bean id="i€mplato', clas6=.'org.springlramework.ims.core.JmsTemp,ate,,>
<property name="connectionFaitory-. rets'ici/> ' - --'--'--'-
919 <propertyname=,.defauttDestinatio;',
119
341 <,/bean> rets,'q"/>
u2
<beanid="ms" ctass=,'MessQgeReceiver,,>
l{1 <plopertynsmer"if' reF,'tdmptate"/>
1y
345 </bean>
346 </beans>
347 .----."--.--*- *-*Receiveclientiava__.__4*__..___-__-_-___..--.
348 importolg.sp ngframework.contextsupportii -'-'-
349 public class Receiyeclient
350 {
35t public Etatic void main(String args!)
3s2 t
353 FilesystenxmlApplicationcontet ch=new-FilesystemXmlApplicationcontext(,,spring.xml ,);
354 MessageReceiver mr =(Messas€Receiver){55k#ge16;t;i,;;;;i:--"
355 mr.receivetlessage();
356 )
357
358 l
359
360 Apps (on Toplc)
361
362
Sender App
fpublialxr gppn
363
364 import iavarjnF.r;
365 import org,sprlngtramework jms.core,';
366 public class Messagesender
{
367
368 private JmsTemplate jt
369
. 370 public Messagesende{ O
371
372 public void seUt{JmsTemptate
it}
37t t
374 thlsjt = jt;
375 )
376.
377 public void sendtlressageO
378 t
379 Messagecreator cl€etoJ = new Messagecreator0
380 t
381 public Mosaage crcabM$sage{Session sess,on)
382 A"dr!rrdlt{
383 ]!ln6 d(lr s TextMessage message = null;
384 phkcr !Y
385
,,1'*ro,*J{ messago ! lcsgion.creabTextltessage0;
386 '"v*--
eaato.at4
387 l.t.'.,(.6rGat- messags.setstringProperty("text', "Hello world");
388 ld(. k ce message,setTgxq"thk is test msg");
389
390 )
391 catch (JilsExceptlon e)
352 t
393 o.priltffitackTrace(];
394 )
395 retum message;
396 )
397 ];
398 t0
rb?;( de(hrd$oo
399 rlE' Yr,essate ,
il6end(cteator); ---.> 6drds
400 )
10r )
133 *- ---.-.------***:-.s.tl,nsmL($.drs*3-Qr"j- .,..,.. r$sc..rr.d.-g..,a.J
404 <?rmlyersionJ'1.0" encoding="UTF.8"?> 4o6-416 ----, urru "
405 <tDOCTypE beanE pUBLtC 'illSpntNet/Dto eEAH/ieN- liDrn f,ndi r€{l(n-5
oui.., ut $frn;ng i+
406 "http:/iwww.springframeworl,qrgldtdispring-beans.dtd">
407 <beans>
408 <bean ld="cf ' class="org.springlrameworkjndi.JndiOb.iectFactoryBean">
409 <property namE=".indiEnvironmonf '>
110 <props>
411 <prop key='lava.naming,tactory.initial">com,sun.enterprise.naming.SeriallnitcontextFactory</prop>
4't2 <prop key="PF|€V+F€tUR|Siiop:t/localhost*8,*l'</p.op>
<prop$> &o'narri* . . ,., t 4(+5
414 </property>
415
"-,ao
<propefty name="indiName" value="lconFactJndi"/>
416 </bean>
4'17
414 4tq-4r+ geft Tofic Ptor.,
4191 <bean id=''q" class="org.springframeworkjodi.Jndi0bjeclFactoryBean"> Jodiyritsl.r!
4201 <propertyname="jndiEnvironment'>
421 I <props>
422 <prop key="java.naming.factory.ini6al">com.sun.enterprise.naming.SeriallnitcontextFactory</prop>
| <propkey="FA#€e=!ql.'5iiop://localhost:40,+6</prop>
423 |
424 <,lprop* JGv." rl]ming I pr"v dor. ur, +t4{
425 ll </properttp
426 J <ptoperty name="jndiNams" valus="Topic..;ndi"/>
42lJ 4bean>
428
425
430 ) <bean id:"template" class-"org.spdngtrameworkjms,core.Jm6Template,,>
431 L <property name="connectionFactory" reh"cf'F Pttfr-d,; 4og
<property name="defaultDestination" ret="Sr
1ll
433JI <,lbean> '4q : aq
a'\a r<"Px,'c (lard o\icr"t
iii -r*, Sphosgr4n irl]c!rcd toirn 'rb Jrns
66'sTc'oPb'r
436Y <bean id=''ms" class="Messagesender">
437
I <propetty name="it" ret"lgIqllEl -rttla : +60
43qI <beaD
e <,lbeans>
439
440 -*.-.--.*-- €endclienljava---
4{1 import org.springflamewoIk.conlextsupport';
u2 public class sendclient
443 {
444 public static void main(String argsll)
445 {
446 FilesystemxmlApplicalionCont€t ch:new FilesystemxmlApplicalionContex("spring.xml");
uf Messagesender ms ={Messagesender)hclcry.getBean{"ms");
UE ms.sendMe$ag€0; clx
49 System,ouLprintln("m€ssage s€nf 'h €iooder
450 ) -- x 'iaYac!)
f--
|-'--'--':sp;%,{rn\
jarftres in clAssPAJH: Sqrh€ og pre"ioas app'A '.
etn& >i"vac +.iava
> i.ur^ Serl,dbe^.tr
451

'/
452
453
454 Receiver App (SrO6cr,ler
455 )
456
457 import javaxjms.';
458 importorgspringframeworkjms.core.*;
---llessageReceiverjava--
its9
460 public class llessageRecoiver {
461 private JmsTemplats jt;
462
463
4U public llessageReceive() O
465 ver
496 public void aet rFTemplate(JmsTemplate jt) QecPi
l------+ x 'ja\'a fa)
467 {
468 thisjt = jt; I
+ri og ' xml
469 ) l- ------
470
471 .).i1ys( tf -.jctva
472
473 public yoid receiveMessage0 7iaYc( f<ftflwclierLt
474 t
475 Message message =jtreceive0; F;r5i ,5kr1r a)al$ple Qeccivto I Subs'oi6ea
476 Textltessage lrosq - null; ?D'l'T aPPD- \
477 if (messags inslanceof TextMessage) .405 E$ stzrr amlS cne
478 t ' (tt/tkh'< efllD/
479 tmsg=(TextMessage)message;
,i8o try
481 {
482 System.out.prinfl n(trnsg.getTextO);
483 System.outprlntln(tmsg.getst ngproperty("!ext'.));
4U -
)
485 catch (JMsException e)
486 {
447 e.printStackTrace();
488 )
489 )
490 )
491 )
492 _____________-_____spring,xml__._____...____.___-...-___-_-_.__
493 <IDOCWPE beans PUBLTC "-//SpRtNGI/DTD BEAN'EN"
494 "http:rwww.sprinOframework,org/dtdlspring-beans.dtd">
495 <beans>
496
497 <bean id="cf' class="org.springtrameworkjndi,JncliObiectFacto.vBean,,>
498 <propertyname."indiEnvironment,,>
499 <props>
<prop key='lava.naming,factory'jnitiai">com.sun.enterprise.narning.SeriallnitcontextFactory</prop>
:99
501 <prop key="PR€V|DEf[-URf"iiiopy/tocathost:,t&*S<lp'rop>
!9? </props> irva.(&rn,')6-. prD,,.<r(" (d I 11,+6
503 <,lproperty>
504 <properlyname="jndiName,,valuej'CcnFacundi"/>
505 </bean>
506
<bean id="q" classE .org.springfrarreworkjndi.JndiObjectFactoryBean,,>
:9I
508 <propertyname='lndiEnvironmenf'>
509 <props>
<ptop keyi'lava.naming.factory.initlnl">com.sun.enterprise.naming.SeriallnitcontextFactory<lprop>
919 <propkey='qryryp54-g*t,'>iiop:t/tocathost:fiFt€</propi
:11
512 <ptopg &vtr.nc,mirq . p761,atgr. 11, 1 46t6
513 </propefty>
514 <propertyname='JndiName"value=',fue*Jndit'D
515 <bean> G p;(J.td ;
510
117 <b€an
518
idJ'lomplate', ctass=,'org.springframeworkjms,core.JmsTemplate.,>
<property name="connectionFactoryi ref=''cf,/> r-rt€t^ I a,a-
519 <property name="defaultDestinatio;,' reF'G-V>-- - .
520 <bean> Erc, s6-t
521
522 <beanid="ms" class=,,llltessageReceive]-.>
<property name="if' ret=]teripfate;f>f t4<4
t?q
524 </bean> : Srj
525 <beang
527 importorg.springframe*iork.contexfsuppoA.j
528 public ctass Receiveclient
. 529 {
530 public static void main(string argsll)
531 t
532 FilesystentonlAppticationContet ct(Ener..FilesystemxmtArplicationconbxt{.sp.ing.xml,);
*'
. 53i}
53il *ff :ih"""":ilm' =(MessaseRecet"errliJ6;s"6;?K:i: -
535 )
536
537 )
538
a-----:
TO Ocheive Osgnch,rono&g Cororn cfri(OHc.n 6lco brocoscr co in 8oq:r aod ctebcrpp r)

.^s€ either A,Ja.x (Cli.nr5)dc rc4bn6log3) ol Jc'v o Rr,t ler6 (Jclued,de Ter"hhobJ)

To C,cheiW mesSC.Xg bC.se d CrsgrrcbfDno, 'S Ccrm roudaofi crl knrr?n lcoo

6randd6ne Java ttPS6 c(gtnt


aIWb Lrse Jfl$ Uose a ,

Ol€ sc.rct ?tDvU€,{


(Io
tlargc srut" /
Peceiver OPo n
*n&r qrnn
Qeait.E
YtSq

@lu-reYD
$1s i5 €wt, ro prR.m m€ssc{€s k^!e d As3nchronotts Ccrnrocrni(c*ton

tulO &va cepn6.


----4 s c,no h*i''g ci^?cJDi \lrg to 6tore rn €xsagg
JH5 Server
/ f,rDv;der fuppri c ciesn rrrtt

ftmPorcrAl E€ i,- ;m66e1vu I fvovldoi s


H6S€rieS Prom f,bt't
msna fto- nrtosdr
t,dILE€ic nersage gmr,/ fi.ut"Wctd€t.-
Grto,ssfish il€so6t twtl Flo- GusFrh
g4ptizs one brrtt-in Ot4s &'rvr4"
----. frqBy*$1vfirr
P,n Bo:io ftr nessaging ond fiS vefu PaSe noa lrc+ 4 rbe s4lurrrntc'5

hc.nd{u+ 8wn oq oalotl mrr

-) f,115 8q{f{rtr6 tio roelsc€irlg dortcti nt


I me1 Point ro Point) hrrrdn
q --J Use3 €ctecre OJ De,sUrrrrf<"oJ flestrge Str'q

r1 prrul** Cot*,in
Top,. as tbe Destlraklo" I ntso'Xt et^
US(S
--j the
Fr, t fr.a hPo o^o thesr mersc,Xe-s clo,-rrdn te€o< paXe nds l( r- oF o'-[c+l:otr'
@ Ptaeaot' ro or(ol€ in GlassFsb ?''X SerVctf

elrr0:- 6fart rngdorrOn?' Server o€ GrcrssFsb. crrd og,n it6 Odmto&oeole'

Ern \ APe'va \ bin > OsadYo) n skot-dwrrr:n mg&rtrcr:na

er<f{91-

hrtptlltocorttost tA*t Lt€lD


"Jesrocc'{'
trtsted: ir'srrrlal " '-'l
--,(/
a- c.-** L"* :* c..eJsbaleertt't')
c.res* Jt15(o!,neo$oqTacRru -r
-
Qtsuxes------) fl4'5 R€s*n" o Mctlo.TAatu#E \J
Adnio G'soo k',ten

Neo J fN0rruarrr.; ft6 i


"--------r o[<
-
Raurrce rSOe c F.cdn"'co"*r
O4z'{'F \-/
fiSCcrnarrna,-tcn1 re?rrseofs Jngdortnc{'htdn IDo1 ' eo-eh SHgGrnrEJ-ttan

K{rfestr*S the Conredorl bk, ctierri appn aod Jns e€nrer'

\-/
6t{r'- o,erc &reue akr6rrrrr* !,""\tg JNOI name
ruc(n------)
Qerd'rces
sdvpfisn
Admin Conso [e &xee,D ----_+ dl{sResurrcea De

\_-2'
JlNprName ,

fi6o^ Drn*r^)th*' CaofuatJod^ )ok


Qetwttz-TX?e : l.r**.i*€"'* I
' a*dtt 6nvl vcnrnrth
to c+aorc c -lbpl
Dcg*;vrattcm inr|'e
O Plozrd..a
*------t
Mmtr(oo,otesu,en >Qas:rcree-r
lfor-rcer l]nffiffi*
- r h[r, -----e JNDrNarne t@gkr6stzrL
,------' -:---1 ------: ftsar".rt
@sggeg--r - ""@
colfi idvax.irr6 Pl'X
Jw is Fftr oP iee mdule Jrqg a.Pi meaD$ trrrrUnq
->
ttre y. fttes Ibe iee o-P;f cc'nl<,.rrg itta opi
\9 6e.ljogic g"rwr .--+ t'&dogic';ia1

in glasftsb Senrr jaleee '


ja{
in Sboss Sevw"l-': Jbos-.pvaee - ja'.1

o^krlpablirhe/ A-pp urea .lms c+i to srd # to s'e t'lcnry sr1l<

ftc.-ru<,r tm s"4p6ya AR Lrsea jvns opi {-o rtrdr"e ms6-l furn Se flera'c
)
the 6Furfttre cP O116 rnessqg e

beade, nameg are Fxed


?o: Froo:
propc,rg oornpr ori values *
"ff;t:rT5:..
inPo olonS <9)rh }ltssaJe 'oe
mn€i Org: Tasard addiricnat
arrrhor:
ozed fo ctt^l' (olrh flersage p"op".+'q

.l€a! a4"tF.,roP rJm$ r',lCrsa


Tt'€ 3c

ttto.l-ct
ine" 6
Ttrere i6 a p..,ss)bi li rg & Developtng 5 rcrs og Husc'S€6 &"
-'o?lo+lPra
*rese t1essc,ge6 Ye+kr FXe no : @ 4 l;"* '

---+ Irnporcr* lsngrc€ 5 o? Jn6 opi


rehJtd 6oetre
Otreue&nde'i
6.treae Conrrcnoonro-Y [r )
&uzueQece;vr'l
OoeoeGoeneus'n
(1)
Ofd elo '-.
6uecre (r)
Sueore6esricnr [r)
r-elor<d lbPic
To6eR*ushrr
Ib pi c GnneorcoFacry tr )
ToP;.Scrlec;ua
lbpcConnemon (r)
c!o& ete..-.
-Ibprc (r)
-lopi.&sl.' (t)
"yekx1td to llcssages

Sr,uml"lesage
llapllesage
0b&* l'1csscse
and elc . .-.

x) F+r pkunJos Apr bosed Sl&,t, rcceivc't crpplicortc,n dr"Jl$ coltlr, &,ere&s4\blt"

h*ea PTJP nesscqieg Dorrrir\ r(R^{ o{,plQ 4 $c o'loaf.r" td"*


*> 1r€ rccrl ti rne AafiP te o.{ptlcatl cro3 6tg 0m6 av(
@ OrnO*"f rrorn8cme rq
@ 8ug5 rrqnotemcr*
(9 oPPttne ord'a boo&r6 and erc

@ ft,, prcdn 6ms based ftllst''b $ncle-\ 4 roes6cr8in3 reW o{,P(D


"P
rhe V'fleoo's

04@ & &lo4 '.


$p.''S ilr"tS :-
*tls ;hs4rt']lieg org'e€
jvos'c(rn'J-slt"vlv'-'
Lcler o9 plaio Jfl5', Ttn
',

-+ provide6 o.bsr{octtoo \'/


+ l[t,:s 'Jt16te-plot< clc,-w 9i"pti?ics $e gvucess cP Se'rung c{oc Qe'dviYEffa8s '
4 coorbjng rcirh PtuoJtls r*r'' Pt Jflqopor<lf{ans
-+ Nonecd
c.rertf( -^ "o messc'6r'
r'J
givus &ukrp.,ces it l& djeF BFs oP
-+ Coubeu<
TDPicfottt.,-tu desrinaflcrouu#'=y
1m&€ale JiloTe'platc c-torl o\1 firSto""earo 6hi,
to ctrdJe
+ Sp,tngJtis gnrc-a $e a"'*o.*e Caued rr'essc'geCttor<r .--/

rbe- e;posed gy6sr:*lcrn ohF4


di?F tldtrs c-+ rmsa6ecrearors b3 u'srng
*ePR'r o{Pn@ "P rhe
fu."5J145 bCIs€d P-ro4 €xorqPle crppucorrog :
O ftr,
f:6errjs @ "0 rncsaSing dofrc-,n
A{rP.rO -
gth**h
gicrnpte c4Po 0n gr/Anq crqs bclsed
AD kr(
of rhe Pge no's 0 t" @
Xcclure-v
Sfxioq l"Jeb}lodclle
-----
==:=a=-4'=:=::--
Spriog lJ{e.b modLrl e rr-icafcr'!:l c
rDcrke +rioq ciPPDS cbmrnct
p&,i:t (0ri',cS Pluglng cncl fuc;t'ie6 to -
- Jerc^pp"'
bcsed o+pnl lire 6hc'r5{'?PDf ' 4erc
fror., orlt'r .oeh fl@ Si(os

(sp"T ldabvr:v c / sn."g 'nn. / Srrnog w'b fl,x,, )


rrrrrre

f-) rt r5 sPnog 6 orr,rr rt<b Flc.: siuc, ro der,eloP hlvc'L 61'rctLi lecict're bascd
I to.t o{pn6.

Strc*S srd Spring Inrgcrriorr ". -

fn tbi 5 O{pn Slrctr3 Crppn ftfrreSerrfS y166r; \reg.. q,t.l *Tr*;,Hi{,?j "
-) i c)
(Fr€renFrl sn tog L'
and 6pring Cqrpn r€fm 5enr5 m€del tct'be'{ l0$ic5 -
iotcQce lcBic)
Cet'tl*t s [gic{ Pners

Ilre frr:o &r$ s oP SrrcrrS aod Spnng Irfc8roH oo .

Q eFu-rs Lo;rb gpytng{6hr*s ood Sfrfiogoppr,s .rtside ard ere!-uj< crfr lbe 8Om€ ovM

.q$ircrts cQf') i5 )ocol ctien+ opPn to €fiJng efan


+ b€re SftinS offrr, r ,.t not be a Disrn {fad o{)Pl^}
@ 6r'1115 h 6piog
<:€ e cY
-+ he"-e 6hnrS c{l)pD and SDing apflh yesides cn f('o d; P ft-'re
"tf JVvrS
SalTr

di?Pete'r-t co-Prt't'
-i StYars o{?n ;S fi€ff)5te cllerl-r o?pn 16 $ng a+eo '
-> h"'re sphn3 cr-ppn masr be a Disrri burcrl oePn,

I Spr;nq irultgr<r$f0
i+ i

-) Jh€ plt{gir) rel1.rw d P.,. ,StYL(S 1' arrd

prg. ef: . @eb'6ttL+5. Gnrcx+Lx,cte'r PluSIo c,nd r\us P)ugin i5 scqrPltcd b5

Spriog slto to ccnrfigr.re ir, SFtutS ConAgurol-icr{) Bre b;.rsr.'tg 4plr-rgin > k.x .
Aaic,n&wrcr yecltnizei cru $e plu$ins c'onff6uwd in srn rs Cor,&6uianan $te

tlt rnar.rcrr i b ts iosEnrt ctJt^d lorole* c'.'rc*tcrn ) . Aettcm & :r,tet insra"ttrHo-n
.
'frtv€s 1:1666 eirlxr clr,,"lrg S{wd 6ktftrp .,t durrrg rhe deployccn'e'r-r r-(

-stz'-tc+ crn Atri on'?"v Et '


trr)ooppq' beccur se coe $erorrolr1 ers1cle \&rd -crrr

--+ lhe crtr,w C}**, Lo,la.oPlt'glq ctchvdkt.s Lleloppn Ccrnxxr $pring&ruet-inc"i


q Servtch ' Arnl
1rrE o3 6pec;6'ed ff't" ,r.*e Ccn) A.,t'&rutttlqicalnarne -
&5 .gting Confi6ctY6$on f'te.ro"',e ,

IrL rh.is pmcsss o1-1 5f1e !er.r6 itrcrtart Cclnftiarrd tuit\ b€ freirstc/n]i.JtJ
-)
In ovn]lrg cP6 hre

ep)46 -in .*," \fo* =


"o'9
' spr;e>gPmrt'r:zntr ' arb' strt*s ' Co..rGsl6a6ptplagln" />

iro fl-e acnvcred fio3 eon,r,irr4 1&rc6 (Irc*ia",&r vel l-rr€ i. Darr€> -se,v)et' Xml

ID srrur6 cFX Fre


Pltr3Inu 7
Zplug -ir) ctasoNar'' e -- tr€.sP . cuclo' srldts' Gt'tc^'Lt'ad*
" nw^rJ
r-ngcPr ' xmt/f ta16'rog
" c*r \Jcoue -- / r,rre-rxr/
locclHoo'
zsei- - ttDrx-,ft$ ptDfrrrg =- tG.,BX
e,tJ&Se'xn'/Y
zl0r,g-in >

.,8cP61,xml ro,cg€e.[m\ PiPs ca ft-xc$ff*;.


-'hr.e tbe acl.',nra4 *pr;"g canl-cilrx,r tares '
&tttopme"r tt'e St-&}6 Aeitancldl6 shocttdcon@n '''
-n In 5wur6 coirb Stdng o{tpD
6P ft*$&^"' oDrdtagfe '-/
Ciiealcide aod shrLrd cou tbe B'rre$od5
\J
io Sp"ng Ogrn.
"s*fJult-Jfj8
fxarrpre ; "" o@ lw @tqar.1 \J

b'raory coi.doto
Corrhol) e'a )

gr€c.rt C-l -., -' - )


i -.-.. ^
J
. Cc-r,,rr.r taracnl

6md rrtooiog floda

szw iCl-. xrri


f''t.

W.r,to $e d;cqtowl

nt 6pl icorlic'n jn Lcrlgerv<t o'r Awlicc}lerD Sewt't '


u) prDgrorre I deflcgeea 5fiots 6pn

6ran'P vtet Cfttl<a Artito'Servte'f ctass o5j


@ b€drdse A? Loacl oo Ser Ccrntnnc/
the dealneenet't & opbaff6 '
€.ltbcr dcrring &rvca 6k<r'fct Ccn) dl-n lnX

this pt'{in o(lh'\i1fts rhe arb\pllta$o16^+t'r


(.adal^cJ"
@ fta6Servt* aaivales Ca,tt^tLca$|,3h'
t'rcng ZA*tonftwt.rl-{ticalnah€ -7 -'krvte't'
Krnl os $y"ngGnBg,tanon P;rr, _
h
f4d,l6 WLe4 olL d'te Lr^rs 4 5mn6C*9i5t*r-' fia noiuk pt<^lnrtcrnruxJ
' -. @&@ endLr,Je{ lc'r'toO tbe Rrr'Pcr8e anJ &tL'mir l1e "'<1tLelr to ct-dx{r,'!D'

3rtof5 ccn?;quvot1c"1
@ Acn..n5e',vr€f it&ps and fuKe6 the rEuest an<l useg
anJ ctcrsS **'! c''- re7orcd to
.- ftre gnt,;es to decjde Flrmbean . fip;rcrn

PYDceg5 the rellrrt


dt" to F-"-Beon clc'rs o\ent
prxkS rhc B"s'rrd +"t
@ A.g^&*rt of p6Sonctcr-rs '
rn<rbod
O A.r,o"fuvre. cefls a'aaurct'-'-'-) ctavj ohj( tu
"J

1h.,5 fx€cck(-r-r-'-)
Bth ft-ngBcan
,tethocl s'-eboc'r rnoncLBcS
-@ oP ff'5Beon *A fl* %-
@ oer*tG,-,-,-) rrrh6d oug Bu,sthe$rrncr{roc{
m r€.sLttf l']a6c-
keP *t, rtour in refest a4w;e h rrt've i& viriote '
-O rnb @"rmle At"s69'ntt-r
Qx€-c-otlti,-,-t-),rerhod 'rt}.-'rhg 4te pga"F*
'@
A*r&r,o uses sn*rA^an*r*^ &lo gnr;a +o cletla"+fu'1'1r
'-@,A,n*SovteF
fi&rs€e $e G'tnte totesuttf,ne as
bix,r{,,{a$ndoco
-'6 oou,, PaXe.$.ax thc- rzcvttn ..na was lfu rtsrLlts tb

j oPPn'
-) Ttrre q€ tzoo opprDac-hea 6r*rs 1o16' 6pAn3
(Drrr''
Jo
tc-hea +o &nlap
&trtop srw"' d
^ oi5 coitrr 6e
: - o^,^".
'-'") Atoate
loo 3nr'-t5 Actton cklss Gs
6p''rng
A0prDaab l) Bg rrr')c"'U ."
, A
,_,U*,'., Drsro.Lftrr o,i+fsrt t ;: )
| r,#Ti*u["tj*T-.*," sfr".r' * :* p**@'rtu*
^*^nhe?dfD cfu 6*'6 A'tnonctc'rs c'" si*tX |,*.-ani't spicfS f:re)

*
ff6rrmcl@ dl6cussion.S : ,,+ €grrng c+i ' Irle
frr- Xt" 3'Prr'* ctass
cl&s3 & Kndg
Nwn 5h11t5 AleHc/n
Crtn geh &(Iess fD 3gnn6Conf"no'
th'e &,.rertlooote,r PLt$ f.) OCt VOIC/
9l(us A(tlon (1035 dksfioe taN ati.d d
to 0& acrelg J6 Sil,an6k^
cnd cre a^ F rh.,s SP"nXc0nt''ir'ad
-1? CaLt B. nrcr{rads 0rr i L '

gte+<'t tx'th6 oolrb Gnr<rrl-oo*rPt"{In t€+}tJ


in 6rtrr5 ond Spdng inqrarl on dllmxd
-) krlcm cftrr<e{ c^d
Sp$ng Gntairr€a - be(l-use t\rfS Crntalnot Ccn be usel h mulHPie

lh)s Gmtotnar tDit\ be crurva-Ftl eltho{ Chtt\n6 f.",- sa'tiL4 (a1 Ju'*q rhe
drflry.-.* 6p sr$'4n {hs ft'o@s iqnoves tl* yxt?-"a^wilhc, o"nP":a a
ocrivzrli ng Sp't q &-tc!ine,l in e151 ft-nr.o crcts s €q-'"ol<)X '

-)
Sampie .shtrt$ A&16) ci"ss Cocle S allroagQl ;-

public c losS lestAcrtc'n exEods Ac}ione"frt ,t


(rhis inri.acd,B trirri 5 Pror1 kda ctc'a a4
f 6ric.tt6t ";r{ c'P i )
Flblic A+ionk"tood execue (-, -, ^, -)
ti.* c;t ftcresS lo ep''r"g c1'"ou*o4*6'3"t Lcacle,.ipbr4i n
//
t- = gqfJn'oAPrticaHonG'*e*tC) '
Ne,uAPPuorto"G"*tx "1,
ll gq acr€Jb to S6ng Bean ctcL% d'j
/ rnf I'
(nftrlerlnrcr ) ctx'5etBeot'
rnoderinKr bobu = L b""t;d
flcror;1,. ll'nrrtoct cf sPn6Bea6
bpd 'bm.r C-) j

13 I"x
o{ftrDai}t (| krscl
6f'dz4s
dtamm b,sA and tha afoire
@R" rn. af""
c{p1:n \LW .{,Pr, @ Poteoo ) -++
t5
toirh 6Fng
ApLr-lo0m"t rut

& E-6c,-lg {,q"t g c{ph &€a {etrcLt€d cloCl'mr^rz+'tu-


Rt a^eP.n* arymoa}c:
rc0cn pa$eoo'S @ n@ 4 itre muo"ricd '

IfroOcf, @ UUsC$st(Jns :-
Sp,tn[*.,,n c-lc{g in stzttroSGn€J3u*H^'
os
-> l*re tce cbn6gurad Srrugfuricocl&rs
pr6de1 lrolpv'
e'}a'6' ofuj<ct fo Sh'uis
ftte. sor{.ot L& can iqenr 111a {,;ri5{}earr .-
Aqi<m ctcrss fb Cb'l-L rhe EL|'sincl5 rnca{rods

th( wq1-ttKl
ctc'rs in S* tsG"95"*l- f;rt{'o vecdt<
#n o",g'n^ Sr'"'rsA'cno'
cr)l$irrat 'shctts &f:o'c'42-6
P*rn A,.rron9wrtr oyrJ J6 pas6e reqAestio !7

itrf \$ Cc,nfrgured in 565 Con65'urc'rrc' f;'tt '


+ Sprn3 Apr fu>pliel Or3'sF.'*" rn *.' Derlarr^g'4.+rcrrPirxs dc.qs 4a th)s
pcnpre
:
i
-+ -Io Strott ConB8urolrcn F te
' Dere8cttlng Atd""
P-xB >
(c,crion frorb=" /x.-,tz' hpe** org'se'c.]cb' '5ld<r/-o

t Prox! clost R'r origloor Ntlc''


clt{

Aat$<tl>

lbeGr'6>
' -"'uu(*i^"
z ' dard
q
ru"*t-;*:*;ffi':-t:ffi'
zl}roo> .^ -." t-
o n** *"r'fsacn

' -,--.-'tlode\flnPI l7
,Zbean ;d =' dr, c)(:.s>--
tltF- L-sP;ngBeon

Sarople ,slrcrre kltcln cl&rs o? $c obaa grrnru'o :-

fJLrb)ic clcrss Gtfb;<"a exreod 6 Aedon

{ kah cLats obi


j // B€oo P'+dg ro }od sP'tng
llodelforcr bohj

frlblic void sefl3.A; ( rf"atl Ttl+<l rr)hi)


I
rtnl'Ixb,j -- Wi
3

(-'-' -'-) rb'otx'> V-rcat:o"


rrblic A*it,F-.-'a e'neurc
cld'6 obic4 '
\v? d) sPnog}ea'n

5m1 rescrtt= bou';'gail'r'C )"1 eait\b'r'rt'd


{

..'
.' ':
-l
|.*t,,'tJlt- ibi'04/5 5riltB*
giws krtor pcoft'nonce ln s*rrl5
Jnlr#..,len
-*"*'*j@
crqrs o$et to sr',rrs Auta" ctctss PID(l/t eirbeJr d:rrt lq',J, Sko/r&{ ot
dtrrtng fhe dtptgrrr"+ ofr tfie a'rbctpptl'
retl<'r erpno: @
c[Pn fu<r"prtrnr
tu\ opprotuh no@ bored std-tfs trrlrh sPnnt
8ffoo,.,77 y6+f
' x; Htn;p,qiat Shuring 6tyut6, <p'nq,h,*-arc &zrcgrarton Aad- cr]s6 i rnpleyn e-rrt-jn9

v6vc? , OAO, g{rs$nes3 Deletojt Ws9r, @l+/.t!fx,"

--, the bafxr .hva CScrs 4 cllenr aapr, fbor &pc'rafeg Brsiness rrCrt^rod coUs &,**
tpr,,t Pre"luittto rnodlfu is carred BossnesDclSorccto-ra
stroJ5 f0 sftioc Co;rb lh']fr nolc c{'P n
n f t,)eb o{Plr'(afioD

C&rnt'dl,r tal.^)

{ngr1, jsp(firrnpagr
er@ft(-'-,-' -) t
.E
tyr,tylt'.
E]
R10if6 e '

trYi.l4 3 -

\\-./'

HfiP lnti4,l

atilr----)
-==----l /
\ nb--5r|-dr'Nl

@ SErn€ bf<,1 ara


t aa- Qd
'rDO *r!:,
Bxs

\-,

fnrhe ah.a d.lagr<.m &*a ,{,llan;s llftpbvdb#S,.-o{rpn.to}rtch


ttns sprmgJEE.,
€r"n6 oen rrrdut4 tb ctflt-top the hrsinels, Wgrcncc Lo6lq.
a &PA\ Fwi<m'totrLf plaad in $r,nts appn iS Httplnuo\.cr Ctle.il-app4 t0 ;eAt+**
Aa{oo ct^r inrt'acHn6 tal{ H-fltLoi.n&mra aryn,

--) Irr *'e ab*t_ d..afa", iN UJOaa{)pnS dr11 fu,re (1 a"rts Alp\coA^,

O ffu HftF&'r.laborgava d{Pn'


Trrdre, aba.e ct{pn
-> B.tsinerr Lqt.,r 6afu,Aa.r+n3 fttz.[ run omJ ttttdrs bastJ .1
Sz'&t^Ja rrU$A anL punr<tnta IrSr k iyLr(J,rlt 'reee.L -
Ptcud-:, ! deverop the obcrrre dicigrc.m based ra-rin;prDjeoJ !16 us;ng l"lgEcrlpsE 19E
l{fl Servel ofPli((rtido : -
6tq-l :- Cnarr t^J€b tlroje(r.
F;nis b '
' Lulgiglry l
ftojea Name
fire -----i Net6 -----+ 6cb pr4i eLt
ee'n''rer io urA'xrnl f;te l-r'"r -'- Pa'rfc'/ o
og +'do ctrl art d
6|A-S'.- GT ftgcr'e p;sprr'har -

Teft"r oeb'rrrr\ oP f'5ero: @


.,
.- C,lcp-sl:- C.r€alc HO- Stcrdenr trble io Of6cl € DgSlto'
tota{
(sno kcX &nme 1a<|r'r>t>o) ,,
er€c.lf ta;rle llB-Srcrzlent n'aLrr C+) Pdrm"tJ '
(t':) ,result Yarc']-r'1a(5)) j
nur[er(5) , Avg nqrnbrr
- 393- c",o*. DaraBaa p.Frc &$ *cilre in il8Edlr;se
]DE

- 00 trut'ltc'r
oom Klslrrrive
!
tlJk \ipg€ Ddrz B a5e Erolar<I ---l
hJlndoc,r
-------+ Fed ---'?
v iqfir cUctt
--'
.J.-
,. Oraoe (rr'in er"r )
Dri\tt('tcrnlc'Fe Lgraoe Ll
Driw{ Ncim€ ,6
'- tr*"@r"t^rmtt: ta"l1-t!
Gnr-rdf'n LrQL" Frt'-'u---------__-n"
tllcrnarrr , t*".-f
_ Frssrrxna', L!r"-J
c,ddt&r s \ardb.f,J4
-L
:
*;-:^ffi::'T,--5", Hbe,rn4'}-r ",'pLtutt(
----- QI+1wr'IL 3>

- fu+Pd* UcrL-----tM^1 5

'-'' pEntote )+ibars-Fe Ar'notc*lon

,-lr.5-] &srnFar,'1 ctrus?---FBh


-....-)N6c #
00d.,\'c,i f] e^,.ec.rc

G'
on l'l8- st.'denr
-,${'Tetpr^rn Hitr,'v.t< Qe't'rrittrrginecrinS Er P/('rd
-) DB Btotux'J'--j
P(e DB -=
prn tre -------- -"{l.)5rtu
piodr.,o rrlKu P ot'tmpxs

*n+-_---e^ftS'
Cs're*a' *ol-':'*t
------r Foand olzLP
---tExrllnA fiWnott Rar'rst Evr'$ntrr"g -+
&gh ctrck on Hb -slzl&/Lt
--4
a- ,Kivrtsc{ S,r" flllttt** n*jlf_:]
@ c*..t ?6f,6 z> kdle
D0 W J*to Dd.raic(er5 OU<+ [p4o)
O Ad.t FHtzr na.l't l'n qrxr5 Annofawr,x... W (t't.rcta< Ph'G s' F;nd Bi meuhoats '
[3upda*e l1ilxztvLb< ccm(15utav6, Dturiipe :OS'^]'J'6DM
-l
+ HiUerrrrre lgpeS -, JDG\tne{a}<N j l]"C}t w.'A4f ------_:)
1 N(*L @ "
-,
.g5-sruden* ---------) TDcnenc{alrri I',rts t-lc".il
--_+p'd*',
Add fion9 o'{ct}ili6cs tu #-ta rfts.4+
s-{-gi- .rr "--.!rv.ire,naLilih?{-
oiSl-uteocrncnPDjats---------'F]U|=ttlxt--JA.ddsfd%cc'PcJilitx{--.----)@<r'"onr.5..-J
q1-9l'!9 tr)i5c ubGric{' \r'
*)et cos, p:1l.,ltt14sjry'qp9c' gll4' ' ----J^/(xl*
-----)
p'u'@:&ilIlilil
- g€rutsf - ;rrl
d;sR.lzhr.
* "E;;:Y
*----- D v*ne pop Bdtd.^r
--) ---=(u(xE
$tJ5P6fiecrury Beao id I ses Poct ---------n l*|tr.
\+bitaJeru DftP .jar:< P+,"1
i fi;s 51-(p fle'ne'rcles Hb6rud6* 'ic!u6\
814'S p6ro cl4t3
clois
Srcp--rffi ;- Add gpvtnqlr4erparfl spnn5lBeona ro the PrRJelt '

5v C- rYLo ----) T-nrcr ftrce :I t"ooer. I

foodel ' ia\ cr

ft^ttlc IrWr(-aCe Aodel i m",itt mil


k** (s-ng mt'e, in* mr /irrr
Clrbu c
$nng qfi*r<*{
?
J
) nrp I c'r^{ad.6 lnoule{
----' ; LlloderBean
ltfta,'z sr oe-tn
--).lars
Frblic cla(S llodetgcan im)te:t'tzttt]o !nod"* I
HbStr,de'-,rOno dc'o
" dt.'o) |
r^-Lru*c 'voicl se0ao (Llb5r'du"*9no
tHS.dao -- dao ;
O*n, 69'"'e' in+
m'')t'f *-, )d ', f
o*,,. gonoro*',Quutt(S*"3
/Htt" to,16u,"
mB
inr tottrl t' rnr't-Yftlt l
totar I a'oF ;
ftn,-r- ar.rg = lfirrr)
/ $,ntla+e rour ,, ,)
W@ $r""g ,rer. )
a-
lP [ovg eas )
*g,="ktlt";
else
r€S="PGSS";

f/insu,r .tc^a bb usry DAactaj3

hdn**,rr =ne.o Hbsrc,&,r ().'


5t" serNamefnor"e).
sr.seilTtor (hw):
St"sahuS (Cror*t.;-5;.
St' serl?clrr+ (r.s )i
dao-satr ( stJ'
ttltrYn re' i
Sllnena

]"'
Cbnftgu'e *,e 4rraoin6 ,acldsHcnat kans in *-1 a"66lr*r ^
in d;s6't<x" -. grn/tr}'xm I

--'/ /*do I
-.
4Vt'o>
'.,, /&an id ="'Wg'uA4x*A*o''
--
zl&on>
z&-on id="rr$" cf&ss ='lvlocuBrao >
qrofx\ rrtrne="'dao' tt'p=" llbStudentD[O 17
zlbaoz ' l)tpTttow&n'iufu
'-^-L1^, 't"rPoinvoYr,r
zb?ilo r!,rne=' l*'t't;ceu thtS'=" CJlA"se' *n'oan5'l'dtpinv
/7nPrr1 Tnftt =" g*i a'T^xoPate' vo)l*-'mt'dg' I '
4rwrr+A Mm€ =" &rwitt' rtl=-"nb" f ,
Ll&an>
zbean i6'="5url Llots="ovg'3;niqParncrra"t' "tLLlo'8'd w"tl*,L\w 'St4tU'l-U'aur4n
sooe$r l'lo"rtorfu+p;T
2g*v\ lAme rrr4ernS 5 ">
-'
zQnP6>
z(rr,r1 ke6="m;.clo' > lser^.,;celP^O'
z-lpnrzb >
zlyxaT*g >
zlbean ,
zlwn37
CcnA gctre Torr(l.t €ewe,r eonh rng EcUPse 'ID E

6tcP -S ;- Pun AeJ-' PYDier-t-


o
."
^,- ,t. , o,^. >. A-no'l)ralJ cr) -------3"<are
Pi6nt clrct' on frrDi€rt
- ) Ptiocts -------tnUE4Jp'e(cr'ticcAOpl)cafJ

e.-1oY
Chanqer'-
Bte to hlEB-rNF e?lcie<dg VJOtd-"l-
changeli- Ccpg ditpe'tchel-6e$Jte-r'xtnr
Ctsr€e a'.- Add fl"m.6-home1 tiu\ esm\asn-?'?-3'ia1 to tbe tulld Fnb oe$e fiqtel"
Clnogear IP
CnsV;ui* qrobtem i6 "rc,.i(ea rulrr,';t.Y-A!9
Frh c? rhe irrqle*- r<el?da
O rcr'ow ll'bersffe, q'iogllblzd\ag {o-fP"tttd
.'P ri( fI'"P
b) ddd s1n og, ltU"n"re rebred jav Gter inra the libravlcl
hibonnrc 3.Jan
Jar R+uS stP+,i-a?t -l'e'
f,itng jars -1{5e,.,crr}e
Imn-r'r' jar
hlbcrnat-r i- l. 6,{ .,id,,l
-fha Aeflute g 5ar $ t! (jovossi I
'ia'{ s t {#{o. &,A icd
Spno$
iat 0':loerrerlt-.lRa- 1'o-af -1'o o ?rr'o-U6al
Ctrnrnorrd - tOgSlng
\,
CCgmrr$nS-Cll,ta$o'n -?' I'iOtY
6fr'\n6- Webm\,c'icl'l

3rc,t5 *Ot'',

orP-r:- c.tule uJ€-b p"qPa h"';o j nane Strr-*aApP


-1--"''"Foisl't
-------' Ldb W;e4r '--) prderr\larrr : @
Fta rrr ocr
------t
nerD

SltP-$i add 5gr;q A,pabil;hYs t-o It'e {marU'


(tsvflad>'s
Aad sp{og cr\nb}lil-i€d ---> \<
d, Wiei'
fufl*ct;cv "'-"----trogF-cuose '---------r \I t2 r'Aft
'$t- - t
Lura'ri.a ,, m;<c L;bY'{nq
L)bo..,ics sEE LibraYicr ,, lzerroliog
)
------ ;* svt'3tt C..,c'

Wdd -=- Fte: fl ierll.X r0 I


-'-t
pexv -----= Eetol lc AoP
-:Erde":

lffttod.t'iavaPnn'' ser'a' ap"'(urtar'u'too)*nto*


-
G :'";;; bt"d l-o5t'to call rhe
. -, ,
&rincxrvtrrh4r'=u Tl!t::*l-., -.
4 swn'w?-y, Jrrdnj8cz.n
O( E',,,* o+on '-Ioi"n' l-tut"tat' \--,

fuea gc-+Neur -'-1Sn*cr?ata----------+ t.tc.me: fcl,..a -l ---------r BU'rl, \-'


pdcic t6e
iru€{pa(e t
%.ffi*ffi-ng ncrme, inr rnrlin't rnrr;ru-r')- '-'
1
lfc--', --J CIASS -----r Narn(: Ct iaru Eean
ner-D ;' trrr.ls h

frrblic CIASS CtienlBdon4 irqlerrfr*-S cticru- {


Fodd brqj;
Vrbti. void se*[o\i (xoa"r a"oj )I
fhis'botri =bobi )
,-." Srioq
lLblic .*-,.._.'--.\
elrB. rrl')".l (Sl"nq tet"€,, j.t r"'"inj. ro) '
-..J d "..,r r,'3)
pusi€.Hode,t- Ft#! I ll coo b.F€t+rod o? st61^ aj0P
*"g nr€-sult *- b$. gu-"oof. l2esrrtt'r'rne, m'f t,}n3);
rtl+"-+--+#' t ? rck.do y(srrtt:
& -L"**, a,-€4;-- 4+?<f& .s- Sre.l6,-++r*o etess.

in ctienl'x.^\ 1-l'tol"vorec R"a6E ro"dBe4rr >


t+p;ov olen ' ',"
= or$' sP ' rrff.oh .,3 ' l-'
lbeor, id -- iro" class
"
' />
vatue -* t'lc'del .
/-l,(oPea\ ='serv; ce'F*crFace ' ' "
>o>o/ )149-*rvfrn/o'J'ao/:
"r.,r'ne
ttclt'te- bttp:/raorr''os+1
zetw\ Deme = s.*;ttU't'
Ll&ao>
$t€#i-
zvdo id= cb ctdss ='c'i@B&o- l, I z -=
bohj
" re( =-' PP6
L,[l|oPe4rX 1)orre =-
llb@o>
>
/nrao oGme ='/de"'0" cas|=- lolrrrftcnoo
.. .b I
lYroYrtrl rrm( ="mo" rff = cb />

4@an>
A,lbxai5 2

to rhe Wje'k
Lrc?-e'.' add Srrarb Cc'pa")tihYs Qswuls l-3
Md grrclfs Copalailitie-l --i
Vgw ct't'on ***
W --------, ftn;.l.
--a WAe Wud,X<^ ='ou:-
rP-r-o clcrvtas

ddd *ffi class' &rtrrn clars h proie'


6it0ry- k!!ap33,
,,,-* i,',
Fa'rnBeo^t' Eiq.*[tii"
' t.:
.- t^Jcbstnar6
.
^:" ---+strurs
"
-----
$rurs \'3 n.rf*{jse--a fgexf
Fz,rrrr, ------lN1meLjq1
-;gqierclrrt, )F'b-IgPei &p<*F"n
@
F -ltofcrnr€r Darn€

y)3
-T-
\-odA f- -----n $r.'rlrxl1.s
l]
a
---) kxeJ
desc'rrerr s6sched
a 7\ac*ic|'\yrh
' -----t Jsf -------, V ca&!< Jsp .Pr.."r 9.
-- -----rnexb -'---- rftrfh "' ltaiao
J
NLtr Jtp patt I i7i"r.u..itp-l
trc,E4A.lt;l #-, fre, -l __,____5 ft,.,,astarr----------: add.----HIi:Tff,
€ a/ d
-_) --J
--- Tioisl, -

sltp-il,.'- -----.2c,tor€,
Do 4r,roorn3 mod.Aco$ons ,b 9nar5 C".?',Xur.nU -fl1,. ,

0) ner* * exl6riog Acrton cta-rr drra2lSute.H* dn[


fum" <"*- -rrr!p;o3
", *3 )
/aUon -rrt,+nir,g > S
lorrr.o^ ynr.t=" latll'6' BdAe='613'sP'c'x5'sr^rure ' D-f13"*fryAttl '^P"-'L'? ..-
r'r'te- l(t )
z-ftx,ttat d -
narr€ = scrc.er.5
' F 1, -- 1rcstrt 'iue" l'=
,, zV,cnan>
atcrhoq - .r,4n'. DgS
rhe " r> pla6So &S shocon Lr_Loco
'
ConAScore Gn*c"tLmde'r l-,ru8rr)

fL' trndor /otttcn - firr+p>nc7.s t tq )


' zrnuscLSe - rf,y1QYLe$ (j$ann?+<4 -'" AI1arcano, Bcsocr:rci l>
or9'se'orb' s|rc,-rs' CPurLoal^Plftrt' 0'
zplcrg*io crorsNo-u = cucn't''ti)'=
rX csftt<^t}n(t5Lo cottn" vo*e =- f us}-t"tr I
Wfenb=
zlPlufl-i, >

sg?'w. Nriit fittoto'ng cole ;e fl<fion c'@vJ


I[-o ^...-[4ro,,,jaro
'-
llJor-*-rt"'"" r (

e/rcnds Ad* 1
Pstlic clcrss I"P*tNrl'^
Clienj mo) 60 \c
Jt
Qu',)tic vo;d ser|1"(6;ryg
{'rie ' rrn =mo ;
'lt
J.
Pbuc ftl^F^-'"i o<etulr C '-'- ' - )
qv
a

(,-
LIH*'"" ).1 :'
r{eear.-1'':vfn(1,/
t'J';,'-:
.''t , i{:r. ge+l
wtf, =
;; r"'*Jnf (itu' surl'())"
int wtz = Islqu ' (atK
\r* flB
= J,uk1b(' p"rxctxt
J
tlta1,d g.rne-rhod o? tr;cur.r U'ac.'t
t t/ \
btf yrscr.tt
= (r"^< tttrrm>,m3
-o.Conr&".rbd )'
i ll!"q', t^ttt" ib r€lf-ert o,r+nAl*e
"ftAfr-sl' 8e+Att,uc,re7'msS",v€slttt) ) .

rntc.rD ffr'.{l,tn1, f;.a E-ara (. *tctr:s " );


\ll-.wt"4
I
J Xuou
-,, gkp ':- Add ro r/{c.bmor lown & }ne P'"jtt}'
Qescrrr.jsp
@ .-' P+"u,t '
:-, ?in.* u:
Q.c. anr ilexoor 4at ----.rxa"-"tf,spP
") 'l'>
i' Qes.u is = tt.=,ealrtst 'gctfi++sat:< Cq
tavt-*Lre tlrx*
:' t r- ^-!''! r^ tzrr"?at *ttuv't and atso
or'(p-Ei Dqlo6ee fiss prr,3ej} iet wr{or
-...-,--
- tbe k^r't avn ;5 olso inrctn"tlnS 'na4e'
-1or,,a+6'

-
\.7
*_____--, Ok

' 6tq3'; ?sr $e e{pticc4lon.


ofrn !v6io5q cpr, dnt^-l -----J tXpe rhis Uvt t"n't jsf
'
host '-rrl>a Sv'tLtskpp I
1-,1+p : /7 locol I

\.--
L\' is the d,Pft"c.'ce blt, prcgvcLmiog Lr.nguage, IeohnologS and Farnerrrorfl
6.:- Nbor ?

mul nnicriat PccitrHe$ tude!R)bI


4..- Languog.S are'!in.n to progrerffo€rS lnr:ing lcrtsic aod direcl
-
d0pllcorioog.
c'recr'ng
k}m\ogi6 r Flamernct6L6' ..

fhere ko6uogee are ure&.rr cokr;re

EJ:- crc++, Jara,


gdd\ioe'l
at't se "rulcs cr;l
SoPhoare feahnotgg i6 q g€dQicc'lfan bo'l%
-> 6lLD
sfi"ogta,'rn6
to &r"tlop *ft<'*r<,s tolute &xloping tt,s sttos hg"'r*
c;irt be uJed.

Dt3a, 6edlct/ JsP, FIB and ele" '


Et
ohxh povide Ab6rA.*lcrr rra- * ,
.-....> Frrrnerm<\cE c€ qe.'ai $lcp rpl"rnlqre's
othcr
rrr.r-tlipte Cove rchnotogie-s
E3i sr...rs, Jsfi spring ( er. " . .
$trlrrS 8.x ,J,ith *ttt5 3'5 tnlcironcb

4/9/2013 5:01 Pn

2 <Vo@
-taglib
prcfix=',html,' uri=.,/atruts-tags" %>
3 <html> -trTiJ Ed ru t
4 <head></head> 'r,

-13 </hlml>
------------success.isp-Cs-'4f-!pAg)-3-T:a
.%@
,1.1 <html>taglib prefix="myHtml" uri="/struis-tags', %>
16
'17 <head></head>
18 <body>
'19 <h l>Success Page</h1>
20 <h4>Hello <elLll4hlqperty value=,,username',/></h4>
21 <lbody> Ltttrtws qt,'es u!e' na,lre Prb6 vo,l1,e StarlJE obj
22 4hlml> a. -r slnrf5 ?"

24 <web-app>
25 <filter>
26 <filter-name>struts2</filter-name>
.<filter-class>org apache.struts2.dispatcher.ng.filter.strutsPrepareAndExecuteFilter</filler-class>
?! </filteP
28
29 <filter-mapping>
3G <filter-name->struts2.tritter-name'f src*s a a.?ptted $rro, 66, ff6,.r6j 6q 6.k]t
31 <url-paftem>f</url-pattern> | ."_ .,
i"':"t un *d^LYdln'aFe
</filter-mappinfr- C-rnw,r. dta <ls
17
33 <welmme-file-lisF f€rvrcrFGer+ 1,..1 (z.Fe or! p.e- xn ar or.C o(
11 <welcome-file>register. jsp</wetcome_file>
J _-_,.'_lJ_,we,uu,,,y_ rEZ au
c,.tJ tltc
thc ,t
"rd
ce
"n*pors"J
35 <A/velcome_file-list>
.
"oth h.Jc'(ry
JyrlrErg.
3,6 <listenep
37 <listener-class> ) **ltt ott't Lr sen^t lt d"$ u4ft srr'\ nEs t'*$ a4vn
9q
3J
org.springframework.web.context.Contexlloaderlistener
</listener-class> t
40 </listenep ) Gox.,t G^1o1n d.; "1 Se,r vo, s 1.,,r.+ .
t
41 </web-app>
42 ------------------------------strurs xlnr--C6lgt1-q{?-6gqg!1-9 Brc) s.'"+'a
43 <?xml version=" 1.0" encoding=',UTF_8,' ?>
.14 <!DOCTYPE SKUTS PUBLIC
4? "-//ApacheSofrwareFoundation//DTDStrutsConfiguration2.0//EN,,
46 "http.//struts.apache.orq/dtds/struts2.0dld,.>
47 <struts>
19 :i-__I$-l"I:
4v 1" srruts,that tnjgction(for Action Class) wi be done by spring-_>
<constant name="struts.objectFactory,' value='.springi. />
50 <!-- <constant name="slruts.devMo69', ys;us=.'ylJs,' /"r-_,
!1 <packagename="myPack"extends=,,struts-default'>
in spr{s crs nre .>
ii54 O IL</action>
.":H"l'g#leg;1'.Tilffi+'fu[PeffiC"i.9"Li?1"?flTji':?i"-'il ?;an , )
55 </package>
56 </struts>
!1 - --*-----------apptication6on1."1 *1--C$r11-Q1$€1J3{A f', sP*
I
58 <beans xmlns="ltto,ttt r*.sori"qtr"r "
?y xmtns:xsr=htto://www.w3.orq/200ir(MlSchemainstance,.
60
6l xsi:schemaLo""tion="h.p,l@
62 htto;//www.sorinoframffi
99 hdp/wwrryspmgframewori;rclsci€;;/coiGi
64 http://www.sorinoframework.orqEitternay'coniexviorino-context-2.5.xsd,,,
65
66 <!--Configuringdatasource-->
67 <bean idJ'ds" crass="org.springframework.jdbc.datasource.DriverManagerDatasource,,>
bd <property name="usemame,, value=',scott',/>

Page 1 of3

@ h,ar,t e Smff ftrlon Cr{!l{ hd,rne l! uy sgt;01< d bJ+' Its Leanrd ir spazi ticl c.s spi clo*'-ta"'ra-
thar /nc wrrs an-lltunyn {v!+
means l*u tqw bt Srrurs &fiq clat ds sfr,,i l&rrr ; '.,
{-"6Crnftyv*ta',. ftra
i

41912013 5:02.PM

69 <propertyname="password.value="tige/'/>
70 <property name="url" value="idbc:oracle:thin: '/>
71 <property name="drive€lassName" value="oraclejdbc.driver.OracleDrivei'/>
13 :'3XT;**oonent-s*rn base-packase="gl'> J-F..q rrzer'ilrr" r'd &dh s 4 Pt w':k,'ae
74 </beans>
cl&ss rrc $e sft% 8€a)
75 ----------------RegisterActoni"u"--Gtnrf:l-&.troa
Coo4nu'rzd
76 package p1;
77 imporl javax.annolation.Resource:
78 import org.springftamework.stereotype.Component;
79 @component("regAction") l"r syn+sI k-dooclas6 is cc,nf,'5,,r.J at SpB%Beah
80
gl
public class RegisterAction { 1--r
' in
J
sp;o3donh5 ..tr,ll.o^ e;Q .

33 [email protected]"?"ts'ff[:l*El"?l?l-'[* q*n6&an cb$ 4i is ihJ€,"t-'/ tu apeq a-(


84 6r4{rs &do4 cl4-rl -
85 public void selDbstore(DBstore dbs) ?
86 { Se*c. ,nertrocl &+rrn"i? gtt<./t
87 dbstore=dbs; f
u ier.A.\
88) J
89 private String username,password;
->pyDpnie4 fo |,of{ 8,"' J.f"_
90
91 //getters and sefters
92 public String gelusername0 {
93 return usemame;
94) W. O 4w"," glnu6"as o,1
95
96 public void setusername(String username) { Trrn r4ole4 ya,y*let .

this.username = username;
e8]
99
100 public String getPassword0 {
101 retum password;
1O2 )
103
104 public void setPassword(String password) {
105 this.password = password;
106 )
107 // all struts logic here
108 public String executeo {

]!i
111
112
i$i#":J,:i$::ft.";ff:l;ys::ffxfg.*^ii *,,'"r cf ftr"x&* ct"ra
]
return "SUCCESS";

113
11 4 )------------------------DBstore.java (fub+Arlo' Eare ) s F tnS
115 package p1;
1'16 public interface DBStore{
'117 public void storeUser(String uname,string Fiassword); oea\cxal.a ol6'mer$"ol
-'t
1i3 ] - --------DBstrorer,npr.;"u"-frp,-;'g8e'..l)sr"l'3
120 package p1;
121 importjavax.sql.*;
122 import java.sql.*;
123 imporl org.springframework.beans.factory.annotation.Autowired;
124 import org.springframework.slereotype.Component;
125
126 id
@Component("dbs-') P(urrefi} beao
127 public class DBstbrelmpl implemqnts DBSlore{
128 Conneclion con; L Sp""gfnr* Peco ... dt
12g @Autowired -lded .s braSo'xe ohred r, ds r,"op,,-J
rtr.,,.i\ a'-'*ot"t
130 DataSource ds: --r
131
132 public void storeUser(String uname,String password)
133 i ---E-0.-.,toa
134 try
135 i
136 con=ds.getconnection0;
6hF.t 4ryn &e-Clmnej'fjdh 061
' Page2of3
toe ax Gn(lg<re
Io tlis {oq
a4ptualoo Sirn a A-.tto,'' ctar,r as tf',ri B*" 'trtt rreal SgrtnXGa'r 61av oll+
cl..r| . }s

hi.*.a t ta*sa Arrr'cm cl 0t5. 8) rta* S ,,:t{ra .rF sp;1&"^ cn^ d


l f,l.n
s
^ut
3 rruls 2 Adton c/&U
i

41912013 5:O2 PM
l?!
138
Preparedstatement ps=con.preparestatement("insert into userdetaits values(?,?),,);
ps.setstring(1, uname):
139
'1.7O
ps.setstring(2,passwo;d):
int count=ps.executeupdate0;
141
|j? if(count!=0) -- -d''
Deplogeren+ otrett'y aM/&<Lre
1.4.3. System.out.prinflnc,successful,,);
144 else
175 Successfut',);
System.out.printtn("Not Shafs?.sprtoq Ai-ro
146 con.closeQ; t " rWeO -r^F
147 ) rc€i'ni'i5P
LyP6rar,...t<D L ! cldsses
14a e) )5nar5 )'Ynl
i -":;;"^^"
14.9 citchlException
catch(Exceprion ey fl_
4s,.n.ss.ip fLuu
J I
"."":":::
li:
150 ---"'
e.printstackTrace6; I l-> x''ll [*;ru.,u,
uq' L-------+
f-,i1*.2o, Pr
rsl
lsl
ti2 "'
//don;io-;;b;'-:"'
/d".cio;;b; Fdd''
^
l--*-*'*-t |-$::lT}z"
l--+Re6\E'.tr'*'L

r53 ] ) Lo66,."r,-c**r.,,-, 1]"X.j#_1L


r54 )
155 r i
j1r Brcs in g1a!3Qdtb
56 sQL> create table userdetails
;; e-tr'.-t34{'Ja'l r oY3'sP'coYdrxt-3'l't-PELE,SElart3l l?EtErsE ja{
SB username varchar2(10), & * *"6rJZ+*p**AU org.Ee.beaos-
password varchar2(1o)
t9
60 .); L|;*a.g=g=te'd
--'--
61 ',t
iar B res in L,gB.-roF \ lib &lde{

43m - 3.6
Asm -GbaooS'3'a
AStn _ bye e _ A.z
&rmmcm6- P;reudoq d

c.,rhnrh S -i0 -a'D"t


- l': l eolta*S ?tu m 6lf(-l+6 2'E slLd

CBnrfruS-taofl7-3.1 )
Pram sr',inA l'5
ccnnmons-togdin t ---.-
P*rrn,"v -e3lq lg",', srr.*a a sl-
Java55:5r - 3')I O.CDA
I
ognr-Eo.9 )
o,jducl+ -- Pott' otc'cJt
-->
Sh(JJs e - c..rt -73'+ \ ? p-- tn*?
3 slq)
SFInJ -Pltrg;O-2
)'C
i*trg1"-1.t5 - I

NnutY- C.ne- ,. * t J
atg'sP. astn -s,1"1, PEI-EAsE
be4ns-3.t t." "
4 , csttt{<t -3,1 t '
, . Cv-rr -J.t.l ! Porn Sp;n5a't
. . r O\frrsJi dh-J.t.t "

" 'iasc-3ll'
&

., v hJdD -3.1'l r n
r r- qa11-!.5sr11o- - 3't l" "
" . ut5 .J |ru-f6 -S'l l ,
n

Page 3 of 3
h*p r l/ tocar bost', rolo / 6r,trrs?5p', nX Anoo I
'J Jn ttrcrrs 8.r
..---
.J -> NO Brm beons

'+ 6ftJt6 CcmB 6t r oacro Are rc'-rc 15 5|rur5 ' xrn I

..+ &'ntrollel i5 Seni E.lF l t(t


.--u' 6trurs ?.o.A ----) FilrrDisrrf ie{
gof,ate Ar'd E xecure F t rcr
-----> 6nt'tg
'A """-'1
6frui5 z'7'A -..
'-J - lver6lon? '<i4{
6run?'x opi oYr t
rrcin iar f,ras 4reffn-tnetr
- -> :H::.::l]r';.*
f stwa't<'X5
libray,eg ohose tagtib uri
ia
- -, 3t ,-^rs p. gNes h.d u -in Jsp tu3 "
conlcxi
8c'<u1&
i
-, senJ rer LisEners a"re eru.., ra pett?ztrr1 EveotHand ti
n3 on '(q/J"'Y i$g* '

'---,.

\--l ']1't s Lisrcne'r


cdr;c)o ooirt be c(oivcr1€a r*en Gnrtrt ohJ ert is c"o-rca / dest'og '
'j S,ervts
orr,.,*#Ir as rbe
., .
O0iuarg rhe ccrb
:--"';
cq{n n '- "X ry
t cdn}dlrua S
€crn-F& W "tr'ra

: ftno3beans
a-,.r^^r^pr,ns colu be insr-on'dkd'
.- 5nrrn2 conftSurarrun ft,a. rn rlt,s procas oll the
.J @ P* exampla Gppticarron o.., .'wut6z'x cnd 5pring}'5 rd.cE,.zdJ c',r rt€cn rhe e'0c,llt*}ot

'-J h-ao.o Bn
n o,.t rOf o+lrore
lof o+ /rotz
'j u'rrb' 6o,iq5 d?Pn banet"c4 'rg
.J Pn: oP gccuttoo rel cted lo 5v'a'6 2 ; ac#

\--., O) pqrtogeerner* ,n;q dnplol*T*t#.-?j


crt ."
; r.d!,nn k"* sl.,Yfr4
ei+rn
..i b) fo6t(nlra}l on oP &rrtetFtte'r
crclivdtl .'n [o+-rq;
\-.., c); Ccnrcn r looae,r Lisrcrr'r ..--,,*C^rcrt.1yp1 cts rhe
Conltx{tntor n q curivc*{ an bX tuuo3 GfPllco}{doLJ''n

.,-,. €- S& 4l*"


can66ur*Li'Lr,"r,"
, ePting
- spnn3
-) Prc-lnsronHoricm
of
to s*oAo-"otta.3isn M"n)
\-'' ohi) coxtue inialc.h
-v 6pdogBeon cr,as fDgstt*trnpl tr€e srr,rnits $e *ayext (nP lto)
v d\ erdr*r qiu€s fc?uesr ra Fz"rnP€e f.regrtc' jsP ) fi,s {<|.
i e1 &""roEl* ha{'J drd 14ves the raillesr (}6-3})
clcrs co'figrotion (u"-ul
i **r.F"u psses tte rqlert h shrc'ts ktlon
P;
cta* ' (rot - tt
l;
&$s ereurc () rnerhod'
oP Srrt'rrs *+ron
$"nxrFrq
this eaecutt O Calls Sbr€@
.
tpr..its(-, -) + 3pln6 &"'. clc.l4 (lZ2-)53J. Th; s nnerfro d
6e re-t rrs bcicl' to e{erlrk t ) rrrefio<l .rP Atrlon dactS
Xlm
onA *^.iretF t te'v ccsel rl'i 6
sM"3 lo
i) fxecu-x L ) reruvns ''SuccEts " sl-nng to $^,..I-rrcr
get-6e rrs&rF PaSe (rtP ta)

,)) &"u'.tF trt* pcrsses rhe co{r'Dle io ncc",sjfue'


Module -E
gry:4'l:
.gprir,X orirh oop. ls rfre merbodt>togl fr c'r.,. ssmxrc>'roio1
Aop is no
",-, .;
oop
->
s€\vices on
|Laoguages' 4*'-* -' io rbe rnerbodo loX 1 ro d{'Pl5
JITrr,.J'AoP
foidd lct'D&Ye

c{piiep-' rb" aPP\i<c''n6h5


€eyvic€5 rhorare
ore rhe add,tror,al
:._':;::.r""i::." - cm s'
per Pear oo crcurafc
6 oLll 5i t<rofl
io rnat e u-t{ crpPn s mot
i

.\
Et +'e $*n
.olt)
,.-- ,--rnciPle
Ptnc oo
crr oo*do3
(opprle s do e-rle'5rb; oX
Jrran5ouicnr rmr'a^SerncrLt
A LrseY s\)
rhe afptlcarr oo &o."'
onc*-rhon:r
\\; 6ecuri r3 Service Ctt,oot'r
.\
t ggt.g service C trp" 12g'cF o? Agpucc'frccn e/€{qrtcto )
d6)'
\.t
cvcdldtre JBtsco'nreurrt"
tdbc con611olio$ ( KeEs setcp?ta{\X
gerv lceS
roic{d le c,]e'.e
oppllcalt clo
coe ic ccie of rni dd le&r.Ye 6e ceg &*"'l b in the '
.-n trP ccnl ',r

oP llidJ )eor'te
u'ot rhe cmle
Cod e laecorrrs 3peo- 6c Jb crre o?Pt;cdtl o'' I Y.,o "reusc&i I IFX ) n,t*

ServfceS trnl dortlrn'f-e c4plicofiol 6ode '


aoA rnldolteor:aT
e 9:'6vi'e5 sep*'/<l"l
AoP ourrrx us tr' to'i re A?Pllcdr on cocle
- ---
Srn xml Btes
^fl 'h.roo|l
Servic4 €ode coirl
alt'tscz';:ort
o'nd oLl'coa Jo li nk mildlata've
'
er,AnnotaFons.Dtreto{4jsttrerod,eo?mtddleeoo"refer'rlce-slera.'.egreusaj"le,
-=+Tocrnderatandrl-roeedo?sgdngAoPaodonderrdlr"eidingrl-rcl-'€Perpc'genosl6eFolo?'
mlddtet66ft Sern@ I
lrcnSoctlan <eculiS__ Ospe*s f
, I

advicez
I
\-,a) + Cross - 6t rrinX Corfe,(ng
$e'r"g AOP Te{mirot€teg
asftct hJ iriot
adv ire hlea!iD3
joinr pornl fiargei beon
f +<'Xcr ouj
Prinrcc* Ploxfl Lan
/pnrd ahj
Odviscir

Advl (€ l^ Advlce 3

(Jo;or Point I
\i

fJ ioi.riPoi cr,k

asf€u '- rbiS$e tpecj Fc&fiol c&niaini n3 TUIeJ c.nc ^ "ro lrnp lcrrrnt ts€ rol ddls,n''e-2
Acdokltn€S

SeYViCeS .(rrd.]1c&\.

Odvlce :- Qaal mi dd le{rlavr &yvi ae ohido i 5 zhe imP}rrrf nr<rn crl 4 osfr*
can b awfiel
\--)
jrrir*Poinr;- possi{ol e po6i dong inooJ B si nus rnerhoJ cohsrc dd{';6el
'\--l

Et(l: lcegrnlog s0- Q.methocl €nd 4 t5'nrr-$od , B'mubod r*crvns q


\tcLluf d$(,r@"l
,* Loltn
,
O rng{rod *ntm Wcc+acn and ett '

,tutnfclrf ;- (u) Lar1d ewhl'thor liotrs 4&i rcs cot$ io;nt r-lru's of \-,
The xmr -h.mrcficn
, \J
b. methocr '
adrrite cro \--l
od^.,isgI :- ad'isr + poinlcu.t 1o gottr,i is Cqled odvtscn ' Oekrce
"+p\':3
rhe &rrr oP cldui sc,Y
'sbrett' \'
gusiner! m&hod ib coi\t be Jatceo \n
"
&. i*"1*g:'ri.or^ is ccued .,1n6'^
3,i3.. 'n'€unct v'utgrr'- '
conel€.,,i.Bbe?-(,d.r r.
,a---,-^ is :-
o* 1i'no31 A+""qo"c''relP-6n"m;ng
*cr'.. sp'ioggcan aas
6p\5ioJ middltoave *:'t;G5 'ofinton
";
cauaatrrecvinS'56n3Aoez&sPectJen|arrezrrren#4k'ppUno'JSntfuJlatl&Yzo'r;F4'
fu^e"ns rb.3 &rnor e'pert fierd le,.t-r 6eo.ving (va";^rt"to-).
I
tirger beo n/ ta$€r Ohle* : -
'SpngBeo.n clc'ls ol-'i'h r€i toe are PlanDinS to
objel-t o.r c.pply'? roidcllerDer( &rvi(

is c"ue d tcrrgetbean
/ u.t6a oa:e.*
.

\2; fr'cxtrrani rr'o1l!*,


\r Srh'hgBeo.n clcr33 ohJe* cn r.,ilrl cln m r.lcllerylye Se{vlces c."e olvuaQ oqpl ;e J ie

Loued pwX o\ej-r. @


'
- -) 0.rstner s rncrtro d.s Ca11ef, o"., targer ohje* j us t exeo're tbe Btrrsi ness ro'erboJ

\? --+ Bglnex lqlc


rner{to{5 rnlled 6h pp{t ohj&f (xetut<tha Bctstr,e.rs rnet{r."I

&tg* ,1A.*"

There Ore + 4@5 oP Qdv;ca5 t e^""t'{-)


.

o rug.rcadv;ce (Erec.-t-res or the @;niog 4 tbe b'rnerhp"l


ex'e!"nfr')
@ ngo* Advrce(E,reclt}cs ol-1he er|F 6'r'Y.:food
.-, *"
lbra,rs ohen exceCo'\ is volsed '"
\,., @ Mvice f Exeerr-.s
ctr
.'':1-U
loe
). -.*.n
ext|cP' B'merood/
t
of bqiniq a,?- b'rr€rhod and
@ AruunaAavice (Ereo-r-res

u'lngSprrngAoP,Ag?e*Jnotool5tDLcoloM@useSp;o3Col)91vg.fsu{,pUed
Y\; lclLe.oe.'e-
ft deve'lop Ure"rde$ned
ll idd lec-care Qlefces cDe o''o t"" '1"
'an
- Ser tcce and
v
odv;crs '
rePt'r Fc'8eno's 1o4 ro
rab '
P," rte a'Uo* + tUfsoe
cldlices
:

:
tD proced(ye to der.'etop 65xrngAoP krsed aprioX crppliccrllon.

Arep}'.: Deve\op 1va clasS a6 $e odvice cf86

6KfokDe\cloPfuriogl.*crR.ce,spnogBec.n"-,,|'-,n&lsinesg''ffhodder-tanccHoa<>
defl'ni iiorr s

6t P@l: gev€tgp SptgCaf'5-c'ron Bte

a) CP3 sPrlo3 Be'ro closg

b) cPa Advice class


6 Advice ctarl5
c) cF5 Adviscrr cl&s'9 P\il1ol
cpt'l-4;n1 l?>tqBfar>
d) cPX Ptox;Ecr'5Bec'n dv;sert '
obielf'
sg"r138eao clars ohFcr4s l.,tDa6
V *;s r>nt'gTrttro.,xket'o 6;ns

e'x'\'r"
Sr'r1@ '- c lienl ftlprlaxr * \
;';J;t"'g*Y [ec''-'r'm'x ^ fipprica*onG''rc"t ) "
-> ohial &-
9:Lr.z{ pra,,.'y
6F 03 Coatun641

-+ cnLt! B. merbodg o^ pybxb oh)e'+ yl;dllergye


t dcnA
_ t^^o <bir]
-"
ruorEt &,s;ne.rs 6oerho{ Calted a F*3 &)e+ @;u be e^etuftd

sw;ce.s (Aaur."t). - ,.-,,rvil


o*Ht;T"$" decided allkr"tl&uaX
-> Based on rhe advice coe durJop rhe .)otnt r,(J,* -
sC%81-
ce'rrddh' Busin€ss merhd$
te
?) Advrpr i5 glvm rb l1a+ &trdo Nvtces @ith
e1..s5 . 'There &re t oo tgFs cf Adrlces
\-'
0darnetlatrttlcrtroo\fbin*o+1av;sr,/ r -L^)a l,r,<ca cm
ffd"nag b'ted cm ltrte .,nes o( he
coirh b'
-> vYe tbe advices toirl te unPed
!-
-g'n'rtrbcds,
@ Rge"PH"rhoa fu;*cut ffdvlsc.r \--
!66ed an \fdei
e^wstlon
benu 4* odvlces urirl be ltnFtcrl crriih b'wgfu,ds \-.

rcf&r lzqe rn"l tor{ro1


4r, ,.rotta 3fz'trrof'n 6^ A&'';sar-s
Fir5t SpingAOP c{,Pl;Coh'c'n '-
' El\ APPS

-5WtoX 'iavq (arog rnrcr Fe're )

F
Detr',o
Oe.r,oB.ar, 'iavc\ CsPY\h g Beah )
-se51
- l''lX Adv;ce . iav q (&Pa Advire';
F- sHDgcfu . al'ol (sr,,''g cfu P;rt )
clicoi App,ic.vc (crienrAee.,)
// l'lgAdvlre 'java(Before nari.\-
irnfxr* Org . SP" c.oP ' X\

inpo{r java '}ant . reead ' X ',t llreP,/']-ttao hPJ


tof-"t jarcr. ur;l'*j

pallic clcrsS hgAl-urtt i6lplerren-t5 fl*r"aBce-*A" *...,o" )


t @.t\!.'Os"l/l]
o(t 'Ohfo
la.Hic vojd !e&'"(ile*oa
t
,,**o,,, detcdts *'Y-; ,arN-*e
C))l

i:;l ,.i*:.,t;:". ff.*-


*"nr"e*'e"C'^(l)'
o!"
'''
DdreL)Ji
'trr'n
is sta*.d
6 o'n (merbocgetN^me[7*"t*ttt"*
tt
B'-crhud a..1
{'illre tP
't.';;t;s1 o'6*"r"r v'r'e
llcr,aq;nx
(5nq)a'gsloJ r'lgtT" ''*.*"u, b.r'erhoc),
Gr,inq e,--
"ilr''l'".,'i1\""'u*t' '=z) il * "* I
'""on.t'l =:'"ub1t''; it is 'inrnried l/ if-

! ll""t*oa
3 lluo's
fSr-"31"t*
R'* )
f/ Demo' Jd'(c^
Demo
pub\ic irLtel&ae
oP B'rrrbod
o.Lr'. vo\e *HarofSunJ
*'.u); llu'
l
S61 clarK )
tfor**"'l.'.,". (sr'"3
c clc'\s DetnoReavl ihrpltrn#rs ftrno
frr.di
{ 7,rn6ut,.no.r,* op- G rnerho4 \
)
lxt$Ic v614 so1|Jello f Sr"n3 nam€
"'-Fnaras;,'
3op("Derru&an: exat*ton Q &Allerrot) ----+ Nanc :
*tn
S.o.e( tn tn " )

Lt - - 6PYing Cfu , xrr, I

l t DmYPr

LkaoS> cfu '->


ctas.s = DernoBec'n
"
lz Lt''- P {)crars
l}tar, id='9''
Lt"-' Advice CFg --2
L&cLt\ ;d ?'94J c1os5 ="flJA'luie" l2

l.!-- Advisc'r cfu --> ">


- claJs = afu;nn*Nulscx
,,1,.oo id: "odvt or5'sP ' aoP ' tuPFtr ' Na,''llaraXert"
rel 'aAv J>
zP*f\ 0orr€ -* odv i6'e =

J-.rsq1l-leuo ' /7
z?m?ery narne -- ffe{?edMmi' .-..{-
L.: B' n-rthoa tr.rn e
4kot'>
Los
on t_aYg€r ohje6 4 afPldlni adulce --)
z\,-- rru-,s cfj $*n p'xl ohj H
''PPub' ctQss : orf ' sP ' oo? Flo.,re'l:o'k ' P,o*6f,"ft1y Ba'n
'>
Aao id = ?e
Dh
L{hnf(t ty grorSJ-rzruiaas
' tlafug ="D"*o" /7
Dar',e = -f,-ry."a, r,'*afaca
LtYbptrtX rnme = tovgel" "eF =
T--tgy.^ote
" db" l-
Lwwry nam€ =" ;nrocerr;rNa'e'f t
LLi6t >
z\tar/? > advr 4ValLtt >
-T-
Lt
Allst > Advtsc. o 6jera
ZlVnpttW.
Ll&an.
zlEzns"
// CrienrAPP' -Pva

irnPrt aX$?"Crnlcxb ' *0f'/r^'x


pcuri c clas6 Ctinru+pp 1
P s v -(sungtl a'6s)
s
i
fitt-$1stem X*r ftlPticoH
c"r
G*t Ctx =nero
I /i g+ Pt^g oq;.*
Dmo prox5ei = (D".0) ct" ' g.. Beo., f
' PFb")
i
//can S'tenod" ... cm frror5 ohl

pn^sohj. *aHerra C" t}i"") ;


gnx3obj, oSfielro C *'' );
tu
l>.javac f ,jav a
/>iavo, Ctt<nrArp
cdmnrns - r^-.l,"q.ja{
"dkJ o
/ >.i4, 6'tes in clard Errt ", 3p;n6 '
"iar '
S"-tng c'de to tht 8t-1363
rbe
-> t6 c.rle Se6ulelprpesnonP.iuG*A&rso plcr-ce
zt -- Adv,so c(Z
)
Zhan id ;"Odvr "
ctass =
" org' sP'GoP - iufipoyt' Qt*9
llu*oaPoinra'-rAdv;stn

L?ofrtctiftJ naroe --
*
advi ce ' t6f =
'' adv "t,
/W(r\ 0orr€ -- fntttxn \&r)-rr e = .*" l>
LlVa$>

&trpre Corle oP Arutna Advtce


nrt
publl 4 clcrss llgAdvrc"
't
t*pler;r.nh| flerba InrctceP

I invopetnf*3##"Jl 6'at'ers
Pbtrc obiear envirbbnpnr- cF rr.,e "'r+p4'
c
L

g' ner$ocl
ir.proceed()1 /lcons *'e
'-'-'-':' & r\e B rrrf:oo
ll exentrcs af $t ent
'

3
c*
.
ftr kb*+
Avound A&lcc a?pnO to oPPnCD
ftr, excrwte cpPlicct$cD cr$ rhe

?tteoo5 llt lb )lt


rrrcdrtes th,'f cre (sad in t* f-it-ti-'
6h cokrr a'e $e sl'Y)og

*s1,ong Lald tlren Sp'ltni JEE' ofrrl'' AoP rrbcllrleg '


fir)ts is ured 6nt5 io model Sofr'r
JP sPnng is used anl; invia!,ccmt?Dllo{lntdfu^tr?^E',rn6we.brno./r-.1<'
fP (*iu'ror. :trc3,"r!t*r rhtn fltfu sCn1 AoPr a'EE)
gro;ect is k^r"d m Shru+s,ryrtng
6P1o1ux-b rnGrfulrA'.
Cmemod,;e iA rte &,str"rclcrV .&, 4t(\ rod,c.le.
!g9"

1qgt"6 opoltoo aoa rncss ace.q.


x)Keep;oX *t Nc,t* oP Prm oF exeirLrioD is caued

uea P- {"1 ere e..uad lq rnesscSes '


is in &sr'5 sic'nJa'nd ' *" Y€:
x) hlnHn6 loX messoles us;o6 36,*,. 'o'l 'q#'nrtn f 1 not

Mdriw ' 'Tha'f mtans cantt b uae )


O -+ 3o p() con t^lrtie mesr afles nl6 +o Gasoie

fistt k llt...2os"a!,'t, $vs , wx'l setvr-< anL


ett" - 'v'
-fu rrdFc
otr*tcH o'1 ' I' mu'!'6ple''cssaxq
O-) 6.o.pt) roj,r u,'.rinf f'Dce* is sl.6lethn*al"d
Cc.n [c tptifq
61 4 +;ne ' I
-lo otor:';zt tl'a |to6nosc'6es
ds6no I
atlaa
@-, f,o'pL)
dpesnal atrlpa
to 1o;* ''l' l\-otux'
cA--?
v s.o.p()
use rL,T+J
" a{'l/fo"l
c+'
I '-' (- lo6**"1*
tPlnce
-6 oart*,, tl'ese y'oblems ,'- :tire fite'
^ db'o*'lss'.t't
ra JiCFc,e^r J**ttr."t*
0-, lo6tj allocos f0 t.r.ib' b*'c.1o -

Co.n$l e aod etc' . -'


oarrellej
irUcgd'
@--r Lo56 can ct'irc rnsfls Si*"'otne-'{1 "
@
* lrS+j aar<at colap'"" log mr5s
deLuq z in% z ct''' n < errc,l t P*a
d
w*re;uin6 *e,'o'
@----r Log+,1 4J-roor6 to +lrc-t lqmussc'ie, cokte
n
@-r lq+j au.atstr #"n"r rhe lo6r'rssc1"r '

Lru*i ,
b6'n3 Pn jouo
D

Version i 1'I
\Ttndor : o4ruche
(v"Mn c'n

OPan $qrce tcot


f------.--" j*P-?'.,
ia"frres lo$4i
103+j -<vers;or'>
-<vers;on> 'dc{Y
'dc{Y
, ,,"\ loq4i-r.}riki
2it'oar
I AW-ron\tiu\loga'i-r
lructtog;c-hornt>\lvliAd]"oo\wise{"t'r-to'e\sa"''<^\rlu\Grsoreaop\
p*,t''s lq+'i oel
S," t
4debQ3"lefl deh1g8ioi stt's
use amRrrrr.fion ErFe,rs/
t'
. {ogger . d.,ba3 ( r d,n in ,"si.,(- ) '
) ,'

" :'obeQ 4s{kde imPoccnt


cn
---,c{lelDeoleL€.|tDFacedkr)r)imP('.4cntcncrrk[s&rmpieercJ.
on -, -) i
Ell Gonecuoo co6 = Dc;vr-r Tla-rngc " ' 5"+Con''to+l C- '
tog'r'inFo(' Jdbc can ohj i5 coc'rrJ')'
- ctl€ " r,lorn" le''tl tD disPlr,3 o,atr,ing messctq '
->
iP [rs' oex tL) )
I
I

.J
etse
I n ou; rrrdl- Do{ r€ cnx?t"))
log3ar ' cdccr ("Re'ctrtSt+

l
.- --) q6t "erfo{" re,x-l gs$
$"[ b\$w
to*z}) b\&w
cc'*a or g"ocDn ExcaH'rts'
o( Era+rt-l'
L^ ,r,"
thar Dan4rc>
uLov-no@n

- use .9o*ol
' lo4 in Ae u!4 RctJx

tr3
t .......
:

\en&ti"tx
sc) llv"'o"
-'\ //v'"n e"c"gtlon
"":
1 ct'rtlt 661.E&4tion
(

lot!({' erYo{ f m n-utc'n'') I

3 rr 'i --''- exf'dt t^a''"t c


'

&lch lExcePticrrr
e) l/ ".t'*(Pn
{ L uornoto
Po"re"l):
' to'U* ' e',o-t

o6;s in lo$+j P?Dftt*ln3


- 'There afe 3 ircrpcrnccLl
ohi
O Lossn
Q funetda' ou;
@ l"^taq
o'Ul
io'oct clc'tg '(iilu{oors to or€td€
l*"neua7o
\t'3g11 ooctd*
* B*o
- snables
g* [41 based rqsirs 6'
$s"'oh.l
------ "-ti)
ffi- u-*"*' ""e;',.'.r''j -";:: lqSi1J ....r r-n,..- rur DPe,'dfion6 '
ope'rofrorr

*
te-me'oel)
::. ;d
.!:$trfjf1t3u "_--G#".-l*,t.cr.$
\
\1"ne., to$er = "-*t** poi"rrng o TcsrArp cloN-

Su*icTacol motrod
7---
lo6Xer.deh'6 ("t rrrt" ) ;
lf' .d"ki (.l.,aroa. ;;
ft1at'dor obj ;
.-, ryuku dr. dtlnn"rt"n otr1ert J"'-|,r.1 ,,:c can ..ar;r€ lo6tott"tr+(t*

_> -L,e curdk$te a1pt"d"r &*


A,," .*
FleAflroJd (to t'uwt4&'+ /
e;+*i"!1ff;trii
.*&*1t'i,&:ili",f"^t'l^^l
ar
Il4Amt^dl,tl

\nt ou;,-

4 otloos to E*h *. &** o-s p1+.snA n"- btr me'{&f,e8'

*+ TJ- Can !e t0
,{sad t0 (rrxrv,n2l lk [rlivc"i ]- + lo6 wreur'1es '

clatscz o-v? \i
) -Ihe aPia-Iable
W
'

-ll*'4*
S"o,J-,'a'*
-,---/

P"t*'\-6*o
X-,1--"6o"t and etc"'

[og.neva3<a info oe uxltt t-[ tt.o* lod


"*'-?t{ -
+NbrEi ._5 lo6n"lr*t re+te;w 0e+
rL f,e le.,xl

aL,e lo6- )o*l is V= T^% '


4- q{YlcercPcl c+P"@ctF v
ttcj- urqs ou rbe +rgOes
O&" S1r"3h aorrrrr\t o00n
ttre payocis@ *@
Tron6aclion rrnfftge nt l- l+lo+luv
' _ roe
]et'eotho! rheto
-+ T6e fJlocegs oF cdtrDioiDg tbe wl':,r<d O(x/fadotrs ;nro Sir3 ie u-t' b7 awlgioS do e*-4 th;o3

te k aAtp4 -Lfinsaedoo ff'\il,aelln}^+


or nofv og F)nCi o

r-rusr te &ulorzd tU eoadlin 3

- - Att Sengldue /o6ico lixe trc.nsFt mc'neg de-birca'd P.nr.ers)hX

\._- Tronsoqd on tnf61l 5efl/ I c€ '


&onsPtn Mot'es C-,
'' ----- -TtansPrc,t
-,
is r$e (s-ur"'$ on ol ttoo oy'rcIlas '
m6nt 6?(,)*,
\' @ t^ti*', drono o-o,.* 4- hu'a aw.

\* *"'urrr"6 Aou"'X&\ * *&\ lt'dple


rtis, €rc.,mc','.l€a to exea,ile rl'*. logcs \
o:* b*i'maLatcJ,<
b;''3 rtrc e?P.*+T'con'a'ron fl6mt ''s;'tr 4t y
uet'VT*'
-----e t'e con G)Te.'"'\
*;'"'y*k' ,'^-n**'a
annrana6^bte ' 1o o'x'u'e tl';s 1'*blen
:
?.fdb.f lran sataoa n6rn't Qav;ce'
(e*lc< '
Jr<nsalri,q

;; ffi;'-x.ti# Y-;X:i-'l--*'."
-1Fiat V'a'llan \ua;te'
,^''
@) &'ru<'rw''rya

"fro"v'a G'utce
uje g'axr 'rn"y)
'
'n
ti;r) f,h EJB csmPs uls

l6e 'tHOcc.t Cale 4 TEnso4rtc.') (prg€erren+ : -

\!: F$lic void bm, C)

{ t'st
kqln Tronsacncn

.v CF/(aHcrn l '" - '


quancrng""'
ofr{4tlc'r' 5 ' " " -

Comrnlt fte Transodtc'n

] car'rrlExcootlo'r e)
{
bllb'ruc Jiansoq'ncm
1
qJ
I
a-
lomscrylc'n rr{mt Siues S.{tttt P" ACID f'o1rrlrr"r imPleq"rvrro#an
(

A :---) Atoroocirg
(, ----+ Gms;src.rX
L ----+ Solcrflcrrl
D __-___.'
Drlrrbili rg

4 t;yle u*:O;i#j},,
-+-[fu pwes Cornbtni',g fnu]ttplt { retr"a iyrvidlar op'ra$ond iwa
-llre 'Airrnoorg" " - 'l
alo,d &arr. Ror th. ,^6 flrnm'
:- $*fl]n * doia c"t Violo'red *\'*
- :lj
Cr.srrc.q Ev,^ ,.rlen k pt .k,f'.kge
c't-il* eod^Yt'
c(
no rule Vioufion
i &Tram6c@tlon in fiere it a Y*'.'X
G^s;src* cp'l' '
;;;;s; code' rhr"r ** olt I cou"e 'r
a-{&'"
"-t
-fhe Prex oP a6d;n5 lott
",ffi"+
doJ^ u'ndaltorotnJ
-- J*roI*: -
enab[n6 ' 165 Jt"Lanon
ilc Lro i< calltd
&rr{. to nonlp"la}e
^ fuhk'^t
J'+7
pevarl^rs Cunc-attTenl
anJ $rnulhneou-l opam'l-ltrns

S"iLU;ri,l:-
tl@0lik)
Tfc o.biritX c,(- b''i"41"6 DnBale slo L.r^to rwrrsl skrlc
n is furw-'ptcA'is cotrd
h*Sh to6f;ru 6nd L'o'"'t fites urh'^ &rtt-bort
rrrde'n1 Et3 r.s ths D-.rabls &t'J^t'
-[he Arfirc.rurf og Tntsaon on Tlc'noBerur+

(ibe Afpx.oHar cro rohirb


S.flice i.3 eno[ted
)

Tranrd4lto Hamn€4
(Gdx! tnitft.ctlans to
r\tu{'\ QE 4r.LrleturF,( lD
r^-i r tr nnl,ark flrt TaqoaU

arcr*e n".t'1av(S-)

\--l

daru in 6 gn8are slt'r


lr,.neout^I1^t'n" Ccrrnmi$ o( roU'bctclcs 6pplicol-lon
[or) ru\\ ba+ ofrz' a-llcotl rlr"r
d'e CQrlhrnit
[esurrtc trta^oflor '{a k"std
cm
\1*.c\
C*'i,a S.* -1'Fx',sotttnal a4fn t
-> hsed oo tbe pp.pf ft{<urceg (alar.re <leo.) rtar art involved ta forfu"'t \,/arr'6rq5

*r* ate e o( lrc'ne<'an ona'!


Qorrraons cp -Ircrnso*trnral code LreCarr sa3 ruP€.!

Trenc{m{nf6'

0 l-rcorT"*arla. frx) 11,.*3c*n+ .


w slus
-l-hc'rrso'uiolE1 cde cl))rt ocr on S;,61e
ou rhe of;,crra'''s crP
@ of *t^e'k't'Jr
d- 't* ['ft
,
aonrunts
Et fra,xPor flarraX o?.'..|oo
(rx) l^Pr'^a'A"-'^)'
@ Dotar*.iT*s".ttco fl'li;eb Oe sl|@
*lg "6' -
ef, Thnsocuanot 6oir)
-.-ftcorcraftovrs

Hibarsx ,stn ns,Ero le'hnoroii€s Y:U*"i*


Y:Tvorosaortoos' *O aBtutr'"ul
A^ D;<ru,rc;
-|-)iprnohr Anuna+

D,srru*ei fia^ceatranl
' lelo+l:'t:
gpt(2fiole crroroit) pt*t
'I{6 {on dn Po- 'pBslto * Ia@
' Disrrib.,recl
Loill Seel' pr.rmis5lcrr =:
-Ihe DisrnbLradT)' trncroEd
Io pbaret,
ccwr'';'1+(a
the Tx, Tl
. ..n.- *,on tbe Dsn*q+r.t
S 'oittbe
oPto{ b*
Ijn ghsea.,, iFotl Dbslcl]s
u'tlt be s'
'rollbccck '
fn
ottc'cdse $e o'*t'*'

./otacl. @insel ) r
"r" 9
dlo} to! -r
+
&- .1€3 u fo
t (ptr.s"z)
,t- ^^.t,rr>.-\
Dishiurrtd t".4 tPhare! )
iabxcomlt Tr')
1 rmrcr6ed
{- eS Q can-)

?bsez')
rf
0Ua-!al)
' 0f| 3l{' s -an I(ortn;t-l
-,,
1_l
)e5 u cat
1"")
trboSg
lt"sasf" rrudetS

f ldt Traogaclc'rr lt$el NeCEd TyAngc.clon HOde I

,.'\
rPc're FairS
A,calrozht......-

3,rrygm<-
, futrcadl
.4

The tr&ngfruion \.,


6ri n b€ rolted,beq< iP cne o. cnte.1 Joornet h-d4ets AYe no+ at'Eila6t\,
tscaltse , iri Fbl lrangacnorr rnDd4 q .i4rYnet ti.xet bb"$ ogxaltdos (o\LI be
flocei crs d;verr Cpanoo S 4 mo;n fran6 ECficln -
Ftot frar't3aora or't nt"
'
ho, n T;t 3(,
joa:ntg 1 6cer &nbin3

jarvrrx 1 yieret bm Fio3

joomet 5 ti.s<,t LootcinX

jrurntlt & licrc* Soobng

:
..

tr*ex b<*W ntt


journc'tr n

5
tur' s oirh rlesr<A
ftah'tattlo\
to q 6fco d'PPn 'rhat
hlhtn *€ oboL€ to&r plon is Siuen ho+
jottt n eY fi c^L4tl aJr(
l"l
fut one o, ofl'o^r
I

ttc u,.rr.r1 X.uct, crrirl re fcmff'rrneJ e*- nln Lt


ar}\ 1:cla*- kx4nX
-Ianraot{ d\ mAd jcrzr nerJ
cr,uai tabte . b,ecarue in Nelrci
-Ihi_-ies^z fi't fwws.ot &':Pn

+ onesalrx J-oorot gp!<a 6{ner grsT}'s.


NeSRd Trccc6ctHc,o rnode I '.,
*b4e'l
frninlx I taB, lr,ibe t.,or" ,sfmrf '!"fx'd1'6 Fl&l1x
Irz..,notr,:atrl donor s+P<T t \esrcct 7: tood4
fub txl
t l-rz''osood o.n '
Se;n3 &+Ntr1 6stEtr
s-
)a-t 'ncqfiicxu
bwl'' a1

&!blx E
{ n.f I 1;<-t a b<roHq
i41r
J

=
g.lb T'( n
,{ .,rcX n Ti&er kobl'q

3 -. t' otlc"''5 io troo cmrl 5


^ --
rnrml 'S'rvicc'on Sr-'t
'(;m Appl;
'
--r y{t con c.1rltr Jhanscctloq ^ -,,,* b.-dd )
D n"'o'*' Apr""h
ffifi i-ry}{'$t#,:= t^"/-x J^'u*'
-:::;::f;:,{ftj'Jil
Cleo.r c^nd neal
'----rio.1c/ol'e -fiamarlron
.
rn5m* on Jrg
-
pJ' 4 p-*trctre lnatr(, a) *el n
- - loli& a-<-
CWU Co;rt
'-'*
-fiamsc.alq qc"%d'
d;fe P"ar oF

O Ut g-."Ttt satronflcunnu
--r b6te
J0 emble n ogrnb an idua 1t"t;tunce
Lo6\t
O l+u'*.t"T*r, atttaoYbqa SCn0
no,.n
OPJ1 |tk'*J.
h.ik'c"r Y'*lsxnce
-faT ploa'kb'n"tt ^
---)'t0 ercble "r ^
@ T.oti nflt.**to "oY\ottrya -llpl;ol. g'csrc+e lq;c'
'---aao ue!.e
-To
t5* on

@ JDOTt *toctr'o Pk-'roi',l lrr6;c


-n.1,1 2rai>la nt'3t* t JDOP'^'ttnte
c^Yl'rc1u Jr service-
@ Jf^T**"crr S.,rrMa"t*
o" frrtn3 o?Pn t$ us'tfl
--, TD encDle f,i ngtnf

dnd erc.'-'
.,. ohl -lio'nsoorro"llattt* oU b fr r b*e o$'crr-
-U creale Trc,.rsortl*nTe,nptarc da5s
, ,9 f* nf,"t Dao rnod.r.te br6<d local, Flat frc'nccctlaD manc'flerDe4 in pvoyvayct]tl c ary'ro eLL)

fie 1lcXcno's tt
r {ttt
re9e,r oao@ oF

P.6*rxUf cTrt- sa-aiilott tamqe"" i-


cltt rbe absrantl c'(l \a'6e" an
Trctosa4ff anTemd class grwides
U4 orrrtrrnfrtcr{ bg;oin6 rlrt -Jransc.rrloo , b,rmuoT rte*f<*satuo"'
(c,r) vclrUacen4

pnflrama}ic Jrqmnrflarr ln ep? a?pD


Leg^,.te irr,nlep_r tle [r6"a.ar ft
- '{trid "n*
\$tie m*e Codt 4 Jic,ftlee.iiE) &\ -nh tte B."tl".* $,.'
"S*t
-.-a fl ftclrPrr"ilx t6tt'
oue'rcome *,^: pr,utcm est +"g f.e/ A€eq,J bar"e
rhr
ft.ssing Tiaosarxcn SrarKd ln ane resourc€ tb ctrotbea 'Y\e o4rae isca@l ffr 4i.c,n;4
'liavrsac-ttor). -IX
tn6rtf t(re &tr;nclo w*X
Tn gqrcrnortc
fuofl, exel{}e cotrh n€ro Tionqolrl or: baaruc Can'c Cnortyt&, calil, Ctielt toa1Pl)xl "-'

drer.-'t g#ttv- pr"ryrt*,.& .-


Trrr*cal.rlo'l ' fi. in4cater *r6.nt
fu.-ol'.Ti
lZrua-.rl*l .

DedoxoHLr€
-tri
,-tr} ,nn-t -la'u'"u*t lt4fl"l ilu'rwwos B'*'l'dr &nvzttn

,,m
03r s.*i,e
cl;crf Sl-d,rdttd/'1}

Q e'r ner-fi *stis 3fuurrczl ia b'ni.tpd


;tself-

@ ril ro Tx' **" l'd'+


crnrare::6
*"*.h"
, ; ;;;; &src"t'rtrod
',,r-, S o"'.,ilfr*'u
Itm,rr""e^ice rd'r ; ;t.; ,**'flh )v''r8Lo
6l d
rr:edhsr *etara'f$rrT1 ro3mt erc4teA rtrrs@itL \J
tbe b.m<&od cohicb orr
(drl te
Cot) Cl ianr g+phe A Tuo,sc'aA6\ \-
D0 l.rc.nsac-ktcrn to,) 1-p-q1 lansac+lcrD
*gle ct..n,1XuwL on rf-'c
dcoded ba,st o,.r tbe -Tc,rsr'clcn a$natrct '
\/
busloas vtrtad '

-ihe 6 n a#nu,'tcs
r) rqP:td
r) wryArdneo
a) cqoo/rs (deh*lt)
a) Nor s4ur''tct
4 tP^a'ru1
() rucuor
i
c09:- Tx aftdh.rtr5 Q{e oor rE4dJYe d roh)e &afrg cr:rtb PaD$aYnari c 11 vrgmt '

rDKi Jroneo4lo6Teraplore cE{sS Dor nEiY€d d,;te deouo5 oirh Dqlc'^s'n-Tx rrgmt'

cartr 'tE b'';l"l


coirb
Ie?dYcd -Tx ig clicr* oPPn
.-- Qseb crierLt fuPPtrad

Tx. Ji coitl be skJdt{d io tba B' rrerhod '


rg+rfYecl
bYnrt )

s'methad
4 derlr+*/ clicQr catls
Thi6 B.rrfrbo4 rLtns cot$ neqo Tr
iff€lPg$ue
., (EdYes n€ro:-

orr\ Lcr) Lolrb o&r- Tx


Tq^riY€s n€r'
erieru A?P bro,t )

f ,^*
[*"
s
L
---

l-- ne.oT x
() (rrs")
STnr

i- The garc
I
oofr
4 Tx irt cr;.nr cfPn o,"o .dffrr"r9.
y;3:^i:t&a
irQ me {"'"'
S&?p(Xtg

6* ,"ttt @)rb Tr rbcn B ' rrgbo| cloruns "#-;


5a+Ptdrs
brnrC)
CIiENT APP J
NO T,}
t7::-
/.'t
l

()
:--; J*""
umr

I
TTA
_l oTx
fu

Not Su{r$rrd:- B.r,r.rhod o-Lro%s ru.rS 1pifi6(lt T{ ivverpeuh'w * coecrhex 61;g.1.


tlryn is &t-[in3 g.rnert'o4 rptrh crr co,rhoqf -Ti.
Nbf 9r00on<i

clienlAPP bYnr t)

NOTX
brnr( )

TTA
.
1

rbe 0 'rntrh o cl coirh T)


@ ft".f"r,t:- The otict'd-aPPn N}(J 51 Crrf

thrn s an E^cz$lo"

vuntatotl
61;eq AoP br&t )
NO TX

\
l,

1^h \
NOT}

@ r.ro*o,-
:-

Nctro{
ctienr App btrqc)

blr)/() NOI} ,

f.-
T}A
I
N]OT)
q

m0st u.sed Tx
PoFratlS Atkribur rb KEYed '
rl ......--.
{lE oePaut+ Tx arhdhrc iS $r?P ctrr
ttre EFFecxof lx a*trttrres :-
Beon 5 -Traosacfi
cLient'6 Trc.oscLfl cfi!
TRanscrcHctn Atlri bcrte
Tg
Qeqlrire d rDne

Tl Tl

Tz
Te

DTOC

Tt

|tcrndofor1

,retuns fioxX oQllr on c-oh;th Tr


'--> 0rg oe. borrsoLtton ' inr"'.tpto' Jit**-Pt'gF*1&-
6 eoobied
Servlce i
i5 li*e Pinr.'*
advas.t :
r\-=. a'*&ttt
'--- a6'a?'{ronsorrlon ' ilcr eprur ' Nlo*}1tr"rt "roll- Afi
i
4 9'1k^^ aa"< '
+ta+ol7-T).,,"sc'il1cn ar$tut€t
ot lhtbned'o'r- t.d
crn Ldll be Cornrn''t
v-> rn OecloYc'fiue -Iirnsocfioo ma,,egtfi enj $g Trr'ngogl rhe
orlcPr,coira
\5 rdsed in rhe salncr* rrradocl.
t,rh€n no exc,crrron
L- Pr, o ri meErrtPd on

fvonsrr*icro tdll be volled b<'c-lr refd afrn9 c+


,^.,.rTronseo-*ro. nq
rr%^"ftJ
ct{Pn on Dectctratrw l-bf,t l-ocoJTronse(}lort
..- @ f- exam0tc

$e pc.Snoo )lo {ret


o'-
+ -Ix rtgmt bg us'nX onmrcr'h'cns
__-a ftctcrolive
il*.*, joto grrnc o$ F€e oo" Bo ff.fio":cv4 rttto€s
ul'r moetfu Frruatog
i1&rodgecrD ,jav a .91Yne &s 13o DevrofFao 'jctua
annof&tton '' *)/
On bm.,() t'
oD .' annof&ttoh
tnLru<'ctffioD , .fpED tt'e/^d
a) odd imQc,fr or$ 'SF ' 't )
s- -
llofitqcn r'"r ' QE6[J
orkn == ?ror.qail*r' '
b) atd "l' tttt"x -*-ET^ art'lur,rc

-tx ' u&'g'[:il:


@Tranrc,*t'n
*" sjl i-]i--
spdn$
/iOemo,xmt
a) rnust bs ge1',rrra bc.se indodl't sod"$-ry:Y '
,Vtn$-o"oot'"*'
b) ptc." l'rne no 4}to 63 4 Wl, Y)0" l3o as itis be'n
c) 646 Srtoa.,in5 ccdt c.i- tba endop @sna
!"df6"L / > r

4.LI onn6trtlon -d'ritre n


', transol}lcrn - rrpncl?e-d=

ClrcruAPP'jav( t- lal
sG-t as rhe cuerLt o{PD'3o\,^ cf lnSzr>o''

Jd-fIU- ct,q$nrh :- envl- - \ -


spn5.ic'v, ao*r*, - to,16lo6
(sp"6"'s )
"la'r
>"iaVqc *'Jcdq
)ic,.ra Ctie{wAPP

ur'rh '@1ic'socJ''<ttnt o
Oh* Jx dh\hatcs tplute tm'tr4nrtr ?T&a*'Bneucee -
.- NE\^r'
P'ops"rr<'o'
P;";;;
rp' P*P6"ff4n" l-\kNDAT0lLl -,

fra6,n"o. SuP{'tars, 'Nor-SufuRr


P'op'6crHon
(*'en*'"r'*Tt ")
topcrtr<,raon' NF\lETr, $'g5"rr- N esrgo
nloll*''
, To Cfph €pring based TranSa{flrnS
on $ryio8OPn ftrrl]Ule fused h;k'rr'tt WEkttD(d"

l$ic use rr{g. s?.orm. bibe.rrnrea . l-lrut nrT"t-tqq{orlrh"%u,,


oD oD P'D$r4rrlfi c t locrtt', FhfTX
wnrtlerrrttt o4 $n6oP.m
.+ F<n e^orde a?'PlicoB
- Lr,6r"
'"Pu aPn@af-rlt< Pe'trends @-O*-
.)-"' tn, $;6rnoreBx;slante
I I 4 )Ltr-' on \n [o + I t-c15

porris "n tro..t,, $"d"1 "d' e kae) '


O; g'41"'"a"t*1ry
-T":::"*;:^o*o*n*,
w*<hce 16, *i:'t u- oppn\ oP /^u o:*^n"*" C
ffr^an lalorl^ts
\!
- * $lobol / 0istribcrlcd TvonscrcrionS
I
)? |glo,-rlroL3

ir'$ irnPlemento-tlorr.
: i'rplenenAt
Ana 16 6ilranaacrlonl'lc'rr'3w
j Akornik'g g.p\ie' gp€dal idbc dr-ive16

t0 'add Disrracrrca Tx rr€rnt St4pc'n- on sP"og oPPnS '


\--,
Ltlo@ ' orort'iKos 'com
u9bstti '
--) o Con doonload q1orcd resrYces ft-
need cDtobcl
fransPtx rr,6ne{ og^r&tlcm blo lrm d^?P alcs oP tt-,:o d;P?*'"Ve
Tiansc,l*loq Suprlo/r'

alr.,t * oxode DB 6lLo


.--,--+ w(drq)Oe I
r*re) kwttrt [au t.,-lte ,l
,Yecu.ir:| u"'*'' ;
Aanlrr'::?. (au I
| Qgng lndr"na.ns bJ
:::-:: h.ldet"r.-e
accno
- bdl
qooo tqjc, I tOt
101 @;ardvi 6ooO

n'"1 qx'raJao'ts <n


- ----a ule Deed DlswiLurcd ft t\mI s4'P/aYr la pLtkxro ttcorse<,t
'-/ OJrrre t;g,O
OtcE'LnlE " ' '
the -tri.ar,'ponrrrJnqJ
rn'rnt_ oo
orrd Dl6tflLg}iedTx
crn Decrc,ro.tiw
@ R" *qr'}ele *{Pn
OP,arron tPftn appn (BlLencm) arli@bte
in ls[oVf>ot: b*a"t+

.!- * €clrrtij X

Sgcl'r-',hd

1. ruetunr fuel secr;n1 ?' Appri(*lcrn lr.rxJ Se(rlyi


11

N et@ or F Laue I
pro1zt1 rbr dc'-lz^ rtr't i3 Have)llql otc{ ttf r€nrrl k
:----=;1" rtrr"c''-$
ta'Lf rctre 4 tfr.ie
. ---. Apprfrudan detclopc-r-s aye nor rs fgrSible {" *rtS , pet.-ut1 crdnlos rrrltr
\t f;'""rot's a.d or$al
! AmrirgAr,n !&El
D-- -Y A',6o'
zarto"
*ns6;zr*lon
" " ''-, re6rxm6i btc {"r t{"s og"aH o"*
Pmtr..mYners 'rYg
.--a Che,u'ng $re rdeft}; q oP a USe'. is CaSteA Aud1en61crjl<ro
/1

Cheo&log Ih e Accers Pe,. rn isstan a & o' O1y.n cfn Ye&r.dcet is CaU e d fluntril1;2e.Hc/ .
-+ \-/
Ib [s 4-i,oordc "rexomended Fo errabte g€oalYitb Sewlce s 6\ appl;(a.}'torl i\, Dealan-e*lce
-> 'aJtr"
mode " trA oe Oan ure t 6r fi." t'""rr. 6ori g1m1 ge.lzn1 Plo he"a''b/Le

tht deqoxo-ulue mo4c og &4lj.h'q cln $'^t c{?ns.


2olo+lzot't
O t" excrmp\e afPn crn atPeaiJ profircmrr3 re-Bc.l- 6,e. alPas Xn'eoi o

r2
\

-) i
l6peJ.J Annotottoo 5
j'rva crrss os rhe Advlce elc4s
Ta rrnle $e
@ Aof*a "-"-n
_-- ao Pqnt fD B'"rrbods & \vsf&e,.n c)ax '
@Porn G.t

d;;*"ri
6O*O'-"1"0u
----
------'
-ro
-To
*o
T rna[e i: *#;
rhe 'pnr*dna as -fhrde ^o"Jt'-'-
as
HiL*'*
,,,a\< rbe iarn w+-d exawra.-
@A,oc,-a ^*:.:H^*iH:*,"u
t*;'1
6 g.*:,:::T.T. riu ,m
"ff &T,=ii
'ltstBclro ' iar,a
^=
4
/ trgmr,'t 'J*" *
anooturtao' )
1.,or,- o.g ' *P*ti ' lang ^

@A.p".t
hgletctl-
p.'blic. cr(rrg hg ktct+ u + rr""d
g.,,,.rtots4Jd"0B"-
,, $c g''"atats
'*' ' " ''*' xz t\ '\ t ,',mrcur te'dn3 h alr
L(d,?o,ntrnu
(''e"o*rr* (* 141:"rcr '*("))')3*"r* ,

?ubt;c vord t,..t'*,ort)t J rT 3fl'lt8 rm]


3.."1-
\ *,
g (' J / *, -Fllt -rlr.
,.1-11]t_."r1^i.:
gnft,". tesb;n-tc'{uFL
..
a.e.,"('r.,u.,rcnOrtj')
,.) "".-.
-".'.-.' _' incttde ,e""s
-- incwde
s.i4$ -aDP -. ^,a',>
fl*ri c void kp-cY\cr6oa( \
t )l zit' id:"idr" clar' ='la'+*t{ l>
S,o 1.[' ia.n
L,eP,nt aduite" I ,,v<an id =";d2" tlax =" S'yPtgr' Iz
|
6 on**'"'4 Co'1*'o*-f,1^rr., \ '*o' a'poa-o'tw?'^t/)
f ad"to ))
s.o o('to. aPta Y€J.^*4X t tl
.tt cltrfi da,rq &s,e- w ctlu*-pt
clil]nt o4v5
I ^- -1,! -'.6 ' o .la I . gr'ri iar I r ' r6lw4t'q to *flil ra'{ 1'""1",,s
;^,elo."
",,*.0*, 1?:1i::: ;l :;tl*Y":l* -,-- \ 7""- ----
i 5pr'ng Neuflodule Po" -tr

dn C(ff€ 6eYvt$/ jsp tahro\oX ies and


Neb Promecocfl t glt,> s provide alghrt l.tton Lc"Xer

6irnpli ftea rbe Pmaess oP delt'lbpin3 nVc[, c.rchi l-tz]Ltw brrse d' Llr.b cLezt>$ '

Sntrf 5 -----------) Prcrir o1x,,ct'r e 4rn&.rf .t


J5F --------------; p16sn fuoH5 [arcrre cc're)

Nekaort ____-_-___-_,
Rom open $lmphong

fuioj Neb mvc/ sp;"g mvc/s1rt trxt Ptoo: Prom inrcrft'ccan


,--
Nhril ib rhe dipf blo) 6hrcrt5 1"r and qi'r;ng rnvc 1.
5trt1t{5 i- x SrnlDg Yovc
de'rr'Paas Portr dasses
o "f eto4.deb arc AP: dcPcodcn i O *t*..*;bt
g4lqtrts &trntatlcras brrse firro$ram i l3
o does not *.?0oa !,r556arl on hrsed p5T am;o @

e Orkr rbq, btrnt is @ alldrs rD 15p r/elril5, Seerncrl FCn, osp, hrt"' t
a) dds not otlo(' fo
uJ ,, P

Lo'X crr
Fahnolqies )r) vlco Lc[er.
$rarndo6ies in victo
crn e!€/t Jc,l:q
@ era1z*s dqlrtderlt3 l4elrtt'o
re$cu(ce rL"u*z -laqtzmT;"rana
R'rmbeanS @ uses 5(,$n1r5 &-dlt-io
" @ th,r** ptu6io 16 io penb,. sl
drry,
ord qtdn8nvc
TermrnolqS rcru*;n3 bl(o 5?dir5 4'A
3Prin8 rovc
6ltdi 6 -i 'x
Ter mi oo I og5
e-...--
Dispor.r.n&*ter
Acttuo€e{\det
&rnrrotle I &.rv let Ca;rnr,raotl class
furn9ean cl'acS
Gnnrmod &nftDlter
Aalao ctc':s
Spnog cfu ere
Srmrs cPg ffte
l-Dl5Rl,.tler5fr\'lcrlSicrlrarne 2 -
ZOog hleoar0e>'lro\
8e!',1+' xm)

Acfionl-\a4e;o3 qrt krrllev

4a66,5PNocLrdJ
Vie!) Qcidvc'rs ar.{ Vk"rs
(to canBSrr. Qoarrr o"Ses
)
ModetlrgVierr oklp.r
€anf ct6 6mua 1')( etoc,f,
' Flur: oP ereornn in Sp"% HVc aPPa :-
laleb terver ApplicanooSe' v<e

!dabdpfn

rrart : [-----l
L--------J
*8.,
ontrlmrcC,- -,
\@ra:
I--=l +'d 0
)
[r^r*ion ':'---6t%1c)

N Y ro rbe diog.tc,rn i-
apgn sB*tc't '
0 F{otrornr.e. dePlo$ee5 SPri ag t'lv c t'Jcb epPn in L'&t&wcx Cc'rl J
rf' ?he &rr,tl+ it coitl be iOSn'l*l cr'r-c
@ becCrult Og locid,orr- stbrtT.+ €fdrt€f, DlSparztpr

girter duving furr,cr su1,t -rp crr dc.ving flre &t%.rn€nt 6( ot'fupprt '
@ lrs D;urc,r.1", &*q.. affruarS aJ,) o4fro Gnrcxt cailz,)yLu I rz.ur"6 B[i!+lz#tt4h== .-
<Dser.t*crss'rrc+lo6nanaroe) -sewr€r, xral as rbe $.rr'g ConltTtvann Sre f' tfisfroic+t -
rhe b.,ns, Cn(:VoA tn fu1 e*,eV"*yor -!'rc 76tn k f)/t-t,lola!
I1o+<e '
-ou

\J

T'rmm ff ;,'ffi"-;ff::, +o '.o(D


d,o"aLanmttur "t'oo'G"t'*nt "-
ell.sr $c* ort rtly:r<d * y*u, i" odt"-'\elrtat'
'E*rtAn-^ G-*,,'A 'LQa \J
Q D:ryd^o.Q*4 .o.ltz* lhe' *'"'t,.A
K'nd"a G"*-tt'n "L"tl
@ ,rr^^ 9*rc.t- caw ca+2,"n ot- G,''r,*^)
-anl
o4lettt:
(9(0fn, E*A'"a rllt laott*s rfle r1rerr etu'ns floJqA'rVt- "l*
p*y*c),or Q'aiet ' fie
use^ Viet, anl Viulflesolve^< eA* G^fiq"t
q) d iin sir"n6 afu fio r &.r.r ,ri
D p;,l""tt''nrQ,,0\er- U

prefe"*arto'r LSnoF QeYrrFqe


Tet\r\t Pctfe3 ' @ Ylr
ytXa flre GvWae t6 Beru\tPaee ' ft *1an d,e rutrtb anl En^lJ t,ilc, re
r& Qupar:.J''qQ*Ler
a 5*^nc':tl'A{lut.
clc6s k PbJb c1(1s.5,,... and iava bean
-> ComFr.od
' -. Ovnrnr,n d c)&t5 pyDtxrlias ..,€ed not tD 67ftk b uelrb Fitmcznf**,rt* 4ornes '
ruJ
'- '-. Gn"rcnnri alas6 FD[rorrk, rnurf F o;rb Tin-O-pa*tS l4utt"X ZsPnt{'biD47
. Lo,,."J
'

CcnrnanJ 6rntmtterr ctass i5 sp,, +nr 4rf--de'f ' --1 n-il clat! flwlt iffPlerP'Lt
'6
616 '.**,,3 &.meco 6{F , ulrs' ,"*,.ri ,-" ' G"*a
lot (i"mtt'e;
cfus'
the oor;og &rn9,gurafio. Pre oF SpinX lJebrn\l c agt) 6{ttutn5 $s frro{oi"'3

@ Urt haoarcr s ctasses


cc'trmllu )
( r0 linx iretti:rromin3 rcqrsts rpirb Carn'nnd
(D G-.*na ccmrrDller/ ctc.sses ( G.-*nl elcrrses.

o v;* Qusolve.rs.
*tt
1a s'eth *"
Vieco Qp561vg-{'- lbrs Le.. te lp...'x?tto
conprxuro$o.} ::t"t: ctlrsncrme
\r*gj' ltrrs \'rlt-oQest'Uen
r*r* A..O9O Ont* r€5csY'es oe 1;a6

\crvies ha,re d csr1 ioe {ieao Lclcx teehn o\oX1 toP u Se '

T&hnologl name
vie(oklotve'{ cl4ss (deft"rr
- Vic'ol?eolver )
' Org sg ' co'b 'Yie1tr ' 1646a[[2cscirrce
J6P- "*'tvet
lelocrrg 6s.sp c,,tb 'f,'tLt''''":';:Y#:::tiaoResdr,e.,
or! "af c'tb ' '9e lt+ '
vra
P'errcovu -l1LesG"'63"w
' hLes' v
e!'s?'c'tb ' sertt<t v;at
tlres
,15rt (x,',ssrstrclLcrns<tse
t ur] :,'a ;; * ' *'^)el vieru' xstt' Xtt'V;-i1s';H**V,-Pt'at*
^"" i;'t;;;';#^j victtt .
jas?u(46rs ' Jc'r'crl€
o./urer -' uic{t
_, gadtet
016 (P'Lx-'zlt '
.L.sp{ reporr6

Urrt-landtcrg : - g," L- t:ou lhe etienl Benr,-tte ;,{oningqP*:,'


^
tft ,,,pk* *1
--, rrrpst 6ff 6e crc*ses ctmhxuwd '"
''1"(,
i:: ""il:;,'",': K::*-
C*+*11'- clat**t
hd "" fr^d
ant!, G'vrnud
h^tlu*' g"ew+;;
h^rtu*. g&*r*Z-pk ,^,^-C,m"l';:?,,
L!, Hdnfld,.llo?pr,'d :- This clcrss
olJ.*L)s
oir.*os to u,,Loontds'kae
u* Loontds,ka.

C"-a@ G^*J
*mps onct n,ur*presE;dns fu linr fu fir- urts(reluesta''ts)oorrfr
^
clctre es '
G*nrttat

O,.c,r j'n - ?N::'ur'fu1:Y|-1": :,##,ffi,:,l*


* n'r*'=-r rrrff G.o" i
ctoq'r' co^r'"ila'
: r qr rs
)
C*ot
+"tt ioi tl' o@.,
'ftiL'e 15 a
' Go,rrnnd G*tprs ".' Frssibiltr$ fu e'i.lti d.Wr*nt r1p"s oP C-s^.^dCsrtrott, .LanE.

(} org.+.*u. S'mptE'- G^t.nrpr i- useR^r to banale sing)? srbmit vt*n %'ow'ne, W thp R'mpa?t ..-
servrf .rovc.
frurr t( )atrp<-}r qnder *t Cd'.t'dloroP Co-nrroUc^ &rr/tf . 6tw.s anG-r.ar";fG,-,.t')weina 76
-
O q.<f &rg. edt4'hv. ' AUr*+['t-Grt"f ,v y I f
Ptt{8 rbe Ye?levr
h latdz) dr"o\ ' B+!4
uc.f.,r to ha,nJln 9i61e ra-Lmir lut n h-q roX", l"ni-]r^e 4^^po4' a^
vu*a -.tv tr,orr;,.( r(e 'vlgqrrt .
I,r^arc Peayrxt )

O 'O + L...-*.-u.'4g*o*\Ji,o"aE tGmrlw9-


'--.,/

.f .t*.g,,ul€+.mvc' G*l,oat.E t G^U, .r 8//',,c * W aLoV*.ele4 \--,


@ ,X"a.G^,e 9,'v1eT)*rCo*-tto't
f C-l +6 Pro.eJ( ile ^c4tLr* Csa,,"6 $n 6db"k^("ererA"). \?
matilarrlor, FtrrrA.rroG^t}"tt""':- n
o q..g *".gn)1€f.ryrvc.4c n'r;ple -qnr C';7 %- 4n niltsple 9 hit b,nos /'r^"n, -
l4kAkhaib
,. ,,^, a- czJo+l"t:s
9'*"fui91-Y
l'*"Pi*"--= ,-., ,-- ,^*G -^ - "
&,ne 6*iors "*
^Wu
class gef3
"A6' r{ rrt'od h'sel
'- rhero fhe
\-
-*" thls cf&e bclsed
C:rnnandGmr'otte'l clAss
"''
-t ' lr.^,^rneA, \-
be lauocne d ' dildrt
&trn Pnfle (,,]irr
''Po6r" rrcrbod barcd *en the *"rtttr
--
+ clc*g LrT etr &mrrrinl G'r--llerr ctas Ber6
ur6en
'tu6
processed and resrtt
c;:ltr be gcrnctctrf
coirr b€
1l-€ imrtttcnt poparde* are : -
4 ca-n'x'oA ebss ohJ
a) to syer$ loe &or,
&"sionF - ----------+

u) f'.N1,." -.--.------- ro ae"\ $t Jr"-W1e.

I e*no\/,'* fo sfr<;ej the xu*ffie '


'
dc'*S )"d.
t"4'*
e)cr-nrlM^e -------2 la t?'hrLe G- c^nAda*s
G-nanl
cbN tnt>' e
e\ aTo1rntC)aur ---------r -1" sP)fu &e G'-t"z^a
d,nd elt' ' .

abve diasroro N.r.to dt6grary1


- -
bct d impllo t r4/ue s F
@ N",r-, poq. enVr se
gzn€/c,fes "rlrrhod
-F"{t { tc+q rhe 6ryef'
OlO ff'. Drrr,tlcr Setvter
O',+ rcye* o*1 &tmand Gnn'lttn tLoN ' 9o.. rl.. *2y'4qr
@n*.t" linr.s
;J
flne
g;tgN'\aQnc+ ta lo'Lncl' rAe
I

tvurhod GtEf thc &,^rrond CcnnoVttr cla-f hl^h€3

&nP"i
@F-^,-.a" 6cr.re,ard
e
* pos{ ' mer{rod ** ff::;qr:ffi"T;# sr#-
eyt*- cotrl' G""^'njGnrnlit" dorA "'u'*
"bcrmes ' :"''"--
av\& Ltrr{ $t t\eG^na,r*G,,trdk".; tt^Ib to ltroceYt fie "tr1Ferr-
- E*r:r"le fil.t;caUo.t

o@@
'.:l|P (wtttnoc ma. Nab afpo
Plsnar=1*" *,an
1i+:fum!! rr.ge=

oo&,a'11q-ll
u
id:
rl t..t't,.ln "'''
Oorrf,:
t--_--- i
ol],ae'.

Ilrtdeu- d.f-'its /ayr


... ldr Errrsh gooo
iP proArr+ it asrt

o lt &lircs +,e r<erhled ,{-*atrut" G-'*'a dats eiut ' L\ctt'\


*'vlcr
Disga*cl,e'r
r aa.
@ ).cpaX),* C-r.* le* coJl,e o-,.9-ur;.G,.-,-,-J *xl'o1 oh Co'--o^LCc"th,tle'r

@ {*rlr, ^'h,. C,i" tare exar.rpte aTpn refPor alo@


e *," P6eilis @@
lbe FlmoP eteloL on al tqp"@ pc(geroo @a€) ;-

pl rtlo*l-+: ' Dot'o'"r


- @ so-. o, st
t'i qr.-e as sl€") oq 9r\o+looE Dr"Xte'b)

_ 6 :"_, ^
sr+s oQ z,\o+r>.rs o'.I]-.*u.
). i"#*s
.w*h,"
tTff;it*tntt*
Gi Tnde'isp
e?'eljJJe

::lh'fT
. Q) Ed*.
*a1',,sr'mt,"'barecLEd{nu') '^

6t"'z't
i-fl'an
ny^[q"#]*'l*'^U Y*'*, '?*;t;;*t;
' anA ta'lc"* ?un' l-'*kt
. 'h:s
,\ -trt4s the \eerft;r (*t:-'- gl*3
D'rpat t ovSi,.utef
*rr,ns an''
a,,J Jaues
qprst
'- *
?,""ondCa',wrc,r..,^ rh
rn L.l:alr.nn6\ "
(rop,"ire)*- **'
@ .._..
ltnrs rbe
r"qlrrst c"or
c-or

Fr
I,X ;n*K
(:_/
-rt'e S'-ortW'Ut'rJtf1"o;ot 'tag
.
u
il, gts;,"#ml'*ff Q
Yo^, ,r^)o* $ryL Dopont"'G*rc+-'(n?: t+'l\2611 )
anJ Gtrt;a 4+ o47ur
(,.+t*ttr;
&rrfo,r o.
--@ *r,0, BrLg.,frtne r'14er (reto-eros)
Duwrc\pt},'v+ ia4s anA 1ov'z fl'e
: O q1*t k<""*
- b eote c's @ p** da
f ^ t, o,.t..n*.-^t-rrr,r ) koo',no *oh +o

.relT,norwethocl is P$r ^ yul, &.*'o"J


+zntJ"J- o? &-
tl.'e .,.',
+"
ffi,
D D;sg"ra^.x Gvrer ,;t tit wa"er (usesaAn{:) r.edo& kce:r+r? ,v,ar))
- (D prga&n9*rzt c.Ilr one,*n;tG,-,-,-; rrrft4 4 G-r*A Gyn"ll""ct^rx oL.1" (zttt-:rtt't)
cl ictc. a5i pt nt'1 io "s b"co pi"dr.rr ' j.s e" (rep"- >rzo)
e,-, ,-)
V
@ o"S.rr"rr rrt*ro nla. os f'lodaA't "
,12 A
n 'i'p
@ D,nu+- 9.*rr* y*u {'e Ctnt-Ie
{ha-fn"e*at C*tuiFrye )

Ve'gfuiog the lJ"r.cr and tafFevn 4 rbe Eyltl ddlct Grreg tr-fl,*r E.ymVa ti dorH crrs .
-,
/- l;r{aJcru ploq.
ur Lrse \Vo (or{)
n
dctk"/ -Io g" t<'rn1
--2 In f,t'tut' Crpplicad.n5 , \'I io X Lrtt/& \krti

Ft irn Val idc*lc.n6 '

.--'s[,nr[l'1vc&wn3grcresscfltTfo-'!fzvo-lVatidcdonsiolitt-lebitGropiex'drdrrot

frYDtr arnffre.t &;cndl g .

veraioo)
Forrn Val idan'on5 in SPriDg rnvc oppn6 Ce'6

1' cticr*a; de
a. 6ervc{6 i de
n
r,nlu omarrrrncrfic kt rnlC' lida'tlOns Crvt -- a.l5 liYofr&mcd\ c +{ Fl vt'ltdo+tt"s ure for:Jale

Plsib'le u\;nt \FlaScYl Pt


us)n9 jaic. code
U

can cAe \kltars mcr$od's


e4 V;at'ta\n u c\w
-) r.0t

{., s;.pl; ft;.,q dne gtcex a $ 4^' Va1'rda-tlcr


'ul tJ.

- ffr'it olrui! ttr d"*t e E,-\aliaoNu., llles iir 91e,role jc'rraclc.v( *d tlut j^o", doU -
&n beusei in ou lain& o( s6r.n-6 a'ggns indu&'5 g'nn,lluc d4Pn{. ?,1' clo,es MrLtt -
iyr)enz*s a6 +,-71'"'reta^t'. Va-ct'l.n V,r.t'*.n (t) .rJ -r,-rs+ trrrovictc
't"rgleraa"ttc.
14 '
kn*t rVUa"re( ) r,,rAocls. r,Cui" n.'ug
L1..rJr.2 io6i< In
ioni< ;n \Al;ao+66; .-
\h-Udo v,aa?.""{ u-tcco/r {ak i{e
9qr* 4 ,a;e*Xx* GlvarLodr & V*a.H-(J*rs crcdj

$;'6mu, aa'n V*,7 rh. $tr*


@ P,ocn&," to duolop rhe of Q^e'steE^ W,n^
gtE-r :- lcrve c. jan clasS ime'lernenlia, Ord . sF.VolHofi. ,!*a*on(f) onJ inpiernant rbe
Er."Vrldc.rtcn lgrc
lcfu P.oa.rct\fu.ia"ror'.1avo' ftre
oP F tr t'o:@ o+t" no'@'
c\a'6 h Comrrund hollf-4 )CErs Con f;6qrcr-tlcT r "of Splrrn ConF;3woll- 4tu'
5ie,jfu ftr( alr,€
ft,"n c
6ttpl
# "
*ku u( ga,.ni ^' Q)
.x6s enrr{tr
odoa! n rfi< rJe og 2tl+ lo
uLt 't f'3'@
"9Kn-D| 1il61g furoroing
l%i' ln rk Fa^ Yle bn
nddq cro'
- rolq,@tnr,fi; d (o',ohd

4rT rn5;bosBindhrurs ta^e ' "i"2


tt+JLT""::J,"i*' - r"*'ST)
'1), *
LtiT
r"* *' =
+" .ff;
-. &jia3'd
t) :l' 4 rne
1;n'"' "0o1" (rq"ere'*r
u!! &tkr'\ aiftr{ i|1to!]1 ilc'o}l('a'
Zst)rtT: rf€ 55.{c rcnr =
"$ f e'aefo.,'1flest3e J /> ---' at ;s f6'eaLb l,JoP so' 6)e 4 dn e Vq&'&-t'c4 erfors
d:rpla.ra.{

4t\,
Lltikt,b"n>
llu\7
>
zlsp"tg I bo"B;"dFrrs
a+lo'rlPr:
sPrirnmvcft'* 6
gPnng3
imprtenr cnmrch0n6 oP ^"u"''i,;

- O @Coer"orr e'' rrf,tl€5 fie iava oass as d:mrnnd @nfrle/r


clc.ss '
ar'I- coitb GtnrndGr'rl€//
- @@?qpatflagprnX- ,nsPS $e ior'ire$lesr ro
& b rrer6o4 b #r l'1oder4rr-"u'rre

@ @HoderAr*,b,rt -----'--------r KrePs fie gt'an.et<" 6l'reo

use in Via-ohc" '

io t^tlo Y€so tlYce fT ts '

=@ @ Soo-Arhibutq5 '-------, creor<.s &ssrcrD ortdb,rc Se


*Jnte- *t' €ft' $e aPPoC) "f
.- O f- Aonotartona b'red Gn'nXhElrwc

:- n",i i'-"'::';*,"'", os *e''\"-ra.


.:"x';';J,J.[: "'*
' tleot'N*
v' 6h sw\eF'viet'
&"W'"d org ' 3g6ngP{a,.,C.Dcd
she€'ts u:e &ot
Relor,rs \n fne &n". tf PdP do.ttnenrl
X-c4
Y ::ffi;
\.- c-l epnSbeons ctnd err e crrrve rbt
i t.rj{ u}itL rhbse \o8lG \n sieri
*.*''spffi
.-@ {*Ihe gihmgl€ cLj.Ph onrbe 6!o.a disu'rttc,.n.hc
a*.@o?fie

I_ -- tb( sttaarx"
band le lD( ' "r -"tl:--*:*.J11*:"#
6it-&a'on*
," er*rg
-+ Jn rrvc tr'
er*rgrrvc tr'bandle
elals & +ye"
tr.r16 fcnc-fa*ro llu" "nl
le'v
dGar-l
a ftrrrr
pc'Xe Loe mrtst use tbe G-rtno

aoe Sboc'rd also us(


roitb rrrr?rde "? Con"anaG''nt,oua ^

' ; ;;- -';*. '.oJG*-o"* rt,fta fie aprrcadorr@cP-


o+ltllal*r: h"d"+

- .p.n rhample &?pn 6n lrrrr*lrrrcrnGrr'crt<'l


@
9P"9-NeUse'ni(cs
bget a1 inx-ppc JAI-r^Js oe-bcrvlces" an *,r.s proceeS rh e
-+ It prortdee the Lrb5wodlcn '
(Dnfffnt +o excu"t-c k-r-bg3'rDi ce G^7'oe"t' tht
€ong Crnlr^;ne't ir Set? provides erNi

qryons l+L'e;s no ned oP fu.t"t" uzbsenrtn'


Camgt'net* and
as lt:tllkr^)ica
-t Sprrrn6S'r guptics 1loa clarse.s 40 Qxpose iavacta'l

-to Co,sume Ld'bwvi& h'V 1-- cl;ut aPo'


eao o'Fnr ffxn
arfi' epaog &arrunr*. rcnbr;n.. Jilur9 . Sirnpietaxwo &*rtthett.r
&tC\ Cldts ObJ@ra-t U){bkwice &mpontnt.
?"",P'o^'fi$n&."n u,nL*'2 h&nwne
rat"'*-cntL- ttmrt6..io,os ' &\ls
%*
dtuatr"D ^ *W#
W'*"'#:#,;"* bos'r $n,uut*,"

You might also like