Spring Complete Notes (Natraz)
Spring Complete Notes (Natraz)
Spring Complete Notes (Natraz)
com
A Perfect Place for All Java Resources
www.JavaEra.com
A Perfect Place for All Java Resources
Spring
(Natraj Notes)
www.JavaEra.com
otlorjlota
6frin3
t.lO;og
juot
Logic and
fire
opplicnuf
aPPlicotloos,
oef oPPltcortoot, D;otribrrreJ
&{pl'r calloD 6 /
l$t
erc'
'
o+Pn6.,
"n" {*
sprDS
rgpe
jc,vcr-j EE
Vcndtn:
G'tatc'r
XntaP<.Ce
Frarre tr:orr'
T6i6o
9.5
:
dDlioe Tiahnial :
Bood d{ricols i
booFb
'"
Coor..ing
tfro.)g t.r''
6Frng 5.x
->
6pdDg
j.'x
Cootcd
ver
oO
y moduteg.
P,o
blto<o.
rgeirdia.Sr
(a@co.&vc,,45 . coro
pL{_bti
crrbere
shcd
.oS
$cr3
8fxing
e.^
Cookri
vietL, dlogrom i -
Aop
'11^11^1'
rr6duleS hrt
6p'jry
5gt'ogftatrfrd E'65
+)
?.5(Gopolible eorrb .hrr'o
3':r ( tlmParble lDirb Jdrl'st )
3. X
cafioD FrarritooiK
ru{
t
l-ut
APP)i
Bt
OpeoSource Slrrl
r)6
6 (oo&rte6.
6 roqicrr
Cofr{-Acrries
5Pilog
e'l
Ov(
vlei!
Dtagraro
:-
'-/
tt
cot"
ff_l F.]
(nvcl-&rocnl )
E@
@@
t-]
---1
lPc'ftletl
lsttA"6
rrtl
flr""-*""t-I
Aop
Tesl
Dod'rle
JEElrbd(rle = Srrnqg J'. x Conttrf
{$.8 e'x
ftntry
e)
tr
wcb oodulc =
5fn rg
COte iS
sptn3
DAo I
$e
base
-gal"
("' ol,l
Ottct
Pn"^
d?$
fl iSc info
6PnDg
4'x
"
at-bl4vd
roodcle
?r,cdgt e6
ob,sttcrdc,n Ld4cr
&ufpa
oYl
plcrin
Pc'lst6f(nct,
trd.be io
lo6ic
:>
ab6rr1cHo'D
:h}et
+hbcrDd^t-
-1
-'4 4r'r
Ob
;-
lo
'
VrEb rr,66odg
---r^'r
c,xro
fra-.
''i5
eoorl..
CorffitutuCo'ble P6"*'
OfPlicadcto
eprlns nooliC&tlcnr5
rrnFc a^;'n
' '0iueD to
^
shru-ts c4pD
JsF
cfto6
e,<
'
--+
gprirg
c&nfcxb
llke
r*etprise cr{Pn5 ,
H'."
6curi
-lz:
is
oape
e'5-b(r"e
aoi
and
&*}ap
O*er cl'tPucrfiona'
And
@Bcrool
rrnre 1-z'sec*
fbem
6t@
>
\ dior\
Zs1'rtogz'5 -b6rne
oatirg
'
jctr
co'nPrctro'de Se'flice5
tqrcg oo a.v
Oc.rrlcLle'
cobo\e
{c{Y4erLl-g rhe
7\ u u\ jaravrtn -
and inrrfucc
-.-t-Ibe crasses
1#'o1[l
'
''
CcFe
z,falwt futw
--+ (stro$
AfPnS
Distrlbcrrcd
opp)iccfirD6
--+
ana etc"
lx{ollc.rl
J|19,
Rllar
EoB/
JNDI,
terhmlogics
|,1;dd
orr roulHpla
crlamadlco Ler6er
s oP
5-home >\clrrogelog'
cornroons \cc'noYtoil6
sPnoX'ia{ us5
fie
-lqB;ng
clzrsses
'J
P;re
<1 Y
o* t*t"tt:
Va'do&S vc-6g6o5
op 0wmc'>t-laad"t
d? &;'n slt'
$prtng deffrnric.rr:-
5prrng
"
ard
oll
-+
is o'
&uabase
6oc-ry., l;h,
O1:eD
-trx{hi-i
loo6elg carple
Find6
of
ce 5l('
rrEao
OPcsed
to pY{IarDrrrls
z.s1.lrirg
bome>\rrc
b'r-l-
"{?.;rd".t
crnd
Spti.g CantarrrrS
aYe tlthj-&cJghr
Anttlinar
NolE'.- Servld- Cctnfciff-'r/ J5?
C{plico$cIn
o?
@ resO(-trces
conkP &rrbPd
sPnr5 oLpplicc!$crq
f6rt reollured
*@epr'ng Terlno\63 \5
Ccrr4r-"crenf5 4ve
rhe &gree oF
Aye
telSturl3
ood
163 1o leaxn
de{nden%
io
less
loosetg Ce&pled
dq'e'"deT
-ccuped
15
)s
c- Cc.n
'
Carnponenrs
rnetdple roodules tu
inlqmle SPring
'
Cenlarnert
coirb
4d
C?u
fda'{cS cct
*rn
uoe 66;rq
e3 rk
,,J
ccso-{grtonj/s
tFffi tht
&trnPonnj's
'\)
6ltrr' rozoos'
o'rb ffing
Q qxtq 4p ot'te- wnwas
r&
ctasges
use
cJr
cc'obe 6'aivalzd
3Pn'6APr
trirbcr.,-t crsing
rneroor3
c4prirafionS rrrrckr
{,'ti"3
colrre exauht^$
Degree oP
be.t^i5.trigtlf
a+PD6'
rtrl
fetta,o Pre-deFrrd
eLt
'
lih-f-craflhJ
erlr,yrArfrf|, Berorrse
fcl
ang o\^ee tU i"sr creodn3 *fil6
IF
fo derr-loP
TeaSooS)
A? the
el orierLk d
afflicc'fion6.
->
C.(5p
O[PDcxrr
d,
Coe Cao
ule
garheJr'
appbtatlorT
likei genlf5,
de,etop.qg.rl-,
\-.
+cbno)%ies
ond
'
\
-oc*'rer7.d t'o &elop$S$l"amr'lccitlano
enc&iliog roiddfecor
-+ Jt 15 oturcr5S
\-'7 &xvrceS \ire 6ecrrtirS,-IrcrnScrclicro ffror ctod erc'"'
to ofplb fut'
BPr'n8AoP
\J
q
**'htd"q; u'ued
sp,,ng Fovi&s
roiddlebrrYe fervicgs
\t-z
\,
neLo
-Th)s
+ Nh* is |tr
clePrrlenc!
...---+
on
6Pttog applicarxoDe'
as
Aat{} or;ented
ug' u
cleprdeoca
3re'cc ulLo
bl.o utq!
dipperencc
'
od
deaoaa4
toolru?:- Rescrrce erpliciYl5
qorhe"
Irsec-rlc'cr
9'
s dqzrlet* volues
\-,
\-''
E90'"- ip srrdcr.t
kpendcn$
ffi5 q4!9-ry+-9!
lmVtp
oh'trcj
E$@:- 1e ccag coe co\lect utagjlo\rc
\'./
ih"',.
rePerence
\lccil-te,
o
ktxn, JNDJtfttsr'U
Degmdent-3 tooLu-{'
\..,
.r-, Mvknrc(ge:-
3fr-nd Some
\-'?
shctild
qsecrt(r
D,5crdvuoK,-te:-
\"/
V&rt( ctitizing
-.-+
time loguhc,r
it
dqryt'*ttva-br8
ttewr
\-..,
Cct)P'tntlm(
kfrndeouJ frrtrctlcml- ffre urclc-tloging ee.rv&r OrtC*ttTAnU( Cw) PfLo
tbc rrsccrrce au-toroarlczk and
to
vrrlrre5
&ssign5
'ltsffr!
Ccir) aPec^at
v.
$nornicoila.
in Da..drrj
- &nrtarrcr to{ ) Se'.\x [d)
-)
Teid.{te'
crrrnorcl)*e ""a"tovnX
to rt-e
pushes the vcrtrtcs
focLinver5roof
Jrrrr'ticm forsoauea c6
Qunrrrne
[tl)
F[(r] and
etc"
a----1
r$::P
cr cfi-use is cofled
i;;
ccrrlse nz<ric,{
Depeo&ncaa"ri*tlon,
Artvantr,Se a: -
d.gndenr
iniecled
the
use
Can
rsdlyce
qtu:'tg
ta'i|wJ
di"tt*l;
Volcres
o'r.lu**g";
thc- glrde'{IcoSin$
nress&rH
e'n'vlr
uoressonJ
s'pt'cts borh
--, 6o'q
on
0-rryd
iooF n 4
de5x-deng
6p'nog
ogpliccorcrrc4plicdl<tq
A Fte
-)
to1)
o'p
fr%rar')
&p/-* oT;;ff:"
l"rtno,t d+-&"fl
.,nrcartxs ate;;t'"
)ogt 8'$
r''"3
gn*lFyorn.,-@&
1.vp
ll e u
vdJ-a1es
t6
an
rnfir-ttco
&
i8*'t[I[.ry{
J:t:J"iJ:'f"""*:*
(live lvtu."as offictt
1'1'--"-'->llelel
>
\t
iun+el
logic
-------> prcxnrctaoo
-+
-,,>
dnin
lcfJlc
pe.cisl-cnce
----+
OF he olpricc.rtcrrr
loglc
)5
g-->
C--rc'rcore
-
frw,.)
*--r
u-gfut
t4'd
ii
Jnfr$cttcrn
lqic
rrnfu-
(coonedi";5 b5;a)
c
Business l-Oc;l
elcos
Dc'J.Bc6e
on
opt"jrtc'ns
corzo
D --trytJt
trfe R-+Pead
'- (,sclctt)
G&u{)^
'resat$ c4
Ccynrrols
Ccll
aod io v;cd
-r
JoEaIc.Ho'd' Lrgi
c'q
Cl)Ke &aL(t' ri
co'teA \&cayce.
the
h rn<
{*
errd&scr, to &-{,pPi3 to
lnprs
to apt}cat{,au
\PPll<tha
o44[calctn'
iSf
> ogs),.tr
RHrA?p
-=--->
(crnrrotrer)
[vieo;
t?/o:J rols
Bcan
(rroaer;
(rcrnrrcrtler)
cvieul)
'Iava
(r,rodet)
(nelcl )
t-
geaclcarr.lP --=:f)$s/6
J* -----------> fuvttt ---------+ EJBisrorrBca. co"'P'EJBEorrrg
(Peratstcoce lo5i c)
/ ,i \
(f.roglc1
[c')
( rrvle
:--;
jsp-------------1 Seovto
"ana
Ja'{a
(a.toei.;
app)icoftcrl., tD
rmke
lbe
Pefsisrcnce
-@
----)
[o't41r.1
l-0o"**o
lv; tc)
@
'vap?p
Cv)Cc)
gPYrqg
A0P
Cornp
---=)
S1r".{
Po6s;ble Techno
($
lcgies
-_--->
gr NP +
7
o( vieo kqc'(
Jasgcr ("&frrts
/i e.ft'ts
i''
(6rs;sttnce logic)
ng4)
D^o [uE
I
"ae"l',u
(k'ait.toce 19t1.;
- --- - -aDoslto
DAo C+tibctrpfc) - --
pnofHibcYrerc)
lg
f;|ltt1-
(itIs,'sKnce lqlic)
jsp
ve\oci
trt'rt(t*'r'noo)
rDosltr]
CRrsishcnce loBJc)
*fflel
tog'c
tqic5 c4 ttr-
DAoctos6(Jruc) -------------*Ot
--=--
cv) ct)
fte
JEE
Ig,locJic)
(,r)
-ipt'og wcbtlvc
Orl^cr
'
-_-->
[b'toglt;
rnrdbJs-,vicS
a6 the
nrodel
6*',0
B*.,FG;-"
tv) cc)
&ot',
mMet
.
E
kli,i:;),,s,.1
[a'togi.1
5I&IISAPP -------------)
bgia
-r
Eresersu[-Bfoncamp
st'*sArp
LV) tc)
'l
(c)
Cv)
sKnce llc )
-4
DR s/to
(DsSble
Savref
SerrPrHt rer
PoSiUte Fc^rqecrrxus
6nurs
J5F
\,.tclruotX
Cocoon
Tc,+shq
Netf4vC
P:*rru
ard
erc' - -'
tt t-
r.onoloat.*
EJBfusstorr Qec.n,
Ncb?wiceg.,
JaJJaclasS )
Javr6ean ctar
, CteBn,
l\]ssrble
de6ne
ODBC,
hltrYmlt'
OUB
io
(rnsr*ffc( Ae)
"ouo
#*"ryg*"
comPoo<rr6
-loPtio\'
C'DO
igor-le
Stnog 9Ao
Qnng
Oer\
6nd etc"'
,rJ
HiSb Lernl
Praf$
Arab)
oinnt, s5P,
trctur e
tf
Srltrrs - 9flno g
i-ii brr
ocl
Tnrtretrlc,r)
joaer rcp"rrs.,. ,,
Sovtd( Ailan&rrra
5f),tn6 JEE 4p
[q"nt
e*,,r
L{ic ta+rf
PAsish.n(e
A?p,:
L}1oddDr,r,
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
ba"d
:-iFA
jc..,rc,.
6irPl-cDare aPP)iccuflcrrr
Jrrrcr&ces
o?
IW
tec-hnolo69
taFen
$e
errcoJrngr irnPlernenhnS
|ben
ib
i5 cCIled
is acln3 06
ct6rsS tbo*
Poro cto35
is not
fesocrrce
of
ce{ftQ}n Tahnolog5
clc'sl#b'
clos6
'
B la cc'ucd PoSo
it
rbcn
APrspec;$ic
l@irboi.u*
Gpplicalorr
srnng
of
Gs Ksc(trce
p'e&Rned
clas6/
\nwWs oP ft""3fut
'
FldrnPks:-
Public C )as$
T?si
"
Test
"
i5 PaID c lcrss
{3
fr]
t_
'0.*u
iu nor
Iest
ex
rcnd;T Sro-
is p656 116t5
^t
ortB.r clc'rt -
a------r
'
lef
Publit cl&s$ Test erKnd6 Flt*?Sctr
83.:-
7,
]*
* orr"
G)
rcr
PoJo dctsb
"'tesi'
'
is
Scrvler
a+i degr'dent
'
1.
=
1
*u.
clc155
Gprcoic$.nttt
Demo ext(rdg
:
-Y
,'Test,, *
Dern o
Pujotl c
CUsteS
rDi
'
Qerootf
5
L
.)
tclnologS
jnva's4'l 'Dtue'r
{_
3
"Joua.r.yr.r--*o'
Rr-bl'fc
t_
ta-brn1og1
'
so"Test" io
mr
P0J0
=
3
"
@
patrt
jo',o,\on5.
Qlnrnble'
i,5
fie
c(
Coreisva
' so,Tfsf i6
PoJb
-IbreaA
u=
t
\l
ilTest'i5
opls
clas6 '
pubrtc r]ass
Test
t_I
3
7
r{
i5
Test
?oJo clctSs.
\__
lighrffl#"
Pol:-
l.lhq
.,...,
61pe"'tlc-
as
tl,e reaatre
of
Cerain
kdtnoloS,
h.sed oppttceft6,
ElcroolPq ' -
innn
fo<
'[est
1.
/i
\---l
cms
rtrrhod dectc'rarl
1sg1,,
i$
poJJ
- @ int6ag Lrt
e^Erd6
.._,
Dern o
is
"Dcrr,o''
usar
*
(O ,nr..*
T$r
0xrnd6 javo.rmi.
t'T,st'is
d"l'::
- O hwft,re
RermK
1.5;
qnirnd
cnl-
''.J
Tegt
is
p1-1
" ()ecalrc
t&.rr
c{
" LoJi'
&va+prb )
rrc!
mur,lo
Feorures
'v.
op 6fx,og:-
tt *tT^
:"oo'u"** sotvtx)
-1t*1 i
it heoq t,.n6ruf & nrbservet/
oP
to
Srnn$ giws hrir*-in ,niddte.'&ye 6e.vice5 and Gtto*s
foarngecl ond "lhird Parr"t &+prla roildlooare
it
Seuvicei
coorv
coitb
*nven
.J
'
o{Pb t;64teeoaw
a'ot I nol""rl to
calred
vrerhodolq5:s
reo
gil/e,s
3i-n$
Serv
ics
' J
'.J
d+etoprrrnr.
provrdes
provicleb
hrltr-in
p\t,flto6 *o
rrore
Ppooe
o? code ts
c"ued
uoit TeEHnS-
cD)rb orbc,/
spnng c4pricorlcrra integro**te
like Staodabne'
0 Arr,*ou to derelog olr binds of c+dicofrots
(9
A[t0co6
lqP
pftserU-c.Ho4
rlnee-r're,
'\-/
n-Ha\
ft3r5'lstcn6a
koo-hre'
'
lqle, f3osinerslogicrc,.q#.
151.,
and e,e<...
axcFurokry.
@ pvta.s
@
copporK
M
p.asg
liEe
aftl
use.
\./
__.,
llodure
5p,;q
-I
Core Y16dctl8
->
Base fito.late
--)
deuelop
"B*l-'Fotr("3'''
apPlic&H(ms'
depnfenq Jf\pLhlon.
The Csrrcrrarc
Ja1q cla,96 thor
annotu$oos
is
Crnggured
io Calted SfingBec.o.
Beor,Focr.rrg (anrerne,i
c.r
-F[?qo.ruCtcle oF gtucn
5o?t.nr
TUOLTTCe
Ltite
os
and
;5Yoc5b
furlng&an br}
eiro's
JavaBec,n.
ti$Mrcel3l'r a'nta;nevS
AppricaH-Ccn*lt Cmlainc{
CoDtcdner i3
Springosnftgure.Hcrn Bre
qpJ
--, sp,rng 8i!es 1(oo boltt-]o cctntrdner
(!
io
( prr
oe qnrrrg
Jrr[Cc'*er{- F'oc[u]e)
ccoo
-Yc'Ye coce oP
75q c':bote
i;k
L B;'*
ro
ded.)
6sb
3[r;rgconk1ioet6areguenpctft'rrn$trng&onLigecXtterrrarriScrrrnto"dtoFnFoDrrrndeocg
-t
ttot
implernenx
&.1*",1,
CIAS5 ir,r?ler[.f,nli
org,rrrcrgftar*ocro'
-,,,->
-,
=*-
C6fl
ft:clz,u'
fu"AAG)
knf'e,/
cg
f'rc>");
&arrFaaf.rg
To cctirictK ,h.pqnrwOr,r.xr
0rg' SpringtrrmeoJoyt
*nt:
ccrnt3ioc,{
in o&1
aEY-
folre""X.,
Apnrr(d$co Ccrrt"i
&rr..X-
Fr.
Ctx = nelo
-t-
1,$priciax*Qltre* r('<sp,'q,fu
B,iy
+
ilppt tcanonGnfe"
&train
heorX
ctCrCSeS.
so, -Tirt
ue,6hf &lvexs
hlr
tPdn$
CotLl6-rDe'{
ore
bectuti
JsPCc'n}c'rne/(
tltigM
bi
conlz')ner6
CcrrLfcnrKrS
fupffA.rtfooG*uk
Co.toi.rrr
c(c
&!!lcf
i\cDv@K
Cbnfcarf'r i5 errlpncernenr
Cooidn6 tt-r
31rr'q Cotellodul. 4?plrcal'to',',
rcvucr.rturrrrS
BeconFacro'i ccrnldne^/'
-B'o-'n3 $est6@'
3)
nln roethod)
Spring lr*ofo1e
-)
--4
ib
can
be
POJI
taFe
ibi6 oPHdnol \t&LtxG 'B't rtcorrrnJed lo
_J canrcdn6 dectc'ranoo
-) ocrb os
-)
cr
oP B'r'uboctt/u*;li$
method's
dedotcr-Han
* kJu(tl
a?
!r\+"meet^
Ll\cnt d}Pn.@.fict"
"'/
.J
Sf<,,&'r*).
_.,
Spnog Bean
in
5T'116.)9
Cooeguro$on -te
a JtoBean
..r
mbocts.
-"
Ccnk(dnS
meftods, cmtruckod
to
Qp,lng
inrcrfoa
.\-,,
--)
CdnrcdnS
artt$
rrcrtods
"')
Jb
-t
rb
Le
Cc.n
can
roethocl5
poJocta55
'
(o) nan-{tSb
clas5'
'
be prrcb$ned / c''sc"&Pmed/*'tno'-oj
s-tppricd ccrnc"^o'f,c
Sprrog
l&ans
Xm) enrri$
Co.{
rrr-or be (onF;guved in
B'r*rnets Logic'
ffrnngConrgtrmlron
fftt'
enhAeN
t+lozlwts
6Pfio9
ch
ftle'
.- +
con one
t/rle
&nlc.ro5 ft{xctogltilecrcrn/
loc reLrred
.-
-+
.-.
--+
Chn
be
de^xfPea
ei*rr
based
on
dPPS
irErua$(rns
Cli(nj APPi;cc*ic/o : -
-.e
.--
'---'-"+
":-
----z Get
Srrq
Bcao closs
cjaJ) &rsioess
tr'O Annot<li.orrs
'''>
ei$en
sRciPging *re
drrors op resurvce thmugb xm)
to rrPlxs undevlcqltng conknnc'
-t oog 4ft1gt.prog7
trH
Olj
%-
fu"g O"tarrn
Prre
' -'
rqieodcrn
0>''.,g Sq&ff5 brgp.e o? Dpendeng
t)
gttel lnierncrrr
?)
Gnsn""o.n }qiectton
(b .rsT
3) Inrcrft^ce JojecHcm
(b5 impternenllog
Speqal inrcrftrce,s
*S5ertclrelecHc,n:
"
@n &o.o closs)
aP
Sfniog cc'u'taloer
oq
6f'rloSBean class
outoroorico\
.v-.f_.)."r*,o.ls
t'
t-)
3rrXrx
csoS
and dSna-allfl
tocosi6nvad.u.estort,.i,ornnt,co(rronrbr'vaniabtcs)oP6r'rnSkanc[!ss.rkn
iblb caJod
&rl(t irr.rdot
.J
Pxample ,5ternrio
'J
&"n )
ll To,&o.,' iova (Sr"rng
ctasg
lrrdic
-lest&an
s{.
/10c,n ProF{trl
5ro'ng .165;
ll
v,t,ire 5$Xxx
[-) tuPFnftiT
&rtcr r{eulort
I
tluS.rosg
=rnsl
lloloir.
0 mqbods
"''
3
Deroo " xm
<bean6 z
@.rg
Wy,rru
coo6garc+lao
4^
ll.m^ Irlicdon'
zbedn
ia="lb
L"
ia
4PmI,c.q
closs=
Tesi8eon'>
o6rt,-. --IEE6.r,,.s
narrr
()rt\
'
Vrrlue = hello" /^>
--T---
=''toff'
4lkan>"
I
L> Vattre to '/"
f-s.*p*n*g
Gnr.rtrrr Crealq5
Coo
ni...ra
;a
clc65 o5;.+
Te,g$on
"O'
1) beans>
nU $sc,6
fu
PgfS
rnfl
SefftrfnJcrtcm.
fhto,r3h
on
iu Perft,rms d.a."d*i rnjeulcrcr
c'hie*'
if Ctafe6 Spring{fuan clcrsb
Coo{cunerr ir"JecfiDg
Lo( rDcFe Sgong
otzrt, RmtBusirgs r.rbi
projeuS
li\ze
@
Ccrosfrucrr-ry
TdbcG'n*xoo'l
Oql
-,
f,dbcbtmt
fqleOcrrr '"-
uq'b
tb
o$a ond
fo
S?edoi dqje4rs
d Colrlshf&o}(If6
Perarncrevize
\rl1ocs io
Qs6i8n
8on t"06"*3t
iqF*lcm'
&rcr
nl'rr^e
iq)eetro
rrg
raveo
plcae iTr'rrcd''allg
in1ertltot
Canghzrokt{
cr,Pte'"t
*t)
'it is Calted
Ste
my i0
dzltt1 coifi
taYe6 p'\c,a
Ben )
[SP'rog
Frblic cldl5
TestBeon
'/f$ean?'on'3
Srrrng rrs$;
fl
ltraretcr'zed
Ccmsrruc,rct{
g1rputttng
Gtnstr&otrd r
6P$ngBarn
i-
il t^v*r'.5avct
c lors
obFet C<Atton
cJcrsg
SYnBan
oQJe+
(t'cnhon.
Example
anA ere-'-
Ccmstrackt
iqectic'nrt
c-laJs
R.ouc
TestBan
C$t"U '6g)
= nnr$ )
ft;5'rosg
\..'/
/[u'r";n B'nrerbods
Fbitc Void brDrt)
""
^^ - ^ uJe
tos3
'-)
,.-J
\--.,
irte
\J
\J
3lt'ro's
,_)
fttc )
Ptrno"xw-,\ (sVt'og cP6
zbmrs
zboo
id ='
ir_,
tb"
(
L/:ylrtj-tvclr -
Spno$ tbn{-arrEr{
Spnng Beao
ProP'ng
!,.Jkn Srnogcoolcurrt
rbe
$.
anJ
gru;ng tbe.
-I?srBa.n
to fton
%, oah*,tng
b5
-',
l,i
lo crssi6o votrre
fo
("nt");
&on;rrrp"*iur lik-e
irs
rnroe
)
-
d.qrm&'nr
\--,
k)loe
\mJ'ues
'
CIir"s
}iss{gn}ng
in scnS co"fttuxonl
propr,rtes
t-'
\hl-rca
ohjech
rbe.
to av(d
bdr to rnsg
rne
Prooa anrg l''r otre ti
'
sptng6ntcrnar ci-cLr-es
terghr car"pliog
Ltss
clr*s
)5 activc*ed
L-pccccrrn &ns\aitlrt
\J
lg'o
4lbeooz
t;::
\,
Teslbdo >
C las6 =.
"t'
\,
'..--,
*:-r;
BtanVDf^'
-'
Narniog Convenh'crrls
inlcrftrce
X-------.> 6fxiD0
Dqroe
----;
XCfu.xmr
XCIieni-
nt-"
C,tu* A*
--->
E0.'
af-%
-le5)
TestBec.n
-->
intc'ePcoce
furgBean
rrrme
clctss rrlYne
-+
16t Exc,rnple A{plita.6on
trs\nt
Sg''ogCo'e rrnclule fo
oF
$ecq^lttctoq CcnlcrineT
clerrrrosl^rcr-K &tt'6lruc&xc'o
'
as
Srcp-r:- [tswlop fte crr-rce cde
shc(Dn
Uetou:
E\APP5
/lmr")o ..tava
(f'Dlr)
Public inwkce
J
(svt;osrruruft'te )
Demo
c'n
/ P. . llg tarrto' ftclarak/
(br'lo9'
pcrtrlic Sr'iog gff.arwi5bl1s3
.,o-.)',
ilD*o&,,.,'java ( Pofo
iro'rfrnf ia.ra. uHl '
cioss
) (srx;ogBean
)ti
iroplerrrn'ts Dcm0
Se*c.r
iqecrLn
ku
s , ro-,sq --
itl
*t)
ffiD l
/i
;.opl.rocot 8'mu-bods
3r'r.,3
frr.blic
t
fJ
ge,nerorcN,sr'[lsg
gtt curr.or
Gr,rdql 6l=
fl
(Sr''n$
*-t )
CokndQr' g+Tosrraiocet)l
ger curren r
Nisb rosg
1p([e= r>)
t'--,
Ytl(lrn rn+
lse
if [he=lc)
w}cdn rr+ -->
else iP (hr=
't
\)
Cnmd
APr<^ooon: lnarneJ
rc)
lse
ftfL.YD
f,venlng et'+name
l" rname)
3 //',*,*"a
Jl.r^,
., 0.,.,., o,' I --
:-:':i
>
z&at't id:"db"
^ll'
y,
:i
ll,''?,.'"
-; *':, ;:i:,*T ;:*:.
v
-hrme>\d isr\rtlourres\
5
coll*
rtri
co,.-i
2lL{di.>6
ZOrrA'rr
Abecrn
/l&aoa>
ry
Z
cla56--" ftro'o8eao'z
w.mc
-*.m53"
-> 'lz
Vott'e ='huttO
DiD
\'
\-,,
-> db:netrr
DrooBrsn
db ' seli'153
?ik
DrrroBqr,(
1"berto");
);
i
'J
'.j
imtrrrt
619
iropr'n
tgl
irrfrryt
' hrc'r's'
ctl
"rX,t*n*"mecrrr
DIDoClitru
Prrblic cl6s6
f
Pttbl)c
S\zLltc
,,,16i6
rrrun
lsrtrtglI
arcss) -----------+(}
I f"r"
Spr;og C<rnGiscrrci-l'lcrl
-R.ao*..
F;teSg.t
/l
res
--
XrrBaqFo.ct-"rq &*rg
Fr"Sr$.-Pest"te f"Dtt"Cfu
neo,
Aeuvate &o.,Fc,uz"g
=
Pre
&f)EJne-'v
n*'
KnlBcdnFc.c-ru'B
[rc);
'
n-r" )
/lbUpe cc,rring
De."o
boU3
fl c.u
Brne't,od
Srn"g
{#$
"""'t'r'$'
oo oi-"-t t"tus.,;
re'*1fr;
I
s
srcp-t1}
rrod
tbe
4pri"u-lbme>
*a1.
truU;l|esxl'nr
t+ s|)ring,jc,{
6Kp-s:r
CoroPile
g^ecu.rc
the
ct;cnt a-pplico*lra
&r
Nhrn
cuivarcd tbe
i5
EeooFa$otg cor-rr'dncl
Gre co,rt
be
verr
Pued 4
usi"g
eotoeS
3M
trrnr Porser
S;tPte APr
P..,r
6pt)D Ccmeturafic'n
oF
xr^t
done
"tag'' PtDrrntt i5
Gorcdff-r Ccl.t-r.s
perzm
in
boscd cn
id
SPrrngCFg B'rc
@-Param Consl(odr(^
Since
lmd
se11153
zpmperrgz
usjng
Corr"gored
['hetto" ) rrrrhod
ohje-of
un D-oBeoo clas6
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"
!gl_E:- ger&c,nt)
if oe uraot to
merhocl
is rhe
prrtde*ioed rnrrhoct
P.or
(rt'.'ar")
$eh the Objerr
in
{3eanFrct
"y
pred;fined Clcrss"&.e'"'
Ce'rtctheY cue erre rhis
tbt
ff;**l
lftrno) o$ i
Ldr rrusl tu{,eccrsl tl-,"-'*befu bobrl =
:}.1,'"
Vcr-riab\e
*uf
k^ppenlq$ \oecc.sh
Sno-t.
reRrs irs
sr.l-bctass
o4iet
o!"
frttng
bo$ =
SaSclcr\6
(krn6) pq.f iS
h*,ng
plcrced
iD ctrv
aPPng.
De&ndeoaJTniecttc'n cmll
parorrng
$pvioq Grta;nc1
crm
oajtts
those SpntEBton
on Sp"n90"""
'n Depo^'de"9Iruecrlc'n
monucrl'l$'
doss oqpas ttnr art c,t..led bu P*St'-'*,d
la SpdngCfu [tte
Staterrerrs
he'Ael
61 c}ema rdotd
reratcd
Dm
ke.Ptog
in wb'xml
oork ie 6pHonol
'Ilzt mraos 3p'rngConrruot'" co"
pa&T
'
I ="*:ffi"-:-:':: ;il
-> Nhto
BeooetrcT
Gmplew
&rntc'incr
is
rnrrn tcmd
r\ast re''""r"ri3arftprenr*'
acJivoled
o$a*a, Tt
dq-d"*j
LatdrcS
@e
Socs
t()
156 i"otu'l'r{
ib clsesn't clcc']cs
Qn-X
onlerra anJ
closs
gp.,gBeot,
cot0eJ
'
ExamPle Oppiicotlon
&mO..fuVCr
&rncBeon
'
16lozl>or3
OO
C/Jnt;l.6
Saroe
java->
uhzrl iojecfircrr:..-
0.6
&tw OA
->
prev
icrr6
WL\riaQB
ol(.)pD '
oppn. Bll"
Odd
Pq.blic
tbis. rns6
ro53 l
t'
Sgsrc. . ord'
l-riorlD ( ft
"^&o.,
1-llaram
1o'l5ratu<n
"
))
DernoCfu. xcor
ZDftiYPE
LLxo.oS >
zbeao
id --"
ZCcrrnr-ru
db''
clc'i
="ffi*n''
61d..s
-(Y$
value
:'heilo" / >
zlfun>
zllv<ar,s>
DemoCticr,t.j,av
a ------)
arrE,
as
Previdt''$
c?Pr''
zbec'n> Ffl
croder
tags
o.n)g llxwYn]>
t^lbne ccrnhgrrtng fririo6Bcaq fo Plc'ce
tbeq6p,rlogCoola;neiuse6O-PaYarncon6tr(rol-(dP".6PY;ngB&nct't:'Sin'lar'fiat
kan prro;r"tt<:
ettc'rjnieofion'oo
&t
or-*'oas
--/
6*6ru1ng
/can> tag
fteo
crnlS
Lcansftuld<lt
Ccmsnucrar
Gnsrrucr<rl
J-41e$ton
-'
-.
\
4:
Srrnn$Gotainct
cf,
&
tu
crrt
are enabled on
spviogBrao rlassa.
So,"Vof..eS injemt
fetkr lrjlartorr
6ertc;t nrerhoc.l
bY ustng Pc'rarrr-Fcrized
ber-arle
Consmrcfcrr1'$ec,tloo tDn\ be ggctriddeo
TO CcDP,11re de{bndenf-
Value6 tb
--+ To
pofr*ies
;P
Orr Spriog
omBfaye
ctsc.
aoe SPdog
Beao
4a-B-z 0'r
&an ctcss
cfo
Sping
>
Bre.
clow
class Ohj a6 drlrdcrrt \*:lllre O*:r't Synt$Beao
YeP
;s
in
(r;re
afr;**e,
Bcr.nCollabrort on.
Erctrrf,le Applical'loo
on
7 */.e
Zrcf
(BeaoGtlat*","*ttn)
O-lfri&.t
p :\ Apns
!---------+ SPrlog
$sa
F-------"
|+
.)
Demo"iavc..
DerooB@r>'ia\'a
/ormo ..nva
'rrol
DmoCiicr* 'iavc^,
(ttat)
lxrdic $rr"g
5agHeiloC);/e,,sioe.oflerb,ra
$
l/DemoBec,o'
irol-rm &va'attit' x;
ftrblic clcrss Dcr"o&ctn
iroplaroe
rrrS Derno
//bon Ptrt,r*o
,8w6 wo"7,
u 5erdeA ntd 11cj5
Prfolegr(d cl05!
<-TestBero tb;
profl,r.,es
bold ohjerh
lUpc
s{prrio5 g*krrlieu
Ftbllc
{
Vold
xrA6efinr
fu
crge)
,J
w't
1.
t?r.tS.
Lb= tb
("
3'o'P
oxt+A' );
DcrrpBeao; sgTbCJ
void
l2rlltc
( Drc
serD
ilris-d = d ;
5.0.p
t"
proogean:
6rrD(, 'l.th'a"):
f iroPterrrnt Busirrrsllerboc\
llel o( )
Frbtl c Sr,tng 6ag
t
*'n
o3"'
'+age *"tb="+tb+
'l="+d i
&
( l src'tcr"erti'
pSr'rngtl
closses
rhe
r' mooro?
obs., i5 lx.ssed
^rr,-'lt;
durr''
Jo dibptc* obre*
ll
tesbloio'3ava
1o
5'O'P
toSr';ogc)
"*a';
( hrrrlerrlfkan ru ftndto')
ll*on ttrDr,rru
Sx,ng mbS)
//nrrt
Serttr rncrhoct
ofl
6errcrs'tieo-rtcryr
wiL TwM,>pfu
Frbtic void cftNsg( 6"ng
fhia
.rrng
g 'o p
-E
= 116g I
( " T.rro.o.,,
1
J
&
vetr,m
n'1s6lgean
.
rnsg--
o.^r
tolt\ be cveoaAen
Lelt'85t0 ;ara'rang'Qbi"o*c')
-kttkoq
pc6\ic cla>6
bc cc',e2
ro6vntg( )oritr
" 1ro5$
aft
tb" prrrpttg of
Ohpt.
<l__ h.oC%.*rrrt
z-&oir6>
;lwoto i6=
t'dt"
Tavff) a6
e.,n
{lccq.._-,
__)
.r
clcob:"iova'cr-rit'Dore
J
J
>
L(W,fty
4beon>
J
Z;
Lbcro 14='\br"
clasS =.Iesi&-aDu
&v
aor evt
(flt't "'-'a
>
\-/
bon
>
\-,
Zbcab id=''db"
z1\opr{ry
= DerruBon'>
\-/
.J
clcr86
q1r.516
zryqxrrrb name
='tb'
te|="
t.;'l
ZpvoPhr3 nd'rr.::.d">
lt-,-or
yeP="dL"
rLr - ev lz
'
''
lz
u.aa'-_"dt
,,^^l
4prnf't1 > -->
A*ars>
a5
13r 6ppllcafion
bd
Gdl
S*iot
,
J"
v
\-/
il *tCiitnfr.iavq
Scfqe
\_/
resu#
bobj.
() g -rd-e.l ;rts<odo|J
o-Hetto
-\)
-)
\J
s0 He tto
();
\,
)'
\,
\-/
\v,
\-/
rclo>lni13
Jdbc ConoeatDRrol
;-
&tflr6.
in fbe
Crn
rt'rga:icno {-oo
Jd'bc a:nnedoa
dlur.
fuiasa,rceoQjccrnprraerrrsJabco^r,ecrrorr@looc|rLiccank[r:edtooccels
ildbc
&o-
Cg.,nectlo'n OhjecfS
Corrnec$ao (-<r*ol
**
'
6n\
@ @"
Jdb.
Dw3;x,urce
fupued &va
o[l
cld35
CD
@@7
is rorhiog bc.r lt is thc o&t oF
an&,rtgtog
Jauc
&lrt
(: )
fi-bc funfim
')
are
&iveo C lassNar^e
9-) 1r{l
6)
trselname
+)
W6sro6{ d
le $e5
proqnhel.
@:l % atude
Example aFlicaH(D 16
Cqrrne4tcro Poo)
r1leo idtx-ca;rrn:to"
to
our futs8eo',
ohje$
Ecf,cndog .l'1ter*lcrn'
E:\
ApPd
f--------: 39rog
F-----r 6e6e
t----
OOoetatioo'
DB0penanoo
Jdwce
iavq
(Sp';ngf'ucr&ce
&ao java
.
(6^= t.c.",
(lo,rr )
DBo;x'"rro'n
ft'btic
(
ftm$,ro1(inr errpto );
& Prot'. 3o% Rr.r,Na-e ( inr emenoy)
pu^bric
IWO?"ono"V""'ict'o
c,-rri'too l'ftrrfta*t"+
plblic clcrsg
\r
a"u
ioplcrrrrLr6 WQturau
Dfy7ptan,"o}edn
(/T'
ilB*n
prDou/ru
Drr"&ot"
//i^lr'
,.
d6,
siwt
*'R$inJe&lolt
'to
,{ol
this, ds --ds;
7
d
firrt
e-nno
brc
6^"
t
\,
//9.*-t".*-
Car)neu6t) gon'-
fl ga e-e
ds' gerGr>neuto\
()i
'',*e
P5,setJor( f,e-nno);
l)
iP( re.nex rC
FErrr
.t
= ,S$u6f-nX(J)3
.t
else
,,Q
Yhof
fetr^tl
tealtc
ool *cr'nd i
Ddrne;
lt
Ccrlch CE (cpH
tc
04 e )
$ll,**a
pLLbtiL
s
' t#
sLt-'
o&
"
t"g
J
'
ilgu
,nreL*6n ohi
*"a
Grrcricrn
llgr.t
1o'
Po-
ds'g'*Cot"rr*rnL)
ps=cctt'
llern't*
rhe
1,trc"5
[re'nextcl)
/lt"c
"
ynpnt*"n'
ps"s.rltn fl,eroeno) i
&il-:
6n Pol
ev,e er't63
?"try.A3v,x*"*
iP
idt'Jc
rs
.nrN*Lnt,
("Arnt &t
&on
e^p
oheot
(,\
ZrrVnO=? )',
atcf,(Excpnon e)
a"ynrSz*lrare()i
I
d
tsfrqn
tuL)
\ltw*,oa
la^
zt
ftjcrtpE
/-Mo6>
-Lhf.:cro id=
"d-rdb
"
cl.r35
org
'
/+tryr'tn
wne= Ltll
l,
'\
\hlue=
'16*'flparul}trr'"
Wufir'oo.saha"fuu..e
*:Xffi,;##f:
@o1,J
bbo"''"
"6ac'.otc<le-t|i'r,'.
>
connetnan
@rturthos'y
z 16zl
o{l >
"
*^rf " lz
tpbry/{ry rYrme= fxLs(/cM - \tJrrf =" Hgu'lz
LWVltra
(Drrf
='urtnome'
voJ.e="
zlkan z
"dob"
z{ftaruru
tl&an>
>
= ffiOp'an ^g.onu @
&j
ref --" &&" I = u aweLrb Ddasok\rc
narne = db '
(Y
d+'
a1a55
tu
wn
|kt"Dn,pc'ry
z)Enns>
irnertt
orfl's?' leans'
imffi
clasg
l-l.6lic
.L
F"to'l
i0
xrol
' *)
DBognartoocticnr
6 v rn(Smng ..rgs[1)'f"'ttc,l"
fiaccpdorrs
llto*
SPr"ng &n
ftgurafl on &rc
y15
flu:
FteSgatcmRt*'..
Il hcnu"*c BU"ft"xtry
f,reSgsml2s
CrnrcnnLa
'j
o
,
{t',
llXe- Syt,,g&""
X-rBeonFa.r*g
Car.t(inc,l
= ( Dtfpi.n-arl ,^)
ll au
Nocnr1
' 6tfuon(.'dbg),'
e,wn"da
5grr.-'a,r'Pr;ntln (
S
(*r;;
u'P
t'EtoP 9'.la13 \s
EmPmr"e
+O4;t
io" + bo[i' Pa"r''NTeJ
s l[
J llrrruq
J lluas
ll 2 "r,'tae
It
Q Sp,ing.jar @
ry:-
jav d
log;og'jav
Cb'rnrroo5-
Seir5ccrra'ncr
io rhe a.bove o-44rt;rarlon
c.]-r srrAngLenn
c'\ats
= d6'
x) <Pu-r'fg *rrre
rq"""tJ
reP--"
\5
injeohog
" d3t'
dld6'
l-
os
@tal.o be Nritrcn
kr'n-''d-rdb /z
>
z*?
--"do"
Lw,,4I. rnrne
VLL-*L u-'
assarc*d' \b1n-le='l'5o
7" Fsscrrla
*) L7TDWLJ rEme
Lpwpng
rxifne
lo
TkJafo'rrc dia"t
l'
"
passaod'> Ltlnlr.u>
Cqn
zlorcttrt>
alsobe
*T" *
,l1No(rt'H7
-t
zlvawe>
lixot
cr-'nrti'rr,{
bX udng
--'.
-'4
" oy''xt''1t
Q.:o.ro.. f,\aso [o16' sP " cc"t
1
locares
Ht,e
$e
SpnSCanhg..ralon
-;
Oddd
hget+*r
fuei}ed
\s coued 8t"96*en'
io ?} )
rle Sp,;ng cfu B,e ftorn tbe d;*utrg locarrons 'jt'r
Parh l?e,icurce
l-trc,rcs
?oh{ t't:";,
rr'\
o?
Sgnng crg
v'j+t
rl&Hre
Bre P'*^'fi'
Class
.
.
Crg re 6,,"t "
t0 cLAssP^rtt
envicrnrruirud V"*c.,Ot<
f;'re's
Ercrrple
on
to
EreSgatcrnResar.rce
latienl A0P'.|,1}
i
il['r,
lp;rgcfu
lcc6tre
"_
'
$te
l-ilebJrrcm llesoa{e
fi're$lsrcra Qocrrrce
t^96
[0.
DelO
Freforrc-Q.ra..c"
ves ={rj-o
(,,t)
F,efor*Res*rce
rea
=r.,,, Fre5tr*"-Qcc.'"
('
..\\
.:
6frta5
tuft'*'
UdtiaDg cLAS6PAf
E^o"'pte on
ger
fie
)ocrrHdo
CLA55?ATH
or\
env'- '
parl,
:\\ k-r\\
r
l_+rrcdi vE
40f,5
Fftl
t**
S\d-)
rcoc.fcc:-
dr
db6d
..nd
to rhe
add rbe locaHon
rJ
t&niajc{
'
E1\
l-------.)lfp5
"f--------
9v'rgcP6' xmt
m$c0ro[x*cr--+ prolrr*ies
VarriaJde$
8rC-X1:-
odvorped
SLASSPATH
in
\n
tc0
-r:-
8le-il'"
on
'---------:oK
\-/
"
g\i&ur afPucr'ficrn
cu.rLrApP
Elocnp\e
'--')oY--1o*
E-.\A003\Km? ; 4e,\i6tlo9vctfurs>i
CLASSPArtl wsuaYae
use
C$55
pA"t
l-l
resurce
t'P'tTgfa
*,rrt"
)i
:-
tt-adt
\J
Spr\ngCo"rrtqurarlon ftte
^a
add rhat.J
k1\
l-.---)
E
t\
Appb\
> .i.{rr
rcrop
rD9coropx.c.,
APP5
KtnP
Sp'rogCft'x'o
cp
bes+.._ror
klb
-______--.>
eov \,anialte
in
is
ft
added
-------------+ 1'Lser
isgsKrn
luisdnclvali-res>'''--+
or-dltsZ
GPPn
Clicnroppl^,
ChSsPa*,QeSCx.r ee
Nhite ucruog
ott$
to
ChssPar6&sarr..
re5 =rELn
6priryEnvirctnrne(tt
Closspcu+rEnv
"
d)3f Ct,'ttnr&off
Glcoots rrc!-e8Gre
ladcrble
d;PPltp
kr'optugrlel uroted touse
Ond gjtri&,tt,s
Prcffr/tl fgpe
S;.rfrte dcrrrtrsPe
jwa'rang.5rnng
Lli6r>
q-rTtr$
.tc.va'utt'Lisr
java.ur,'t . $et c[tst",*es+
zlist 7
.ct.
z'e*>
L6'oLP ?
1rc| >
Beon tgne
Tb
asign nu\l
"refi'
LlnoPS >
E:-
or
votlle
t0
Seun p"og"ty
u.)e
/ndtl> r4
dfhd 5c4(
,'rrr4 r)4rc'r(i:.io
FB.+
L,
TO
ruorU (Ili
rb
CrdvarLe6 tecl-rnologies.
"-,--,#RT-'"ffi@
S:-39-.s77,
I'l!EcliPse
tgPe
#^i:d",J" 4zog"
'r:Dp
-4'
Cornrrrrcicrf LDE
gives TLrncot
verSion
s''ive'rs '
as fu;tt-in 6e\!el ond a15o fo cP<tr orhe exirddmr
ror
keep l"lSEcriose
reod
cr-r'r CornFtrci i
ln
6Kp1:-
9e
tu
hdt)
c-ode(ffiffiil
lKfs i
fire.
Qun.hrn
SKpIrJIYJ .
Mg Ecri
O"rrts bcz
i66erur-hrcrL'9
l,icencg
gi.bnrit
-t-LP" " tlte
co\-,rcb
narne
c,Xle
ap
frcrcic
g<rrcrJrtr'rr
o6
tauncl^ed
?r* b
opplicoH
ti.errc k
li.cense dera;rs
+S-f'tSErupst
dn
p5.g rrr..,u ------------J GrLciptloo f,nft ,,'s$
n-
br%)*
h
lr.
I ri1q;plLtg
'aDE
---- ::m.t
t=-.---
ok,
PlocduYE t6
@,r?:rlm5
g9:Ii
dcrcLop
SV."g Co'e
g,t+-ut iqlecrt
lounch
an
tlgEcliFe
rrnclule o{Pli.otlon
dt.t
IDE
oll t6irs
6Ptt;?Uin1
in
Bmn P*Y'ntcl
t|rf
'
&*x
hkxYslnce
-Tltr
A*" oehrr,r rlx
lnaBds (oil)
be
sorrd
831*cL+o'npbjerl
----^''--'
-,
SpnryTl &rc i;b,ern
=----nXtFin-l(l)
tt^e poje+.
llyEclinr<'------+&U tV"nuryMtikt'ld
,------rqe(c
_-, f]
Aop
.->
@sp'inr25---:
-xry)l
'._-_-)
D-l
ft !l,l
r)
' -
r;ghr cticl
Frbli
Prbl\c
j
.-
Stq-g:- 6tr
Nlc{d
Derrro
SUng $dlblloC);
,t.
fr146a
------r N&o---r
*
\
&too*
$pringBean clors
clxa crq
",t*
intcFrtce
chas----------+
Demo
cntrr+shi9t +o
lle,.on DrorralHes
iot
a|e)
hre
dt
Lisr
ft*-tc;
Stting
Cotor6ll
Fterr'me;
o'T*r-.
f'jaclede
&c"trua:
t1a.p
P*g*.t
cePituJS:
gelior
, Effi-.;_l
qher
tlsttl_cliclr+ Surrcr
---------> \ost'fttonPciot
gene@re &rKj6an'l
F[e{or alpit<rJ3-__l
eerlr-r6 r"crhods
@ovor;de
'r*',.
{
Sr'i"g
*'.,
sc'Stletto(
",oocl r'o'ruo$'
r'nam
" g*"'="*-6t15a
col
0{'5
Laf
+"
-t'd=
1 "ctJ. ='1ct9e
+name
=
"
''colrrs
ph<rne's =
lpbane5
i'
&'ru'l
3l).o'x+pa
,gg-
odd
ttrt*s
i:*
CunR6urct$orn Pttt
HcS
.--
"
P.,c,lln:.t
-'-' '^
4
*#::'
(!--
--)
De'rnCfu.x nn)
?a
-0e- rc!5
gpnDg-bean-z'6.^bd 7
{bons
L&an id=-'dt"
Zbeqn
l>
ClcrSS:" Dnc8ean''>
='lJU"
ia
cnss="tiova'uril 'fure"
LWWY\ ryroe=*age'
lpmpq lTrrat="6f''
lPr{xrry
lli6t
yalue="Jo' / z
\Ycp="db'f >
na,-r1g="frc"itg">
7
Z'tc|lue>
ofple
zi)valuC
/value> booanct
L"4
/lttsr
lv
>
alue>
hPno=-At"f>
>
LIPYDVntXT
..,
t9ngry
zllsr
>
AtisfYl"'>
oo) u, \htut
blue Avatutz
tl?voSttrtt4z
lww\
Dctrne
="Pl'ronei"
>
1Xt>
Q+7]t56>l LIvalrL( "
2yoL\ue7 77oD+qr\b 4,]f.\qe-2
LVcJlQe>
YtP
baa6
="dtJ>
zlk-r>
QSxryny7
ZtrrD1,tlrt/3
.D
tl
LYnBQT
t{)fr{,cnt5
ont
elemcM
lenlw7
c *:;7
[
I
:-lkthv,
elcrwnt
F(B..'' rq4rhe
z e$+xsturs
e-0omc'nr
z\atue> raff's\ L]vdtue' 4w
vdl"( 4 rtx
aolue> 0ava F<^citl*lva!ut>---:re1'rtgr$s
--.*+rn-r6
ri
Avaluez zlYal7
z)e4z
1eor'g>
LY%>
LVcr\ue>
|rycav--
tceP
"dt"Iz
zlqpAz
-r ro
r.rri1 .
Artn{t>
/-lpralxrtrXT
lprWNnJ
java'
>
-+ rn
LVbP67
b|t d z/ProP z
refr'ctonts a lVrap keq
v ="AP'>
Lk{ L,\r4lse
srr Usodl}
">
kt
ZPOP
--'ll lr lltrmboi zlwPz
LW;P
=" yp' ,
lren
Sang lare
O*'c.
"ol
$fl* h
\4J!4
.lwn'
zlprups >
4wr x,
zlbecrn >
Ll&Lo6>
r,ghi&'&q
gc
----+oettt ----+
/D,tnoCrt"* ,JavG
FJclic
{
Llltsb
P5
kt"nctict t
rn IStrrngl ]
args)
&arr".r'* knknDel
Y-'B*nftttg d@ W=oeN Yrr&onfuoo'X (n.*
/g.t SpnngB.on ohi
Dcnro 66 = lDcrno )h .
"'grrB"'n('eb'))
lllnnuon
Iw
5gsrctrl
crc,,ssParh
Re;oar..
('Sp'4eX'x*'
B.mehds
6)lst
cdrl
srart
")
);
SrPm:R,6|u.u+
->
e*o
ir.,
$e
Nbite rulEing
the
a?pD.
f)q'noCr;c'*'iavq
----+
f2trO
&5-=+
c
coirb
klss
l'
Lae Can use iova 'utr'
L*-hro1vniz* ' rc
*1-
sPecie'?d
i,63,
p_*,n"
norne an d
lt*rc"ard,
W'r'fo
$i'tngcPg'r{mt
{l^-
oe
6e66 anan
SfnrrCfu'lmt
1g
ctn
--Z
Ll.wryPEv.
Zbeonb>
zbean id="drd6" cldsb=" ot6'sP' idbc'dcrc'$rrytc'
4'qulb
rncoe ='dtivc'r
&Iue,''
C]as'sNone' \aloe =' o"arle' iabc'
nime='url'
.n
l4nps]ryx
lpnpo{fr^ rurn--
4prpr
4lw1xnry
zfoot>
valQc=',lbc
COorrrttonl'tqrzrrtr'e-c
lpto?s>
LPilP l$="u'ser'>
zltnp
>'J
n
tJnuft l1oq",rD-fokne
'"
oracre
"
OatD,,- iY
\./
J
\)
gotf 1lf'rqP-
A|npz
'-_/
6-ar,rQ \
-'
.gt*ttrw-
Sr c
\\
--) 'J
J
\J
-)
.J
->
To
&55
6inrp16nd
lin
Prghtc-rrcr. in rht
->
arBurn/rr \alc'es
&c,rtecoCe
of
aga
to
Il6E
--------rQuocrb
W3I'!$1ry4--
Aqurnenrs t4b
->
A Wtl6.^--. Yal r)
orgsio: aqstr: a'gstzl drgslo-rl
Vqtt
.{al
--
"
Qunccrnfi5tlraflon6 \-/
J
\../
J
_)
Gna.t.rctol
->
-a
Lritrrot
1F 5f-ogCo*arn<t
oq
Z6cna
lntcrcl -crrg
Bearr prorc'rticr
tlrn
ir is caued Cnsrtudwi\enn
la3
Zb?afi>
uodet
ccuru
lag QPecrYen ce
con"ntt.,tun
tDP*{o'*
f6n6rrctCt4 iajddon.
flmo.ictvo ---i
Exqmple c{,pr)
Same
ab
['viocr6
crf'P
Deon&ao.jctva
class Dro$*n
FdCic
lthrrrapslt\
inr
$tnog
inplcrnerurS Dcmo
fxDfr4.{eJ
aXe;
namc;
Prmr
saloYu:
-(
Pmw1c^-j#::licrorc
S-lcl-f-All
-----+
0K.
Shn,
refurr)
''c$e-=
{6pr)DScf,xrol
,-
ery[J.,rro c )
" + Salav!
>
<beztfr
There
in
Gnsrrtrcrz,r.
Alrr.arl>
zlbcrns:
:> Sirre
Ltrt\stLefur
- crr8
>
toX is ptctc<
fu
S,A&"n
and f"t
lnaranHc"tton
/iDoro Crt,"r",ic.uo-
Stoc os Fevidas
c40"1
Nore..-
r'uith
Nbire li{o!"n6
in
TP
cdnshra/'rdl
$er tgpe 4
co"n
&m6gure
&I''',et'l valt-t<l
ccmEffLLc.f{,t
rrr-rrt'Ftttts
eda*"1 ^
Jnd^
"!Lin
to
reso\wf fdenltb
-,
toe rped
Pctrarncxrrs
iru"rrloq
i5 Ltrt1p'e ttrrrl
fi*ndGnflguronaq
S. h^t
coe
cctn
'&to,b
CynStnrcfz,,t fqjel-Hc'n
Conlguta}l,crls
cot
'
E3'- ;n $Pn1&nnr
agcr
DroB=n
fror
{uo.oge
=qe;
Sl"r5 *'nt,
-Pt*
&tt'5)
{us's.la"6 = salqry ;
in
la.-
SrrnS&%uroicn
Z.I,tan,82
1bf0n
i6 =''db"
/Czrt*auxx -
class*-'Dk,-'o&.^8 >
-- 'ior " Yafute = 30
ct:rt1
tqfL
!J:-----
@X
LLantt'ttst$ - 63
l1oosrtu4ttx
l>
3t56'171" f 2
" YqoJ
"
!o!ttt'-tgF - &.ravo'tc.ntl'SmnS"
larr--
"
Flot
\t.el/ae=
l,
LIVan>
A*ans>
-> Il
rn
lFiPle f:tramelcrs
idcr,rifu tg,em
E$-"-
, t
*,arr s,'owx
bcded or)
in SpnrgBcan
ittt O.Lbic )
F+.
1
*ren sraan
oP Onrfrcr*rt GnlarnS 6orrr fure
D{rl}r6on
tt5'o =o;
*rre .b =b;
:
ttr,5.C
=C
indexes'
c)
roorrrer/
in
6P'ogCcnfigrr.*,- f;r.
Zbctn
ftrno&ao' j>
="dU" clc.5s?
in&x= "
LU{\6lR'!ktt -d'r X
16
!h"
/Ccfi11\1.lj.ru -oYX
1Un#tnx -cr\
tnde;^
="C
inlex="
J''
Ya1u1="lo" f 7
6eS
ho'ct"
lz
9d
+o "c'q
"ni
.vrilue='b
uo1t4='w"
l2 get to "b"
LllrrlnT
ltrc.osz
->
Jhere
la no
froviSl
<CsndnttlEut'a.:t6>
ei*Et
sn
lb
name
tor) Clmsrn rr<'r Parrafit'-rtf'{
irde'}s
fo
6nsrfltal:.i WaFfJ<r'3
i-2
-lhere io
provi
Qeonhoovg
tr
the
Frer8eonRctcru
bcrsed
cro
rDd BeanEcftrg
C.rn
orrx4
A(;5
*a q|t"od1
cd;urrrd
ds',$airrrl acfs a{
as
pavcnrcanlrdntu,
java
// ftrm8eon.
&Ift11. Ob f)rgvlcfls
->
afirn
okva
impon jaltr.urir.Drc;
Grrllic ctcrss Dn'o&dr1 imderrrors
Demo
l-br" d:
Fllrtc void
setD
( Dore d )
{ tr,.,=o,
3
B,tue Si'rog
{
..,etut
s'gblerro C
''d= " td
"'
//
Zbons
LWan
id
-'d t '
('
clcrsS
"
zl*ptns>
lDernoCPgg'xrnr Cchird
B'rc
1lag65
L51ea1
'4
="db"
t@ltu\
Cl05S =
mrne
"Pr668can'>
t)ban>
zll,xaos>
Clicnr.iavq
/nn.o
r(f)Fr(6
pblic
P
closs
DcrqoClien-r
s v rn (Sttogt
aqs) [
//
/ chrU facrna"rug
(U'*@a-
r',rl
Cot\ta)N,l
t.
Xmr&anFaomy -f=*,u,
h^g (r,"- Ch,.ft,* R"*,'"t (' O.''.Cg a' I'i
X*,BaorE
=.1._,-
ll$
Droo
56n6kan ck*s
1165;
So.p
hJl^on io
.- Et"
.-
(}',n)&d-ga.
Resut
ger8frt C"db')},
i5''* bd*.scgHerrot)):
"kc,nu o-lhibcdr.
soLrcp-s
R'rt
:
:
ohi
gl
fto"gl );
g-
ond olso
in
ZPofl'tr$
Poreru
name
_-"d
"
'l
o*r;a'n o(- <"f z t"6
>
zwPbac.o =..d
t.,/'
e|prog,rtg
d
I'lctfrr = 'c'
G$rcnJ Spngconet6ora}lc't
LteP locr.t="dr"/>
garoe
!'L
ygg='dt"/>
wF= u' l ' i6
'n D'(rI
dtdvffspln6cf1
(.ite
l\rrytrgz
Lvq'.rtt\
as
uu n-'-r
- d norre'"d">zve? bLd\="at'l7
4prDpo^b )
NeOr., rcc.re
orqjcUs
iorhr
SlrO-lo3
&otrt. Q Shgtcr.m
@ ltotrtut'
0 r"ltus t
@
(, Singnroo'.-
P".r*U
tr
6.-
&gicrn
ge*Beocr
{brectn
id =
one otulJ
.b0,,
-&rn *,o.a3 h
8;rringBeon clcss
rrr-'ttiple
elc($D = krr6ear,"
tlmec
crrirh SameBean id
sr!{='3ioBlefo,."
>
z-ltr.anz
[9
Egi
id--"db'
zuetufi
..
'
.\J
glcrtg
zlvan>
ouje*
[f rq,.estt- GilJc]rx,r kfrf's 61-nlBeon clor
voLue rn
cr-rtn'bule
os rlAest
u$co4oo
Egh /HAr'
id = dD
closs
Dt"'okan'
gSPa='re4uest":
==
zllxc'o>
$*A
as
&on clcls oLj@r
fssioo orl.aJiq
rPlue
;o
Ur<M+ln
Fgi .&an
=,
;4="dO"
closS
='Dcmokan'
Sfope =
"SerJlot," >
L)l*sn>
NorE
:-
rcauost, Jtjsl0n
&ops
arc
opptcalle
tnl-
_/
6gl6pletcrcrzrl'-
attUco6 rrs
lo
-_
is
3:n61eron
Crr
-- ->
3;ogteton
gope
6prDg BeoD5
canbe ccrnPigured us
dependenn t6 Prut-otUpc
&,rp$
c.ngBfoo,
- ryr
oF sprqBeo., are
coo;gure"l
f-
tDber' ctr{
&r{'cr4ernvnl
Not ftbbibre,
^lSczSfting
Conrc,jrrx
toolr5
tD Qse
the o}cre
sp"'tn3
ft ia
ttrir
enl-rtrrcemenr
Contari^c,r
oP
i5 arctr\Gb\e
&orFoc-l-o9 c$nirdne{'
in
SP'"''og Ccrnfext
f We rcndq'te
'
thus Inrcr?ace
i5
SLI inrc
ft.rq
rhis
clc$Ses
to qchvole d*rmrrooGnrcxt
-:
Autvc'tes
!f"it3G"-"t
firtQstcrn.
(r)'
6ga-Fe
Af?u*HcrnGrr,rex-r
(r).oc
Cc"n
Cor*ornev
f*-
$s ,?ec;ffed trth
uf-
bAPo[c4Hor(on+,.t
pnQsrernYrnrrtdicanon fun.Fut
ox--ner, Fu$g,.*
XmrApplh"rt.m
G"t '.r(
m*od5.xn^r')
s,6ac'rt) ,\
:-the wh*t ctdded
b5 lccr*rng 9*T tft 8'u froCo'rla;rt,
Au;vcrrcr
Snl"l
->
t,
c66,t"t
-, Vccrioble'
env..
tc' the ClosUarh
(ntuq-2-'
Ctoufun X' A1pu641* G"ru r *x = ne'D C las h* X-r Aeel:corrc'n(o'rc^r-
c6rfd]Y\4
\'_.,
K.rLl.oApatrcanorGnrcx
-)
ff*ivc.rcr
ccnrt^t . &rPi-"
[o.1'6.sf " L.rb-
,rlrj]*g
-' b"PP_5
C.o be
ob skrric o
t(lken
rpn-st<rri
c br the ettt,t
rt erbo d
be -taFro oa
rrust
injeutcrn
+ar., R,, 6erFcr
Gog
Aog
C'''rerr
Aocrrcartoo ci]t'rerr
llocucarto'o
*;*
hrr
Y:84#&{
Y:;trfueaJzn
*:^:t::?#
*'":^ uee' flxk:,n
eoo*iro,
tike
od&e,ooot -R.,,nrt-r=l;t1.,
,,-toA
tz.
*o&,rm
to
used
P*fr*
ir con be. olso
fi;
Tft
,l TilT'J,:i:
Ccnntdrte/ aLnvcdrcrn
O Abitlt to read
+) 3+P* f"r
ul At*
*u*'o'.,n
f;reg
in sinsre insrancco*
'
*t* fu'
P'DF"ltus
'
i\tnlhhe-r,j-l*'i:]
crc'-"'
grt"rlL'dl'X t"a
9"d.'n'a orc'Fr
qurhesb,r
Nqil=i
ht'res ore erclclsw
t
T::rf""ffitrffi
P
cbnlcnn'Lt
All these
LDecon oLiva'tr
91r)h.r')Eov\ro0rfenlfr)(J,\tsrrlc6f'nn$E@nsdeue!"ed4ffrrl$Plerra8lclrrprs
gr"'n3 J"*'**o" j::'
d;Fk"c.r
in
t-ft8"*
.,li\r be 1cnfi5uted
*unpresr.,"3
dux
q''b';
dsnlcrlnc'
4
r\pric.rro" Grurext
G'nrainarl
fi't'
/lnsuar. r\pprrcorroGrx^r
"hta"r'ol"']:
S*q Arr, = f "De"tcql'*'tl
("Ps
);
J
\i'
NoJE'.- in
&anft.txrg env"'
to ocrivox
'lo coo'P
mLcthP\e ir'lsl-aoces
cai
r[
GF [!ot'k'"rc,'5
Deed
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
flpttcotionCer*cxr GrLtuirr,{
;xrRrros
n})cltloq
pre
oV q:rloXBec.n'
crn'
-ir6tan$a}roo
$ngletn
Scoge''
Spn.gBeo"a;.
El
iP
&"rc
Cor*clrrv c.6'o.tf5
onx
Pqxo'derLtvcr-l'uet6
elars P-ftf \
pYDlotgPe
Confaioerr
qs
Pr
ctcrls
cbjd
at'd Sngk-tt'o
h\ofic.rr Po(ess
ostc{nh\aficrn
-in6tctn
iS -4pe[ccmc'nG'rttxr Ccrildnel' k
ip
l-he
oP
Bean'
p,^.,-o.N.*., firu.hp.,roo ue
n
ccnP',6u"ed in Sgnn$ccnftgcrrc'tl*
are
Eano
ir ftrtvatl
g dttpving
v'jhen ;"ey
obetfS
Cre'atlng
enoble Pre-.icotarr*tcrfttrn
only
on
(qW-
&tr sptingBea0t' \
^.. *.5t-r-.'
*ffir3.;"l|':^::***
to
&re rnt dqxmdcn*
^,
scr4e
**
6-6eana
ana tctLe othea
r'rDtuqpe
s'"rf, $d,".*'e@
copea
Arul
CyecfJ cuod
**Ii]*:
.ltirnns fingBec'n
s-p" iJ!*totrl
st'nnae^
iF
...,""
elo55 ohJ&r
rerarn3 sp'n3Bcon
c.rcrce/roarc5 c(Di
i:il'
;F
"
,str.n1Bca'or
I
goqeis Snt't'"
'-ued
6,- h/hu-hu*n*+ ,\..'
"PotutSF'
eoprs
sr'vB!^
-^' "tT:'?;-l"*
3y;"XBez'n cLc'vt o+' ir
reft:r'o.s
aol
Cftat?2
$
&^^
ra.- ts "stn k+^
,qttj
iF
d6&+
cta,6
+#lT:"lf:
2=
lorarc crnJ
yerctr
n tpr5&"^
The lert
oe
keu =
volu.
&of,tt Jt is rcccncrended to
(1,m c'rside fte crypliccof c'o Q lt'-t"; t'3
thrse \oluues to oqpticatlon
S*ppr/r.+
lbxtProrr'rrlcg {},.
/ r-l
pctlr
ig)
in
c.t
Poi6
the
8,"'
lr'rc'l c'H'ns n
{r';ng *pnt;cott cm placd olcrn; c5rifi Ofhet feo},notogil
f;fc
it \5 yctocrded fb maFe qr*r5 AirPticc*ton +o c4se Sarne latP""ne't
-> I?
csiol to
'
Ccry-nrtLcm
CenrrctLizd
dala
'
E,\*pps
F-----+ SFng
t--------------
BeSS
JZ
,*r;;
bc&i"vn,
e';;
L,r
l,
.;am|'clau
u"^"1*.,*
rtr;:#:',#TDekr".ir'
P'bP/4trq
aolor I rora
->T0
cetkrrnvcrt,e:
rrake 5p'icgcnPiS*rcrrl* Bre eP'rFA g"ihns
cr)e
T0
pkr(e
ptr.'cebodc's sgec't5ln3
o
^
{tort, pop,riaa 4ire
bosed
ond to nnke
.- ttr
pbcehotde,{s
o? rbe olort
afPucetlc''n
""
ffi*)
pr'rctnl&r
corrlc'i'rr''r gar{*''ioi r'vr-trtes
lkd- ort
O'0.6p.bear,s. ft,.rt.c^83.P**rbplc.,clor/crG,npr7..ter
Scrrce code
g*;fiF;grc
SlxciFicJ
{re
need
to
Con?''lur''
-r
'''2
as s'nrybeor is Sp{n3cfutsic--
#idb.
''
d",u." ood
,o
IWW-oiL,.W?_niq
deEi)5
Oao a D*lt'r
3o*
roy
,d
nnu
bure,r =
SPrring o4)Pt;catton
as tg
Dgorxrdfidn "iavc'. ------+ Sorne
cra
D0OErano'n &co'irava ------+ Savne
C{lty'r',
olleale
t4
raFeS
&r(lrsr- OC'r
tO
YtCo? tu ?C
/lbecro>
,,
-*.
- U
\-^J los6='org'6P"idbc'd
"
;6 ="drd6
zbeon
-p
D-rvdlbna6erhnSx'rze
i,rh..dc0fa:s,."f ce,
, . q
\Fdq
''dnve,rCtc,sNamc'
Lrrrvvrv'v
-r0rne
ZprcFirfg
^
z+tDlx,t!
[)ur,'\-
I
--'
-,.
{ry'
I
. /-
>
_t,
s.t,,tx\'
l>
";Y-1./-]
LPlacehotdc-r
>
"
+ t"t,U' drusc,, ]'' i
\at[-I1lYrq1g flarfl( ='uxnnome'
z
t-W,'fr*H DoFnc =" paJscoo6l " 1o1""=" $ l-f 'dbwnaJ"/
zl:tr-,urt>
zbeao
id ="dob"
LWP(t{tb
>
c\as6=' DBoPwalonBec'o" 6
cP{me =
"
cls'
reg="
&dt''
/>
zlkc^n >
z-llrrccrns>
Pgor,,or,- eli'nJ''iava
iropo/t
org
P6
//O*u.*
Xrn r &rpucatloo
(o'ilft t (4'^5cfu
""'
DBqrrotlon
/cau
bob-l =
b, me-rtrods
t"
S'o'p
tbohi'
Lrnp Netnneis"
ft"r'$a^g
))''
(r'{qq
Gllrt';')
/>iavac x'Ja'q
i> *lava DBoPcrc4rsrcllu\f,
i/*t,
JDbc apPlrafioo
irrrP"lt.lava'utit' *)
imfslt jata, io' l( i
grbli
P.
--r'!r{'c'lo
clcrss rJdbc8ele*Tesr
m [$';ngt
] *n)
thwcos E'rolurn
{
//lotote Irrue*ics 8Le
Fr.I"g"@*
Bs.nem
Ss.nem
J'
pre.Inyrr6rreom [""D@c;ts'
pre'Inyrr6rreom
fno1,u,rn-eb^ )t
f"D@";6' [t/Dfc/h-b
=nera
cla''s Obi
frte to iova'uttt'ftope"rtt<6
Ptofrrfl'J t ))
p"road(fts);
iiread Core.,r
Srrrng
61= P'
$-T
e2=
gerftupq
//N'it
)i
Uutcoa"
Ctass" ,f.,rNam.
Grrnnq
'')
L5t)i
8''' sl
Stt) )
'
P*,rS*
T5
("'**
!{hle(rs'next())
t
$.o,
p ['ts'5erJ,rt(a)
"+ts'getSnngL")
+" "+1,s'g*SMngtr))1
t
/oore
iabc ohjs
'f6'cloit))
'st'
ctose(
)i
Con'doseL
rl
/ir*n
"3/ &,Jar
-r
Beaopec.torgCcrnrcrioe-x
gwo
->
/>Javac Jdbc&EtTest'iavco
thoag\ the
ose
C1omt retottize Ood
g"ot, "
o"d
t:t:*Y
n""rdffi
i5 arc,0l1r'rtd.
SPecjc.r
ftre in
SPrJnSEillironrnen-t'
IP *rts
Egt
zboos
/bttn
;6
="PtPctnftg
1165s =.brg
'
='ry#
Arr,{rarrt na.-r.
t"u' t^o'u"DsltJcd
ls4'
/'laiutzDbDcr<'lls'
4ist ''
AfrWuwAz
Llbeuo >
:-
.zlbeons>
.s? - tso.,s.
"*J#-tge
1,..Dp,.6{.
q,oPtlte$'l'::flDF#
z-5
tlwfuez
x) Lnrcrrnriomtizc,.ltcrn
Olnirg + Longtrc^ge
clcrs5
iauo'uri)'
Locale
pr -FR
try
Eq:.
en-Us
locnl .
'16
totrb
locales
cANADA
'-)
is m*dog k* err'b'iling .J
moring oa'f o{pliceHoo cocxh}ng &'
th" Pfs(ftfio"t '-''
(ot oed }o -tctke oatre og*,i5
Fo(
opptrcc.l.{on,
iltn on rbe
d;Pfu'""* lcco'lee
and e'Fc"
"^t'
rreeA mctnlr\cr
o?Pllco}lcnts
on drl
--r To enabte ittn
,,Pno
"
l"bf-c)
$re is
'J
&-J v
B";q''.T:
;;;
-,',#'
ffi*'J:
ff ;Hl.,n'
h
lerkis :
togef
gdittl
:
hB can
use
ffitc
hon6loftn^ff .rn;cole
ffeJ-}.)''3
gre*n*rrHsn
taDlA
nTY*,"re
t-r":r'de
v'J
ttE
*
tb
@
in d;Fft"ent
d; F.n<,.t Enguclo'
o"udH ,*
Zq "-l
rurrrtrrs
rurrrtfrs
.*,,,^_6Je
urvl
tbdt
rP hb.r
con't be tgQed
using
\-/
$ef
Ergrtsb cttphobers
10 gei Uwc'de rutbers
'pntt" ct*"*o* J
ard elpPued 'to fte ctpplicotlcna'
'lau6u'thndi c'nd elx"' trr- 666 use Unicodeedro/ J
YeBIonoI
lar6ua-ner
livg
o Qn
furee'
Unicode edircrr c'nd elce
procedcrrc
jb 0cj- Unicode
rurrlaer
5r?-6'.-
wde
rntiveP"aecii
Rorn urap'b'i8opi'cor'n
Launcr,,''un,cgg-i&lz"t-@' rhu"rgh
biodi
certain bindi
ctfde
r:
aed
rool
'J
\J
'
l^*-**tc.nd
fuCIe
tle {btroc'r;q +
F.1'
nh*.efr..nodl.
- ..^-,.f;rc chd
llolE:- Nh;te stdn$
thrs &,o
v
v
t)
Fle '
K\t
cofx aHm +bindi twtdsrb Norcpad
P1 -txb
T-
\ usirrtr J
yt6
trdcode'
\-./
\_-/
l??t'z't
11t,
:'1
,l,ttt1
",|
St
p+';
USe r$i\Eeosdi
16-0
ilg
Uritde
get
f0
..-l
nr.mkz&
o,.
iBrr,r'r*'try1)3-OveRc6cii _erOdio$
hr;rt
9Ur
cao
Lx
to r6e1 {13 p
rrnre
t
T-*nt
Pa-
Sftrg
Uosea
Ccrn
i6n
ttx
"
&rtr pcnt
11i<
f* rrpLe iten
tx
bg
Crn Ftguri
nX
mfrfJ,
. Pesrrr,rBrna ptloro6eh$xrre
E:\Af?6
l---_SPtlQg
f---"--'- tT:-----.&p.progn;q
[br"se Bte
cA' ;ruPnes
Af,p- Ae-oe' Prryxda
AfP- Pr-
[PP.- hl
-IN '
WDfrsYn'lc{
ftmoCft,rml
kmdtient'iotVc'
APp.
p'op"te s [&:en
re
Srrr = del-tC
: Scrve
th3=669
tlr4 -- 6ai641
SFTa
ll NP SHl-
Sftt =
St13
EFFACER
SAUF
ARBET
Sh+ = ANNULER
i :
[t*)
DENN
Sn6 = zul,
Sh4 = AtSAc)tN
"/tlttP -t,i- rN,Pnft'o{e\ [rctugu;
Srrt
= \uocx \uontP\uoqrs\t''ore\
:::; --'
ttru --
:f
J
aos
?'o"n
P2
t4u,',icde
166r-\rrcfaa
rrt e're
n6ireser*afiorr
ft" ft6lT1
]be F;ternme
Fite is rocrsr be thcn in l.txofe.*ecjFic FtlanameS. -+ crl\ pro1arfiea Sre must ccrnt-cno Sorne |.<gs horriry d;Pftrftnr Vo'l-ere6
NOTE:-
oP
Bose
<1.-- ErooCPg'rrDl-->
(beaob>
",r**ogSrrce "
/.Wo;r' \d= .'U
L'
Pi
xed
kantd
--'b'semrre6" >
rnrDe
LPtqtu{t1J
cl&sg
.Lli6l>
Avqlue>
elrn\ue z
r-lvdcre>
hPP- de- DE
/\a!re>
*PP- Pt - CA zlVoluez
z\aloe?
\J
APP
zvolue> hP-
\-i
,,J
6i-fr'r 4wlttet
,J
4lisr'
\-/'
u) P^oF'rfg'
.J
-rlbectn
\)
zltaors>
\---l
/lDernocllcnJ'iovq
iccrprvr ort'
5P
'
c6nlt
su{9cxT
"
*i
,J
^b'
.J
irqpffi
irnfurr
"lava
aot' x;
sv
rn
f3nngll
//Loc"le ouje*
Lo"t.
{=
rtlo
/i Annn"r"
a$s)thrDLos Eranrrrn
t
Ulql(BJr
langtrctr
(0(fts
---J-:- -
J
lo,ote [orgs[o], or3sli J'
r^
Cussh*X'nrA6'Uortt"rG*tx+
//g+ lltgs h..,r r-r{*ias
Brtca'*'cu'"r[raro"k
\',
**-l?:*
not w'
S*"j msgz = *r'gerflrscrgelsrna', t*r,*ffi:rftuti :].'
gaMessagq(Sta", null, "dek$
S*"3
F"g
st"tq
116g1
- ^x-gallersale("sttc, t{'n,4pu-rr$1'',*^4i.
mS03
=Cn.
msg+ - c*t"
xoMerr.5't+3*i.f,k^rdtF"
^35'fl1*".ou*
ms6rr')
r))
//
D*.top
Srctng Farrre
JFlc.me jp = rrc,o
JFrameL );
t)i
6c$ru-ed
)r.<,ro,<c ) Frfl
cs"'rii
Snitet \21<'rr< . J to<
aocs
neo
JBulktn
(ro't);
XBurrcn
gc- =
JBulkrn
z) ;
62 = rgro fBurknn [rosg
[Bu-rfun
b6
JBu"ttuo
!lo<'*rce r"t-r''
(rtsg+) ;
[4 = Dcto Jl]if(I.,
tV$<
t) ) :
Lbr)l
CP'add [ba);
cP'&dd tbs),'
Cf ' crd d
Ll"'r)
jf,- Pl* C );
iF'shococ:j
$
//mc"n
3)lu"''r
llz lav
I'
i'#:I'o:
["T
tuses hP"P'r"d"r)
...>Ctx"qct&ar)t.)givessPrx^Beac,Cr&ssohje0tSirniue{xctr"getflctsce(-'-,-,)31.,
rhe gruan ket'
4 lhe Wwa rtc3 Bre besed c't
Vdxre
'
'
'
mrrrn l-i'r-H- '
/
Single
Ccrr*cct
d,r,
{pp[tofkm(onRxl
Nirin (l
t-ffi
,*ng
[drh
"
BeooFe.ctary
Feorul e
betro
Cc'r*e
rnFr*r
<m
SPnrt cqg'leJ
ln3iance oP Crnlc,ina
Yes
Yes
No
)es
spnog
$eana
,\o
No
Qecegnizattoa 4 phcebode'< anl pn4rt'rrofirts
No
i\6N swpct
N0
\llt,"aUg
.,.
pre-iosnrn$&tton g+
)es
Yet
^ie6
)(s
*WtiotronEwru
No
redst'oxan N0
fing in rneoot."*:*
tdure usrn3
L15mg Beo"FttaSCon'rcr;n'aa
,\pucc,$on
&*cxt
Actr,'&rft:r,ret
(t'ses
lert mern6$
'
Cont<t'no{'
- ;;
cornfxmenr/"?T
cln
is
eS
e8
,Tff;-X,#P#v.
u-L'
"'-
Corrt<t'oor \5 t+r'ttea
\qic,gtpYre-,r,EY&trlspise-discc.$ea*!o**..oA.unt*.T0FrP.,,.Dttuspw.tth"dr5
Conrc"t
vlhen tte $pU*f-*
'
rhis APr,\icartoEr,t'*'
tuX q1ed E\tflrlistcr'Cx6
@nhr.nale
0r
Stcpwd
the
*wpucarrox]b'ent
cdi
crncc'nhoP
tDe 64$ rohce tl^r
fnrtu: Prot'*
mccle'
4WUatrlc'nj-'*rer'
Crre Cc."\ c,-se
is *rre in 'f..on)n*
fne
trrC ftc'r
AfplfcoffcroCo*e"tGnrco-'ne'v
Exarople A0PlicaHoD"-
w"dt' ('sesl)
alpn
lsr
sia-f,".- Keep
*,.f;t-
L\$eoo
Wi"10? sPrrct'ffi
c\c'rs
llgl;srrnet"'lav a
'(
imelcrrnxlnj
ht'Y*!
R.Lb\i
'-
l;
corr o.,Lisrcne,f
tl:
;''
[1' .
{
#*r..:l' - t"t'*
i-^,r
E,npsr
zr*
op
i6
\'
"
r-,-s be d Evenr
f'lirrle ( )l
$ttime =Sgsrcro - currt(rj-Tlme
'
'
"
l-1gLsttoc^t clcl\s ) )
'.
-.rr*
S'o e 1'ooAfnlitatl6nEvt!-d
i F (ae. h3r,i ogt ) . ndex Qp (" CmxntP.
nt o')
('h'errcr*r"r'Ert
g'f6rvred
c*"
I=
endnrne
.tffi'
")l=-l)/nlt'&nfr')n'o
/'
-l ) il -Tl
+rr''" brcO):
Apr
is sto?d a}'+
rr"i
'""
,rstorto'r-
Doreo);
["Tt)t
(.0.r,(,-IhreEr.FenfCodf,dw^)6intunnloSrrod'e&n-+Ccnar''.-s+ti'a
S'o'P
+''t,seas"
/lt"r*oa
t /1o"*Pp}carr onEw"t
l- )
& /Jcratl
' 6,.pg-
sp"n{cfu
Lisrartr clc!45 io
ot$re
the
cooggu'e
4'-' f)etrnCtA'nml--7
z'trrttPi "-'z
LU:ao|7
- 6k?fl; A4,l..le
*pprlcc'ncmGnXxf
" r1$Ll'rcre{",l Z
Cortdrx
hrc'
);
ptopo'rrre6
@ a.sr.og?il liPeqcte
-z Qqlciofa
rra't^)od
Sf
too
i"$
)i9e
cPt
cgde nerhol
$ re crsin g
{ E*,.
$n.,$
ct6
rnr.r,st
be
ioit - rrettro d
,J
beon
prop'*tes c'od
tel
sPecified io
ease
Dnn
ctoas
de*rro5-rrerhod arh;buru
u(
zbeon>
vi^rrd(--)
Dr.ftttF-'
'/!l{t$dljf4
Dero0
ArXHel\0()l
mPleornrs
Derno
1trt.o" trD?'{to..
r.l33
povole Sr"ng
ir* oge
P"uot"
Sertt^a
iru
gefeae
l;Fe
c-Nc[e
{
V,r,&rr19
,.o
C'De.oogeun
$eAvol
ErcePrkrn
I rn3lorttl')I
if tas..=ollrns$==nu11 )
g'pr'g')t
to
n,- fn..r,r* f"s.. p"1,'volaer koo
ffffi; t ffi-
la1. .J
'qAtutd.\ y
S'll'"r'
*arY
v a4:"(a'J*
DermBean
//oscr -&$ned
Pr.,---+
/DeqroDeao'java
-Jo'a
RrDi
not
Ye,lcurce6 cjlsbs61&tad
-These
VoJues
6pdo38ea"o*oy
otco it i5 a-bdl} to desr'og ocrr
r,allih
merbd is a:cfur to
Th,is
to
ll
use,
-du?;rtJ
deshraj
vo;d
Prbic
o
0l
rtrouaro+ttt ( age=
lt.g
= eurt
]
/lB r.r$oA
deewog
t)
De'ooeon: roSDamSt)k),1
("
S o.P
C)
;J
nulifurog
Beon
Pr4wtiel
'
.irnPler-oenJcrH c^n
St'rina
Pf,U.
sag l-let to
,,rrr5g"= "+msg
rcr{/{ n
t'o'ge =t+aBe;
<l-r spnogch'xml-Lknn
^;;"
II.DACIIPL
"
clcrss= FrooBean
ifl="db"
fvtYne
4/'J'Jtrl
!,
/-Wp4tttl
.*
"
, --']*psr'g;
.',
dgwa5 -rro-rnt(r
$lue="&'lz
='aW
{o[ue
nome ='msg-
="
fello" / z
tlrran
Abeaos>
c t; anr
/Droo
&me
ot
'javc
(coo
$rst oPPliconttn
ao1
use
Ccsnfa'tnax)
5v
')
Clc.:st'jbXro
Applccri'ion&rnrrx
Cl>.
=(Ylo
kmo
=
// cau
:l
*)
*e
ux'
B'r*-rfud
getf3ccrn
..
C$nkai$el
ft
@ a4tcoCanttt"r (i*";it
f'db" )l
ig- Co"*rki
iP
i*o)
fpsskrM.nr
$ear,FoU.r,X CdrrJro,lhu
then
'
),'
lzrlb;re
in
6Pnog Cooigurotloo
Bte :aer*iftcoticn oP
iata
&s
clc.sseS
liPecacte cocrbods
sft"rE2n5
__
P"or'r
^
tt^'n..-1
t':
hr$. no.o? w;rhocts #nt art ooojlobte in clcrss i5 P?rcticcrut
tiPec-Scfe nett'oda'
fa
don9iSue thete
\)
rmg
&"rger
n6.telq lrr$ramrnol
-.l0
to crape 3pnogBec'n
Ovcrcorne *,rr p'rutt"n ib is recorrrodeJ
cra6
,rq.sp beons.
rned^]ocls
of
\-'
f,'v 't-'
rr,ltunalr
CI9
interPace
these +cm
.
rrr$ocb
'TniHalizir8&an
&*"1
\-/
inrcTk'ce
Dxrx.,n.tsean
gitca
t,
(*o,r#&*.-\.,tt)d$hrr'
I
n
aP+cllrrynal(
3!us
inrctPece
\.i
o*to *"1"d
#J;tl
Currm
thre isno
-->r,hl* tJfiung co\rh thesa tco ,'frF'eclg
need
o,^u*noru+
dertrog Cf mer''a' a
' \J
CoruPiXtontnl
\r
\-',
I
\n 3da$cq hre'
6r'-n&roru *.',**errttu3p'{"3e-'Bpa"gBea., h*itts not
os
gxn
pOJr
acr
cIaA6
-,
\-/
irnpktrr'n6 tht-abn
clccrs
rrrurrt be a FIo clolS' ruf'c', S-^6Bram
ot mn-PoJo clal4'
Jtoo i^*rrk'Le-9 *'ao it c,.c*t
:
-*^
*
irnplerrnrt
crors
'Y:.*
-> r? sF^r5ftan
*"#'*
-
rmhoa n@rrr3
bthuinbe
xe-ulta'
tt--
Cusn"n-dutn6*'fie^
exs'ru
NH
\-''
dur'o6t)).
Egl4g-g0t',-
7
/
Du-o
Denno{&an .iav
lr-rlCtc Cl&ss
DrrnBeaD irnplcnncnfS
\r
6r
ilfk"n Pqc*lrr
ms3 '
PnwJ* SFirS a1e'
tn+
Pnuara
Drmo, }rlBal.i-ang8eanrDfro.flCcBeen
'j
\?:
Senrs|Aatt<a
:
public sr,if
reJur
grit'
ri
sc4Hertot )
1a$e
rrrs$=" trns$ +"c,ge="
'
So p('l)rroBeca,,
afe=
4e"t5cj'))
@;
rns$=Dtrtl)
3{-
tln"* LrtcEtlc"l
ap+trP.q^oSatI
frultic Voia
{
i'):
,'
.,et'P,orn'o1*9*t
s'o nC }rrroBeao
iP
la3e<=O
l\
rns6'= nutr
thrurl ntnr
E'rc'crvtr("ser
propvr'l-ues
h Beo'n W'rU
Zl-- DeroocPg.xrnl--)
//DerooC\ltnt'jcrva
aP 8$rBcan ctasS
"*.rft.ces
blr dcr"r
Same ae fnevidr-s G.pP')'
'
derrrug- merhoc\ at+nbte8
Same
fre{ious
tho oo[
f?rink
cl
o-ba*
ft
init-rrrrha:1,
o{pto'
Crrstuyn-liPeqcle "yr$ocLs'
-a
&s
qrc'fo
Dis{bsideBean
ax
Can$gurin6 Ce]talDvts%ocIs
c\c1*e5,
those sP'tngBeoos'
CtrslcnDl;Pru'6Je
$pr;og Ergprrs
,)
&*tcl Inig*tcrn
U)
Grrsrnrittl Jqjeotcn
3)
lnrctk
ce
Jrueucr"
q$t4
Ot/oa/-L:
rrrodea sP Jqizu)cro:-
can
iqeuloo
inrcrft.6a
8o &rr
Loe can
Jorcr&ce Sojeuicm
iniecr
'
PYDqrrneS
t
1
useR-o
-,
lo
irllectr &aoPc'rroq
ccnloi rr.d fu
Cz"*c*t Aoow
@ Or$'s9' ccr&tc^t' frpricctrron
---ruseftx
(|
to
iQ)eoi A{P\lca$croGtr*e^t
tr*.itC
to i.Ue'-r
penPcrrriog Intulace
e)as
a^;naBea'
gPri
ngBean da'l
cr!'r qrongBean
fo
cdrfctr!"/
---ruseftr
eYtr
otox
to
SPngbeao
c1o''rs
o(.Js
q7$nggeo'n ctbtg
d-.'{
inianoo
as rgn-l?soddJ3v
'J
\J
EromP\e
AT"liCorbdr'j
e#xibt&'w
n*"** -ta'&sx A
ftnoggean
Setng
[O
&"rn
exArnPle
o{ryn
oo
vr'xrdituf
txl*.r(z,teateaf{crn .rePfi &pPtr'.(rdatrl
smil.
IP U*
J-4
crnd
Jn-rncr"l-;ze,ficn',
165;.
*-b*tl'",:::zg)
P'?t": @,,m-,
-n 1il5 frwrk'rc
cc'rlfcr-ios ? rnert^,od6
-(1)
por;.
---t
+
|9f-
useftrr forrbdjftJ
d,.gtt*-u7fue4 a
P'pr'xdq opv'
(O*t-Lff'*"'*
obdr.i ;rrurP**rA?otrdrroliz"orc'D
'r"---
^A(&RS a?w
crscft.o
Crrsrorn
EaoT
ccrstorn
';ov
n/:t'lvd'
' d-o{'
ffJLtl..'loafr('
initt ) rrrrbod
aod
agr
P*r'fr6fuc')
rJorct l6rce
avt
syra$cd
to
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
-:7
$vn
on
oi"loalrota
AppticcrlicrrrConrext'oolcdrE
BeooPootP,rcess.'
acdoroolicao3'"t%-tt^t.
"l--*'t*tt
i'r giag&fi8urcrtton
ctnfig*'L^
)bB
*ao3
F;a
hlhls i,3.nkjog
to
BconFecto'U
6^k!lYtc,t'
'
b{
Hx
<-- -ttrF
,-----..--{
F
o
a
;F
g
d
l.\
c./
I glt
lF
I C Jl
I tr dl
Fl E-
ig=l lE
lAEl
le *l
L, .! tF Xt
r-;----1 lETl
?1
l.l
gl ih$\
IE
rO
I F -ai
/11
lA ^Fl
l?fl
s--'
Izsl ree-61
EdE
vd9
rb
lsEj
l?B\
I r-'l
'---+ ;
a^.
C
.(
c-c
I
lr xl 4'u : l}+l I
{1g' l}-B.i I
leq
/--"r 9l- f F-d
l]
F.
I \-./
o
L_l
El
t l^ h' 16
,{3
IIl-. t^lFl
?l 9-'
F
.tra
'.--,
ts
g\
<.v
A
Fj
5
i..-.
3l2DO13 9:21 AM
'l
2
3
4
5
6
7
8
10
11
12
13
14
15
16
17
'18
19
20
2'l
_Demo.java_*___
public interface Demo {
public String sayHelloo;
]
------.-------DemoBean.java--.----
import org.springframework.beans.BeansException;
import org.springframework.beans,factory.BeanFactory;
import org.springframework.beans.faclory.BeanFactoryAware.
impon org.springframework.beans.factory.BeanNameAware;
import org.springframework.contextApplicationContext;
import org.spdngframework.context.ApplicationContextAware;
public class DemoBean implements Demo,BeanNameAware.BeanFactoryAware,ApplicatjonContextAware
22
26
27
this.msg = 659
28
29
3'1
32
34
35
36
z5
30
//method of ApplicationContextAware(t)
public void setAlirjlioefctriqdffFtr(Apptieationconten dx)
throws BeansException {
System.out.println("DemoBean:setApplicationContext(_),,):
this.ctx=ctx;
//method of BeanFactoryAware(l)
public void setBeanFactory(BeanFactory
System.out. println("DemoBean:setBeanFrctoryC),')
39
40
41
42
43
44
46
47
48
49
50
51
54
this.factory=faclory;
]
//method of BeanNameAware(l)
pub[c void setBeanName(String name) [
System.out.println{"Demodean,setgeanName(-),)
this.bname=name;
)
public String sayHetlo0 {
System.out.println("current bean id,,+bname);
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',);
String idn=st(.gglgeanDefi nitionNames0;
for(int i=0;i<id.length;++i)
56
58
System.out.println(idfrl+"....1.
59
60
ol
62
bJ
64
65
66
67
68
e";'l'ffi
String msg;
-23
24
tn*rat,* fu ffi-"',
properties
//sp."iat Bean
private String bname;
private BeanFactory factory;
private ApplicationContext ctx;
)/method
i//class
*----DemoCfg.xml----------------. --------------"
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.sorinoframework.org/schema/beans',
,,
xmlns:xsi="http:/
xmlns:p="http://www. sprinqframework.oro/schema/p,'
wvw.w3.oro/200
Page 1 of 2
roerlodS SrlPc'rnoi
oo
\n\d +4Le lic*t
31212013
69
70
xsi:schemaLocation="httg://www.sDrinqframework.orq/schema/beans hfto;//www.sorinoframework.oro/schema/beans/sorino-bear
71
'Ee!jq:ll4
72
73
74
75
76
77
78
79
80
t'raH cm
{q$='My?r999!!g{/> ,'.J Beo Post ?roccssrrr ConPiS
----DemoClient.java------------------------------
import org.springframework.context-suppoIt.FileSystemxmlApplicationcontextj
81
82
84
85
86
a7
88
89
90
System.out.println(bobj,sayHello0)'
)/method
91
)/class
94
96
o-7
98
Prwess<r{
@Override
public Object postProcessBeforeleitialization(Object bean, String
System.out.printlnC'MyProcessor; postProcessBeforelnitialization0")l
if(bean instanceof DemoBean )
100
101
102
103
objl.msg="hello1"'
104
105
106
return
objl;
107
108
109
1 '10
111
112
Date obj2=(Date)bean;
obj2.setYear(130);
return obj2;
)
return bean:
113
114
)
public Object postProcessAfterlnitialization(Object bean, String bname) throws BeansException {
System.out.println("MyProcessor: postProcessAft erlnitialization0");
return bean;
116
117
118
40
import java.utll.Date;
import org.springframework.beans.BeansException;
import org. springframework.beans.faetory.config. BeanPoslProcessor;
public class MyProcessor implements BeanPostProcessor {
99
'r
9:27 AM
Page 2 of 2
a-
Fcrcrorg Becm : -
oalor/rora
ConP;6ured
l".rtog
is
tsec.n
\s
con86u'rd
iaiLted
ro
a3
De?eodepfBean fo Beon
pop e'rCTen
as
P1.?)Pcdtg
prufrr61g
gc^'r'6c/.fd bg
bt
Facr<q8ectt' r.r:itt
idet-rtd.
Eg:-
/*qfi
id
="4b"
z
class ='Testgeor'' /
cla35
PcnoBerto"Pz
L**cto id;''db'
7
zFrB^tts rp'me ="t1" rP--'rb"i
zl&t'n>
iP "Iest8eap" nrrrd fi^mng!ec'n
(oirl be lqjetrtd
+htn
'
u'ifi
"L'' P^ru"s
Bron rben the
Facfo!$
Til5 inl(t%ce
g"rOhir.tc
C6ofr'io5
61619
oP
trnplerrrnr'
*. ,*'*1"1,trr".- *t
4 rs
hiet*
YLsa lKrLf
o
L)
@ isSi"gtto"
reJLc6n'9
-t
[DEs)ur
vendor'.
6uo11
Ve{Sico: 6.1"
tl earbe-r
Pc'r
&vc'
(orc'cle aNP )
i5
'
'
si.rglercn ot rnf
r)
to claorla'd
fap6p,,lavc (sPingrntoFr'<
gftrnde.o,iava (sF""Sm
+;
U'*U GtassFsb
ducs,
.latrr"iLia'n
o - - ( rl
sJ ftmoCPg'rmt (sf,n'rd
66ren 50trr Ce
Po
'
aPPt'cafirm
Qocxrrces oF rbe
Ne+Beao 5
tgw:
ib
tgPa
rerulr),5 rhe
-----
@ ouObtJTvt'L')
ohn
toilt
rrrrbods
rrurns
clrrss
o? kmoBeon
lrrutu"d
El pro*'ag
lbe "61"
"*'::."
c\oss
TestBean
b:
lnr4Hi coirh rhe wsulhnJ obe{r $t''tn
ip "Testgean" b s
ex a5 beilts-io5el^al
slro
wNN'nerkan6'6{3
G)
e*oBS'
fitj
jara (cticnr
Arr,.
, *)
proredrrre
5l-c?
-r
io
deaf orirt
$0+
Str'qg oppn
6'+'r;-
derrlqarertn bb rrsrog
rKtbeanS
:-
Netgear)s tD
creafe
in
Jcvcr pyqje..r
java--rjava oppttr.,u',-lJ
Fi)eHene-, Nerr---)prqjert
-,---,
lg-a;-
----+
Righrcltzb.
--
Fn's h
*x fr'{)qr
g,anO
6pangla.ro e u:nY 2 5
qdd L brcyd
"#f;H:f-_=*
Pvq.,@r^Jar'\lsY't"soi!
---,a *$rr..
--3&oof5rl'\&ar-+a1or,
Pl"gs&rdor
*Yn..,
-)NctJJ
c'
/1 Dero
llblic ir*crftrre Derrrr I
cf $e
PrDiet4.
o 'J G!
prrdrc.
$*n,
srgHrttoC))
.t
.Y
$c0-AI
Billic c\&!S
cLo$Nj&rnet-@
DerooDeatn
Obrrf ohi;
{a$h}clid{-_-+ lnso,tcod
-)
ttMse*c.i nff6od
prbri
c V6'd
g]l-KK
----+ok
elobj t Ob#,j
{ ,tu.' 6*=cbj
oUi
t
Fr.blc Sh"nO
.'
? I
lef,u\o
puUit,
--f*i
"orcrrd rrrnlq
.6ni'h$rogLl"
naftf '+o$,gcrClat5() /:
S.o.p{"Obj (rou
ekpr: p"..ot${5pac"raf
Frbic
{
rl-UbleltuC) [-,,^,,
---------tNCro
,/-/resr
Beas .3oyo
c-lars
O hjett
"rt*@Yn
lestBcon
_-____r
inrplarfrr,is kchoqBa.rx
t)
thvdas Llceavtc,rr I
neo jc.va .utir , f)rre ( )- ----l rerc.vp5 Dafrclcrrs obr
gerobie$
c'J
the tIaqlicnr
'bi
---
tgp.
3-
of rbe Qesclra*
f1
c booler, n isbirg lctc1",i l l
o @.n tnre )--.gpecifi<5 rtre rrstrtrcru obje.t
p)ci
eope
is
Obocc
Slnglcfoo
3-
f/ftrnro6rmr-;ava
'
P. u ,o Csrnngt I &* s )
l/A*'vor" sl'ioS
Cffiffi"X-rAqrlicrrhrm
conttinet .ffiffiy,
Cavrlexr
crx=neu)
ftmo
1ffiu,t',ca*lor(oruq.*;
cr4s [,,1
DenDoBecro
("pj,"u n id o? TesrBear)
t0,ro-.
oul - pnn*ln ("o4, aoll;s\ou; );
u
3r:dtotodtl f -O&.r
the Qesc'lt rtr
ftFffi
g@q
o.
,uo
crr.6e*8n .,
2.c dn iYLdat
f"fr9l"J -1 Pun
, obj ./,
ta l< C) ) i:
(tc!l'J ^,.*"
gcl rCl6$c))
-,. -,...,
^,nam i!'
n (' obi
'. " + -Lr
-rn.,;^af^@,
fll-i6J--
/i6ou B'rnerhoas
Sr,;ng
*r6trnwr-
-=,
cnn
nex
Sartce
'+rcvrlt);
DrD
g{
strcl
Do&rrncr6
---t
-j
ff)p,t4Jic
Pltg s
id : I -ilsPo.^.ro.D//
id
[-Ue"nS
==-,tr't*"t"t@
nlb '->':
-=+
l;";
8one'O/FN
FntSh
p*,:
ot+
6tcp-fl:
P-fl :* Add coog';gr,rotltol 'B'e ro tt'e WW
ggftl..---> Xr"r L-- -axl{LDdqrrfn'f
lrro
R'c
-+
Zbeans >
z*rLy1
d:"tb"
z&n
;1 =
"do''
/z
>
aLEcLn >
llkt'ns>
crast ="Test0aan'
,rrt$ Dc*.
cx^is o\,red
crc.,rA5 oh-rtrr
Qc{rtthr
t$"e
i;
$(PvEt;-
Tun
+ clicni o{'Pttcdt{dh
AilhlcfrdA
the
io
DernocuenJ
";cNQ
rl-nr q'e
tro\S
Ond erc.
crre desiSrrcd
f)'nFte
-:
del,Jorcd
g'1,u
%,*'u,
fc.cto"trBeant.
cos
4
O
OrB.sP
.irtti
. @D CrdiohjeltEctogBe c,n
firuFruoryBeo.n
PrDr r$5rrg
Bg\*cticr cn
frraierl '
rc$e
irrofr/fitza
cq'Plico$an
---=tBurl-
rerBeon LDE
:
ffYioclcss rr'rne
orqu-rneffs
'
O*nocj tcru-
tt
laU
1
-ilrda---rft]-l.-\a^
^t"r,r
&.in
1*,
,.
dr,r\)
/Ltro
t-tlirin$:-
prfltnnnio$
'|
fti,ccritndecr{
'? '1^-11"r'\
ArUe{-Foq
eo.P'aer'kr
"r'
^
Tlere
Elpriclt @rring
'.-
-1"o.'p"'6r'tt*s
lsmg*t4>, z0.fwrt'chw-arg>
-r krr.t lroo
po{unr1c5
-, ffffi'T,"
lirnik'fico orirb
coining
anlg
conBgu,rzd sxpucttly
+r.r
tgoe
;:,ff"5..*-''Ie'
fao Wft]'8
ro*;"";
r',r, .,tt.
Y.odc'bllit,
ustng
oe
\J
Wy:^
'J
.J
Lran V-{n'n"A
zvan>k$l
otn^hj!<-Q
Aryldg ["
rcfo'{eote
\-'/
-ftt'rocar'l'9
popcrtles'
sl-ring
Sl
Strnpk'
s,-ptt,
6n
A.rrotoiriog ir not l-tss)ble .".^
4,.
0
u
")
lc..3s
..^^^rte
@;11 oo
itr
'
.**'-,^^
tLt ctiiq '
*r,
e^rllcrh
o
-"t
ContiB({ccr
cor.,$gured
be
Lo'll
'+ heft
@ *uto -'o,ng',-
is coged clir)Dd
lsPoaslrole
J"6ecdons'
-1ococ'rds &irnacnry
Gn+.coc'1lo" f;re
and
&-'ua*{
:
\'/
'''
e@
@
Crzr/
dtrfocoirin$ ln 4
on kop pmprotics
---+ Per{tnni $nricr lqiedioo based
and
oaJrore
rrndes.
ncroe5 rootchlr)9-
4lupe
---,
''
\dS
(qu-bdire ='bTuP" )
defendc6 bean
aod
pvop'ni$
an kon
rrr Sertcr f4jeott arr bc'se d
Perft:n
fuPe r.rlf&-rng
(fl
cootrrucrcr (cr.rrotol*
t*
carorru<tur
")
usiog
pan'rfetizf'l cotnsr(4(}trx'
''
---)
-,
crns)[$#*rffi.-ffi)
|!9:J
pe,r6,rr,s eiroer
pe,r6,rr,3
eih.J crnsr,ttttt't
ir
iJe
'rt
Pcn
Porm5
Crn
srrud<rJ in'jerHcrn
---?
oug clpp o
S&me a5 Ptati
Ca*"Sl"tc
k.-ce)
DernoCticr,t
//
Deroo
"xva
/ftmo&c.n'
.lrrvt^
rmp'lemenr6
flro6
/i*.,
PrDWnl
JqtBec'rr tb;
l/o-toto*
@nsnotrcr
Dean8eanC )
c
*,
zLJ
o,P
gnsw'ot<n")
yc, ?cnma
g&rff"*
l- Potaro C$nfiuj.rrl/
//
EemoBeao (
Si&i + rab$0e({
arrtrshfet
Ta,B*", rb)
{ 65.o=o:
''
S o. P
[ frnogs6e" 4- PararD
ccsnsrnrohol
'
))
//rnerUocl
firbti
&4
&Jfu e'q
crl'lcr'-,
{
o
P("cxmo$rrr'
lhlr. tb=
Eb
sfTb[-) wtfiod
"
),
{rrblrc SU"g
*.gHa-ro
61
irgra\n tgtodan*r,]tt3
Tqhf&on'nzs $ = "+Bb;;
\5
//
\-/
IeltBtr.n ic.rra
c\crss
Publlc
Test8ec.n
/&"o f"fg'nr
3i'rn5 r'ts3;
/ltrts
pub\ic
.rsrroa
&r
se-tttnJ+jcrfirn
t3
]
/ imptemtn-r to $'lngL) rrr,rhoc\
l'
Yefaln *t8i
/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
-I
zlbec.o s >
ft"
='
ttu
\9 N<.m6"
7
class
D.,ooBe<rn
'fra
ood TestBran c krss
Bec..,; cl (
bb)
B&o prDp<^!
rrrr
,-*.hC+
b)
Cricnr -.pva.
//ftmo
pLtb\ic
clo56 DerooCuen* [
p s v rn fSr*ngrl fttss)
a
L
l/ruivo-te
SPYlnS Gmia;rr,t
ChssParbXrntftpticcrrr on C:n
ru
or-l = rle&r
61og5paJb
rmr ftpp)rz''hl
<rn Conlex-
C'Y"fr
5eq1
('au' );
)t Col- a. rnettncl
S o. P (uou; . ssJHeuoL )
)j
I
k
the kc'oid
;cr sPdogCcnr8gurc*krn
Oaro o:ire =
"4TuPe
//in
Codeing ssnngcPg
q"{qt*),gy
t.H9"
cumbi5urry
ict. otho<':lse
Ic,i\4
krc".-
ktrncfu.xrnt
Zl0ocrype - -.
-.
/.beoe5>
id
=-db"
clcas
:'
DerroBean
"
zllaos2
Noc""-
lilrn
ana rfre
nn"UegrUh*
"br" tgpe(rcstc<oo'
*reo
rnat
lSeooid's
4xf6&rite
aitrbo@irr =''4'TUPe" /
.{ l0ocrgpe
Zbcrra
*t^.-*?:l*{
\ $'ov -r'n'4r.
>
/hn-r,n
id
-' tr"
4Pr1J|,eftg
Ll?af)>
,_-/
vt
z&n
zlVons>
Oulo(I)il
crrl&ocoire
--iR"for
fonevrratq
'ld
lar-r
I/
I
I
61,d"SB-"
c.lcrrs n&
rt,
st l-r.rr .l--p<rmty;'
pdrc,rDfu,0e.
or(fodeftCt
lWo6'2
zbon
Consrru o-rcrf
1'tt'
>
et&16 =''TestBeaD"
Ltreun
id=tb'
J ut*te"+
"
-_-_-@arr-lotoire
c1435,=- DemoBean
zlVcoos>
xf &.mo[&on
grrfirtmO
hle
Qotnllrntilrn
ry
$!rrJ to.fe
arrl
enpbcr't Urtnng
lsrb c.drlurtn"S
1ai
ll
ePk
l t +pu"a )
Curfooldng {e'gf'rc-l+
o.g\\rit m\ng t^i\r eeftc4'
both
6*t
nS Cclnt-cnrr,'t
S1-.6Got<,fnr'r y"tunS
tolnnS
gerko(
CLrtooif.og g'rPorcns
Coqsh-rlclor
iticrHon
S?rkl:s'{e*roo
14)\rr
fuZ ot tlise
bL e&,kd
Vorsa
4 sxpLiclrc41i'''n9 * ?ffi
gtPtnta
Sertcri{eooo
rltq
ptfc,-tns
)r$Uaorr
fh.r
Consracafc*
CLocl
i4.,n* tlO
the c,ll*n;
fh"t fr"&t^n
"
crnd
ctn'sS '
One Sp'lngB'eoD
b-,,iria3
exp\ic\t
aP
1?
in
Pzn
SfrA
iPcoe coohgured
Nho. l-{T'rx6
the
Cfhc",<-olre
th.ln
J4rurq
ouiocniril
tre
ex{xicit C4mStrufL^/
setu4%<rr16n
ccrn
f.
g
c[r-snot conkan
+oou**
cc'ru-e}i csn{-cat.''^
t,{rtos
-+
me
fi'n"U
exer'l-Lbl
ccri,l e
/ ctgp+
&rvter
Prq
.)5P Pr3
P)ace
ro o$ivale
ccfn
SYtucf&i
App
sPnng
&rostrc'cfol / S*rf
Crsoirrine4
ftrrsrrulcr
CorDSr&aJz"
/
I
Storic b\0+
l*.
Homged
btoc.!-dF
Ber*n
C&6) SPnDg
Eeao
corr b'roertrods
sp*ng8enn
rn crbocts
&rqe
"/.>
Gmthulru{
rnebocl
b [ocr<
-"--"/.y
tcrt) 6t Lri c
oQierr in
Eveo bandt'n g
inirc )
_-
- ---'1
placa $e
clcrls
Sftnng Beato
of
l initC)
hr
P\ace 16
Ut.r+
slzir..,. blook
fecorDnded
EusiDess
{_
6h{hs
&nd gtttn3
Clio("d App
Apprer
crn bloc.k
i5
xealre(-r-r*'
-)
b.rrrrfiod
llaocged
oP
Sear1
"P
fP
Java
oleb
o?pl)cction
jar
eie
ddded
fD
LAsnpAr
rrD;
dePeDdent
to)rl
cdde
be used
bg iovcr
toeb
d l-o
rcsoerce
CLAIII;aI
crc{ded
irr
pyoflrcrms
oDd
r,]EB-J^1F/ltb
lot*',,,
ComPt)e"r
.J
\)
) to 'f.cq,n;ze Sf dng c.Pi. qjar Filee qdded
Se{vteJ Contdod /j5p confrd r.( ho re<og nize ond v;
NEB-INF \ iU ftraer Loirr be used \
')
c6eg gpring api
ohleu
Qesurtgef
@e cod E seocl
so'
\-7
'
ohJect
Reglt 6<t ohieci i6 Dor a Serla\izable
ore troo Goluhons
\-J
lbe{e
problero
To solve 15''t
ove( $e netaorv '
\--2
o? Be$t-trt$et
insrcod
sola$onO :ugs Roco6-rs
over ftp nftocrt h \r
lhero
6e|-rl
cGo
u:e
ood
--'' I?oarsers are Se'rl&li7&b\e ohiecrs
\ -/'
tncby
Socc(.e pyDgramo
L6en,ner
ft35
Rocoters
;r;;.;
,"__;,
-
All
->
ou.r ru co,re,j'srrrlqroelrdk
";-;;,,*
I"
collec$(In fiornec'rc;r
orare*s
end
50 Loe cctn
0*a$rtuc-rures
rbero
ove'r
it good
S0ltrdon@
16 lrtPolm onl9
lbop,,nS
gan
&re
-> rP
-,
Read
'-
Senia-t'rz<'l:teu
6eft id't/zq,-ble-
r8-r{rrcnk '
.'-^^ i^rn
o1x'r'Ho"t '{-,p.
trkl
1:
coorc'n3
B**tPt*H;"i1^f
o*tt'-*.,*'
I :
coirh Non- &nr,von'rzed
borh Read "tt.-:"#i::H"*"*:
Jp rou crye \mgnq rd ?e'r*,,m
ptn
-)
(lire
the
Dcdas.{udq}e
Smft:rr
rt
tt{r{V-,o$
R'r
to\th fuocbroruzed
96'655c'c'kc-rf
\--,,
"'
(g3:- vecrt", \tosbT&b\e ond erc ;
ib is rtrt recornerded
OeK,"(F- is rgt fie\e
frleo$ougb
&rrinorioolcr6cr
pfsci,t*r;t
In
kem"Hct
to 6arrcelrrlcr
Col
d;rettg
'
Xt
it
lo
Scnd
vt{zr.icnled
le*rcrrrFrarneux,rk hrr^err..cru<
).or1t^l
ror
onl
eenA
Pesurr5et
rD
hie4'
ftot.
rhaf
oe
to
\-/
\
:
\_,
urtdeteranding
gFR
r s (Res&{rgrr obj
YAJ
IrSa
records o?
l2e
sar
r3+ o$ of
,{rraXlls
0rra Srn^ct<r6
V
7\<jb
u,^Jl
', Qfnq
ALa
E-ocb e\emeoi
Reart
t&t
csntui n 5
e6ch, rtCcrd
Of
oP
ArrcrdLi
mutliPle
Qesrtr
3<-r
6i
o
Gllosro opl$ one ohje* or
vq\ues
to
incluct
eoch) eleroeDt
prob\ero KeeP
aboYe
ing
rrxJliible 6$e{5
dF
Arrog
h me
'
'
dtreull
List
in
ec'cb f,ecurc{ vctlLrs
Eacr' vecord
USer
coPj
aclcL\s
Deened Jav
cts $roon
oG
orro4Li6i
elerncot
eocb
obreLh on& add IfBr ohjeif tD
genefoJrg
here,
Cvoue Objeo
i4tc o
-lroosFcl
ctess) (D*atrc'ns
f<,r
OhPtr clcrs
Qesul t
Sr,tlenlBeao
(o r'o
bolur't
Jhvc{oec,n allli'ng
)
Usiog V'o'tcrss/O"r;Po,
leroeD tS
ctossJv'o ctoss)
oP
:prt=$-e"elA'gSE$e
L>maodi r(Icq
/bt6o ftruftt{-ies
int SDo;
SMng sr,&rne ;
Sfrir,g
6cdd
// t"ltite ser*s {
gen'cnr
...
I
!9!E:-
to '*re elemenrS oF
ohieLrs erdded
Col\eu{6nFrarrc:s6k
Ohlerrs inatder
trrYn c.5 Senncr\iznjcle
D:rro5wuGuYe
Ovfi
ltre
nerrl:o.tk '
to
&nd
be
Drftt6n&cr''Ye 61q6t
Gratricrrframerl:O&
o? Re"urt&
6t
rr.r
fftrqList
;1hre
(t6
o'l-
ne'rr
tu
Att$!6I
6tzrterreruC);
coo' t"r.ke
J = ur'
fiesurr Se-r
obu
ero."r"6'utol
nro
ftrrc.gList(;;
() )
t
l'nving eoc-b
ll C* r" obo ft'r D'r'O/v'o clctss
6i
5rt,a.nrBeoo
-*nr'
6t . sersrr,rne [ts'gu6]ong
//
sersoaa
(rs'get6!'t"g
ctos6
/V'o
ce
Qautr&r ob5
Ancrglisl
$i2d36-Qeoot) i
6r.
'recatsd
ctass
C")
Ca))l
ol-add c8r) j
llroi'tte
*)
611
Ya.ia
55b rqrrrsb
[Awc,XLtsr o4eu
bCd
bCa
Scrdd:hUd
ot
/-" frrrilliplt
indivrduat
V 0,
Eochr recot
lolueg"
ve4wserrtlng
so,
it
cF
is
mcrnsPevrrg ku'n
lslue oh.ltlJ
ftrroiJU6t Th;{s " Sb' objert iS co.t'ted
srrtrrnS 6oe sing\t biS
DT
clcrsg
----"..R",iiid ftra
it
Single big
L\c.v\'
Thjs 6UJsf-
is
Dcrra Tr<.rrsttr
in
ulrclhs rce,.a
hcrlnsPta rbe oai"'tnxa
coUzd
Aos'"-
i ' &oper ti es
@ ro
uoe
need !1"+
closs
fiop^ties
'
uril
ic'vct
c''"o'nr oP Dcfa
A5
G)
G)
Frarnet'ct{k fLjasrrucfuYr
t1c!cF\
\ore1
^.
in
re rrn^n{cr;ning
&ssicirJrc'c-t<n9' (rfUl
cd$rib(Ire
rrotue
).
Spriog
CcT
e n'p'dute dPplic&rtdn
-)
qs
acfS
6s
llodetLrqex
as
tecf<rre
bcrr ed
Pnrieus
c.Pfm s
tl'uca drcld
grx\og ftPPf)s
in \+be"ndle
515.tr nJ c\t'tsS
rrcr
lcfr
Pe'{
A5 \h
Helpelc\oi6
lvc r {
A5 sf$o$Bcctn in
DoJtt
Dor.SYtrt'cfilrS
"
Gllecflcfn
"
Ccr"rrota
Lote1 Tsou{ce
c'?PD
bc.ge
orroanf
oP
Pnfie4].App
CrmrrDuC/dsnltq!)
Broro
qqr)
f<" t riodrxl
Enu;'tunwft(t"',et)
(yierrrq{
skaDesg:
(rrxgtaton
er
tqt. )
|ff,o*TJ
._4r.,_lrl!I_6.,l
:{rnng _ Errplogf e
uT<.qC DBs)@
pfogram
PctsSes dolz(
tD
jsp
----+
Senlr
---
frwagList lern&rt6
Qesutt
uetog
'
using (t+rc$t
fhe
EmpBe",n
obial
recarrdg Resurr3eJ
clca6
ohjerls
otfYla!+ts.
lo
NEB-INF
closse.s
llr,n8eovtcr
no.lq -;ouq
f--+ *.jotLz)
Neb. x rf)
i*
f;qq
l!
clAss
pArH
l---t
,r:rur
lrib &rdc,r
->
-to ese
Jqva
logsrnq
fu /.rlr,u
/,a,.*s j
'/,r)u^
Pr
l--'
EmpBcan . clr.r
ho*r O16.3.
morn'
rr
rrr
rtrtl
v
\-/
'ic,\/ oJdbcl+'ia{
S'a'r'
Thar
mecrns sP cao
'-J
ure
lerdescrrt
'*r#:
rc,vc^.#"#1.#ff,
. R" ^*-:?;il:/;:::'"
*te Sarre cocle of ohj &agy&rn ep<rr crlfrn @ 4 *e
pc.feuo,
nr'"'
*@
Orc ic(va
and *q
6+arernea/-
clre ott(rnc're
P^
bc"se d
It is tiKe xrn I
-+
o5
useRrr 6\ri te gocrcfi
o't)
ePt dccsrr(nf cttl
anl
g"ut'tt''* @F -* @rh-'os
&om idK!'i'
etc'^
@Po-t, p;'*t
--+ inlrodrrced
javc-'^
8'r Pnogcmmlog
cft oFttolon S
mercAotzt''rescutce
&rr
-: useful
@Pest"t @Fo"w*"r
'
Anrprrruons
anA
eF"'
@vetrtde @H,rohli"a
fi.rq
---+'inrrod-uced
netr,.Dafa
" *1,":
ob*
dcto"'
;:*;il{ nffi:l::'
--> Aoooraricrns
--t
:
\-
AII
\v
Bc.a Pre^iuititg
'ive
Javc^
TeatnoloSes
A,r'notc^tio's
krsed
Ej:- Sp;rya't + ,
'---+ toe
dc'tt
s'erkrr'ance
Con
irnr arc
Hlberrule
loef (
ol
rncxuPict'trt'n
3'?+'
3
-. ,.
leu'l
on c\ass/InrcrP-re
,. o.y
?')"
6tdut5
tgood
Jdv-l's+
tm
bsed
desixr'c't
Plogrornicn
o.q/ptg ftnnofariocrs
Besoarce
,'{R?.x
8f,83'x
bcz
dr-tr'rnerurs'
to P$cesg Xmt
glos
trrJSh'
),$L paJsct{s c"r l'"*tl
id'l
'
:
-
rr4og
.rdr t's
'
.
pPtttr'nce '
ere skfPo/'lo$
$prvlt3'xand
eic'-"
o+loaluz
St'o-i.,3 anr,okrfionE:-
a) @Compooent
Eaon aod
rrc.keg iovcl ctcrss os efrtng
->
21ag6(bi\
Pa tha*auocA inPctlon
b) @ govi"
recoroeod
io
ed
use
Rt,
c)@ Rqrsi'ttxg
Ecme
os @lornpcoe.*
bL.t
vearnco/'ea
use fiii
@
T0 Frf.rrm deff'ndcrg
fo
injewc'n cfus
@A*Wt".a
'
noi reodt
3. ,Stitt Annolaltn'
tDe
=a-
fine bant
to
,eg
g\,eo
cln
?.b tased
ZP
*Pu
Ac.rot'.tiring
&nnohatloq
gertu( }Ydeo-tlcrq
CanstrLrct-q
ff @A,ao"i"a
&tkx
alpn
is p\c.ced e6 fie
taseJ
-'
oP
cnrr
f,ru'.do Lued
top
oP
serXxx
[-)
rhon il- ]s
cru}oo:iring
plareA
@A,rm-i.red annofcilidr) is
goP-
brt
Or/oa/>ore
--> L?
@rutoc,:;'rd
SoPlr{
n"+,let)ga4(
PmPatt'cr'
use
-7
\bJttcs Era
d"P&*
arriacoivin3
6v rht t''t 4
Fefa
d.r,r1
\t5u fu
or fas/roi3
'A
(f
OCl
[41pf i rart.,o
r)
3 ------19.U
/i // Testjava (Spdng lnterface)
' public interface Test
6{
public String sayHeltoQ:
7
*)
9 --------TestBeanjava_
"- ' '-'- -;, //TeslBeanjava
$"gef\/rce o').oro$ 6r)
I : import org.springftamework.stereotype.";
1? import org.springframework.beans.factory.annotation..;
->
_S@,{.*a.:rrea
dnrDt<fl oo
'\,'(*
' import java.util.r; + Rr D,E
-\
t,
SPong
Bcan
./
ii gsu*i". // lle cao dts6 place
fw.t es rte iJarl,r dors as
16 public class TestBean implements@rr,gonent
Test
1? {
J:: // Bean property
'-
Dated;
:
.-
r-''
iefu,rrnce
$e
Bra n
pmgml
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"
air
ernce ire
ir!
top
x1?:1ig'ff,t;"jflffi_
':./
:i
.;l
lr$o:/,fwvw.sp4nolamewdfti
rt{
to
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"
,
r.l import
importorg.springframework.context.support.*;
org.springframework.context.support.*;
: public class Testclient
i;,' t
1
u
.
.:
1".
'
tjt.
'ognj2e
Goa
ln cllssp*ft+
cae
:-
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
is',+beanobj.sayHe o0);
Illmain
y/class
,l'
.
-------------Tesflnter.java-___-______
--,{rruglq.ra..)
@orn2org4.r anmrcrr
laya.(t$t
bft
clq)r
so,
$re
Spnn5 Rzarn
''
fie sF'iog&'nlai
5gontextannotation-config /> f>
.t-?cond:comF6nEnEGn-uase-package=,'.,, /> -->
rn4v/?t
y;
predeftne
sorino_aoo_2.5.xsd
!++tluv$*.sor!nolrame*o"l
:',.
ii
@ $"uice
as
1l
i.
a}D't add
Page 1 of 3
4Dnol-'rttoos
spiog
spnog
lcr/
coyr
coynmrrt,s
-,o56ln8.Jol
(sPi"g
z's
#{''}-,
sp",l"g Eair.e-*ionla,-1,urryc
3rl2013 9:46 AM
package
i0
l:
72
73
?4
75
package
76
import iava.util.Date;
import java.util.List;
import javax.annotation.Resource;
imDort iavax.annotation.Resources;
imbort brg.springlramework.beans.factory.annotation.Value;
t'8
;9
30
import org.springframework.stereotype.Componenti
import org.springiframework.stereotype.Service;
32
{J
TestBean.iava-----
pl:
racomoonentc'tb") l-o
ai
iirttic itass
{
8$
rdsTB.-ean
&on id
implements Testlnter
//Bean Prooertv
arg
9',:
t5
ti{i
@Value('S{f(iava.util.Arrays).ggtig!(Red','Blue','Green')]')
List colors;r-r
':i)l
".tt
@ResburcL(name="sd')
{
ir*
. 1,-',,-.
I rsl
l"iqc no
^^.,o,
ffiFi#=,0 "'lj6'i[J.t?r-'(.,(
li
':
p-fYa
d1=d;
@Resource(name="Up')
rt
",1:
11-i
Y.gq
u l)
lin no '
13
tr
this.ul=u1;
ai
.,
',Itt
i lt
':2.
System.out.println("no"tno) ;
System.out.println("dl "+d1 .toString0):
System.out.println("nicknames");
:2.t
for(int i=0;i<nicknames.length;i++)
System.out.println(nicknameslil):
:la
System.out.println("Colors="+colors.toString0);
",2:
System.out.println("u 1 ="+u 1 );
return "Good Morning";
:21i
":
2?
'?,;
')
l"j,
:Jl
:.
package p1;
import org.springframework.stereotype.*;
@service('ub)
pi,rL5[iE-Essn-serBean
Cdn Gleo
'
3rl2013 9:46 AM
13? {
liB
140
i41'
.,42
143
.139
return "DemoBean.msg"+msg;
'i44
|
.l
45 ----DateFactoryBean java-------i40 package pl;
447
i
1
43
4g
import org.springftamework.beans.factory.FacloryBean;
import org.springframework.stereotype.Component;
0lfrDeH
'!5-1 @Component('dfb")
retumjgllqye4!!.qqlq}
.I
157
i i;l
j$9
i ait
131
->
rd
ctt6s
ohjeat '
lcecrttn-t og_rf
;--
1e:
'tta;, I
i 65
package p'l;
ie6 ------------Testclientjava--------:
$9
':7Q
.7:
.:
import org.springframework.conlext.support.*;
public class Testclient
.::,
:
7i;
void main(strins
ck.relresh0;
"'l
:!,
':!
-:
s0)
fublrcstat'c
..^ r )
\
II
--ci
src'ns Ae
ora\-cb.a o(
l>t ?oe!'a1a
Testlnter test=Cfestlnter)ctx.getBean("tb");
System.out.println("result is"+test.sayHello0);
L-, To
mar" Cr6arn,(
tocrli
ra t{c cl"+e;
E:\nrps
rj
F!\ft?g5\srr'\06\ss
Jc,t
*r.s
;n
r) cornrDoDs -
,")
''r:il: ,r"r,il:f
'
S$
+- *fu;'^' t'
trdoq
'l-----r
'Y '
clors (F
a\-,\ssPl'{it
lo&io3 'i
qr
r's )
a
ft\tuHot 9&,"r +n'hrl"{""t
An**wrv -'
+r ..*t-)).tc,l
cl|q-'*
c,(Sh,
N"{}.1-
iur.e"
"t
9xo,v,,r-r
Polda t
Page 3 of 3
oti*i1n
R"
annofafions b,sed
Sfriog 5 x
Openiog
ot*q
File rrrcou
C.recrhnS
------+ irnpc*
o *x*
P'Die4t
----r
&rewr,5
in
@ o(
Yee<,r 6{?n
-+
DepcnderrS
llSEcliPse f,DE
Grcnercrl
----)
Fn;sh
NOIE:-
^n,'.
NoEioS
;"rr
tolth
**i***,
AnnorcrrlcrrBosed D#'odecq&jer-rlon'
.
,l .--,1
tb*:
**"
dcnre diretdq erq Bu.nP'oror'rcr
arr
&il6rt-t."tu6 "'-lcfea
to
!
6tIoalzorl
.Iqle*tooS'
------+
iF Dq."'Aenca
r,'ie4lcro
: @r.,iu.r
or'9rorD ioit rrrerhool
to
ConPiure
----+
,.- @PoatGn6irctti
P*esrroX > tT CooFurc custom deswo5 T*'
- @
)
springBe'on scope (sioglfgotorele
---- - -> to Qeo \
s,oPe
are
, @
csotrrces lbcrf
ffi..f,*
to Ycogni?e sprrng*eans 1d
'- @G.por.r*5con
A*
.,"ft,
4'r4 rc*ar""w^
ft:/
,, tr^..,n6crs
Arnror'$crs 'e
--
ru*"'tgh
[" *d,**
:::U:t"
Yerd frT6
x) Pt
sPnn35
lrc,nd{Xrl-
x)
$iucrn
fie ifiFils.
ft., spxo33.o
rshods
T(sutfqrt
c'f'
otf oalrs
.^..
e^arr{r\e o{Prr
anrotrrHcros bosecl
Ccmrgurarton
+) q.,{ gpi,n$3'O
\
exc'rnPle c{Pi'}co}lc.t
bascd
onnotcr-Hons
re?"r
capn@
Onno\uJdons bc'*ed
4 fte
frcrurgk
r.5flrn
-deitrub
-t' "' t
/ @P*rcanst'"1r',\
\..,nda-'r
re
ot[ot[
\ge"o"*l /
custum
c.nDa'itJoPm ct'ui-
*fu
Fotof1
onl idesrs
aponQ)4
it
m[or/rj
hdhdd,f
.krg".,",' .-"1
LjL c4l1 Glso cse Q.In;et
td ciJo
annutafio4
otlobllr'ri
JqccFl oo lo rlDc e -rir-
-fi"sb.rn.
.
1
3/0/2013 9:46 AM
>>>>>>>>>>>>Example Applications on Spring
-2
yt("y""'fl:lTi:lrt"T1--
public interface
5
o
7
I
I
10
Dem
Same as qPr' e
Annotations(lOo)>>>>>>>>>>>>
"f
on
&1 Pne6 in cLA6sPAft+"'-.pitlio"s @io'h'u
-- /, tr.,]
)
______DemoBean.iava__F_________
&' @ tn;..*
import javax.injectin;e-a-
-;
import org.springframework.beans.factory.annotation.Value;
11
12
13
14
15
16
i$8l1,if;3lli$TFilfll'i:*-t*"'component
public class Dedo*Efean implements Demo
int
1
{'
aoe:
'19
20
wt< e
--)
R"
@."-;("Li
avg;
@lnject
21
22
'i..'t'/z
float
17
18
li'|
tnnm6Lar<s+
--name;
this avg = avg;
fie
|nr&tlff(,| v.lt(rds &ye oJgitnd b
6t
Pcrrc'met(rs oJ-rd
24
25
?6
27
29
30
31
)
)
DemoClient.iava-----
import org.springframework.context.ApplicationContext;
import org.springftamework.context.annotation.AnnotationconligApplicationContext;
import org.springframework.context.support.ClassPathxmlApplicationContext;
32
34
35
36
throws Exception {
Demo
// calls B.method of SpringBean
String result = dl.sayHello0;
39
40
4'l
42
43
lin
ll
-$,e anroralioos
C/'jnfcttr\(Jl
::'i:il::_l Tri::_-15)
46
47
48
49
50
jdbc.driver=oracle jdbc.driver.OracleDriver
51
db.pwd=nocl
(5",
envir
obrhc'a
jaretts
App.proprties
in
62
63
64
65
66
ot
68
'
os appn@
--------SeleclBean.java---------package p1;
60 imporl org.springframework.beans.faclory.annotation.Value;
61
bsei
System.out.println(result);
45 3rl_R*1':g_
52
53
54
55
56
57
58
59
lir'e nO
AGrvatts
import org.springframework.context.annotation.lmportResource;
import org.springframework.stereot
rcr orso (,.e
Brc(Bcz
@lmEIlBgsourcel"classpath :/SpringCfg.xml")
*,,*.5r'*#r"'co!flpl{"lh*t
r,-g.r*s
&re )a co6rX4""a
@ffiiGii1qgi.'rluoi,;r
6?-et
:Inicr-rs Vatoe Gtl4cltJ
kc--
db-,-,s..
' k 1 off.
1;n<
60)
"'o"'
Paoe 1 of 4
popotr.'.*
h't
#r"e)
$f i{
.,
3/8/2013 9:4&A
privale @ValueC'${db.pwdl')
70 String pwd;
f,re6tlnano s
71 @Ovenide
72 public void readDBDetails0 {
?
73
System.out.println("userName="+uname); b B
74 System.out.println("t"""*o16="+pwd); I "rrhod
i-pt"t'rtu *
75\J
76)
77
r
78
79
80
81
82
83
84
85
86
87
88
89
90
xsi:schemaLocationrillBJ&dpgShg.ofg/colg
--springcfg.xml--
http://cxf.aoache.orq/schemas/core.xsd
91 </beans>
92
package p1:
93 ---_--------Setectctientjava------_
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
107 --------------Demo.java-----------
methods cfg)
109
11o
11
112 ]
1.13 __________DemoBean.iava__________
114
1
116
1
17
18
package p1;
import javax.annotation.Postconstruct;
import javax.annotation.PreDestroy;
import org.springframework.beans.factory.annotation.Value:
import org.springframework.stereotype.Component;
119
133
,tto".
*t.orintln("DemoBean0:constructoc');
135
136
**J**gfnrtl) n(d
as
cct'sto'n
,\oit t)
System.out-println("lnit-Method")i
if(age<ox
Page 2 oI 4
cntJho<.\
137
138
age=18;
r39 )
-dert'Db()
merhod os cssitn
fte'SDestost)
rr"aKe
lli
-->
'42 '""."*r*,
public void myDestroy0
43
44
45
46
47
48
49
System.out.println("Destroy-method");
age=0;
50
51
52
53
54
----------Democfg.xml--------<beans xmlns="http://www.sprinqframework.orq/schema/beans"
155
t56
t57
bl *ln
t58
tt'HcT
161
</beans>
--------DemoClient.java---------
177
17_8
)
/
&an
-:-:---'
---te$qeeljeyeqFir<ll
package p1;
182
183
184
185
186
187
188
189
190
6<rrercr,ti
191
192
p-ubtic
bislTesiBFan
@Value("z1
6t"*
htv&4
11U2O12") nn.d;R'Y'J
196
197
198
20,4
*t
L,
202
203
(reoF
qFa", obi rdir bt
Ys{'rtsocHo5
Bea n
194
199
200
201
impori iava.text.SimpleDateFormat;
import java.util.Date;
import org.spdngframework.beans.factory.FactoryBean;
import org.springframework.beans.faclory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype-Component;
* -'q*d
ff:H?q?:l[l*f,?**
mplemqnts Factory
193
rG*t"t
God 8l'tr$lj)''"*'o
("tu *,,o r\{ /"dilf l*"ar")
160
162
co{r.,n<,
t59
163
xrnl Ble
Date d=null;
Si"f}i}ffiP
,S;i;-r,-,^("setobiectg:restBean");
Ir5'ct. c.^'dt
\ ' VdF '
SimpleDateFormat sdf new SimpleDateFormat("dd/MM/yyyy");
J
Ld
sdf.parse(dt);
]catch(Exception e)
Page 3 ot 4
14ry. . uli
2O5
206
;6;
208
209
21O
211
212
213
214
215
216
217
218
System.out.println('ExceptionwhileParsingDf'+e);
g'ves
cdtl' Dar (14s3 ohjG
'return d:
.krvh'
System.out.println("getobjectType0:TestBean");
retum iava.util.Date.class;
System.out.pnnflnC'issingleton0:TestBean");
return false;
219 I
22O
_.---_-----.Demojava------
221
222
package p 1;
227
---------DemoBean
228 package
229
230
231
java-------
l:
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.stereoiype.Component;
232
233
@Component('db")
235
236
237
2U
'
238
239
240
24'l
242
243
244
]
--------------DemoCfg.xml----------
245
246
247
248
249
250
251
252
<context:component-scan
254 </beans>
255
package p1;
256 --------DemoClient
258
259
260
261
import org.springframework.context.support.ClassPathxmlApplicationConteld;
public class DemoClient
262
267
System.out. printlnC'Hello");
263
264
265
zob
java----------
Page 4 ol 4
Modu\e
-a
DAO nodu\e
,l
oq/03/20'c
To Provide Sloba\
-,
in
Neb\otic
glves
-iomcCIj
givgs
/ aeorlc'eulon
-lorrrot
GtossFrb r6ist't
JBcsl
gives
[np
Use
qist'X
o{'A
at'-'
r\a'g/l
a( JsE rrnd.rle (
jar sl'o)
Soqal
&gq2.
obj
DeYt
c(Yc kDo
,4
-->
-----+ objl
-----:
obi1
sl,-,1s
8,3'"-
PP
{etepbc,ne
Qmr
Co
hlr.
t3;o\
"eglstg
Anl
CJc'.-.
f'earr;Pe )
S6
) to ioltrc'cl
Lo)rh DBsk
iDkYaLt
if$ &'t'Pl'go) 1"
oirt' Rc6tsq
A90a
APP'
- -)
Pzrco
A'e6i5hrS
gNes
o{,Pticcfkm
rl'err
trlologic te3i5rt'J
Grfcr*fisb
8e'6ve'{
f.ver3 crr-b
Yegi6tY$ SltD'
ctrrl
drectcq
e)
--",
fegiSl'Y
lloint&io5
in{b
as
keX
vatue p^irs
crod
&iHbcrl
---+
4,-
eirher
Y.ttu.o
Pages
hindoos
kaf
5 31 P.xha
fcorcacry coise
Prop,i';
eJ
,".)
to
(rear
filesgsi-cm
g+ tbe Valueg
ti{e )
Nebl;c Yegisr3
t ft"\
GtossFsb
DN6
Ygl5q
'
Neblogl c
&nnmefelcd slLo
lersicrn r
Glloco6
ro'b
to
(corryzrfiole
oirh
jcrr
r'et)
dcnnaln octs
Erer6
clorrgjnS'
c"reele
ds
, ^ aryucel*lct
^^^7:?..
oDe
Sexuen
:161
l.^,nse. ecornne-{ce . bect. ccrrn
^
cf,rn
tfiLl-D' o\ode"
lG@
fo doconlmd slco :
Nebl.ogic then rhe
Sorx
uslo$
a compaoX ore
f,P murnple prolecm op
c'fllwteq W
Cornmct
a
onlttr once io
instarred
5e
bas-i s '
ltxbqi,c slco coirt
cme 1r,,t P.va1ttf
olr
P"' loPtsieffi
defuirrt Port
1o
*)
cDilt
dorre'os
procedcrve
fu
6rcP-a".- 5kx\
be cnea}ed
C-l'eole
L-!'Se.I
deffne dtrrrorn
----------'t ffitrem5---------->
Orocle\nlcblogl
Ncbtic '9;n.x-tt
@cnethng 3tctrted mirh'
a doroain Conhgutd
------7
@Grt.oetctrc
DmcnnNc,-me
ll
D.l
tlc.vlort
jcdab665
Wellryi
cio'3
c-
kfuo{
6oicSbfic''rl-
"'
N?xt ---t
ln
j-
__--________-_)
Nex b ------+
fi
adm
inlo' ofrlr.;.F\r4
v.l
--------a
ger
prccedure-
Ltstenpcrr,
SPrr'cx
V'Jcbli. iosl-q,'n<
,lrcblogi
&d!?{
qdroin
gitr,-
Senrc-'r
vieco
5FcP-s:.--.-.'...Qdroin
&tr
tbe
)
Grosole
6rvab6
Environrrfrri
Viap Ord i
Admi n &rtx,r ------l
-----,--4
'9'rve{5
code
lekrc'Vry
crn EB trtble
5et0t -tlbc opexofians
'
l0ol&+ and
reb\nd,unbiod'
!ind,
------r \{ Con perftrrm
bg using jrr& code '
list
JnAl rest'1
-----
keePiog o$
t\5t
-*-+
UgCctre'
---+ Ne Can lxnftxm ingerr,
bind
llgDorodna
and
bg us;og idbc
Dopova
r^r-btoglc
4 fte
--_--a
co\rh
picrna-"J
alicancrrne
oPetrdficms drt
jtnt norot
in
rci'srntr
ftr. .%\5t1
narne
Oicrmme J crtias
coiTh
t
ft,*
obar
Siswx
c,b!f
$arbennS
611 [lndrogs
Telcrnd
jdbc
-I0
Conoet}l6-o
crecrre
this
Ctrn
PcoJ
dbuser, du
Ul(.o
(U'W
o"
the
lcrra opPn
---==-----;-\-) Df3slLo
,
JdbC Drlvcl
-l
.!)
bidge
,Rgirt?
Namin q
>
DB '5ltu'
slt^l
Itanc,gci
1
Namtng
Toitic^f
lO
D
llc,rn.ge
Grnfe*t Ohj
crc$e
*Li6
T'iti"f
'iS
rhe
rePrserfs
Jn'ulc,rConre*t
Carntcxt
fr'urry
r) ?tovi&.'i url
itere jndi PmPtxnes
b*dge
Olo
r<6tstry riLr:
tt-rX a*e
ctas s
Slco
oill cbange h*ed oo the refi't"Y
Undetstz,n&og
Jndi
c-'le
(lJE.
Tfte
root c(fnrex t )
@toKr.f
(o--ouir)
(urta;'g;
Ccu'rrut )
(u--"*iz;
(c---,our)J
Ccunte*)
9--*o
$ibraor \s $'!(onlext
o?
Sarbga CcrnFtnt
aoA
iE is paenr frm-ffit
o( &rhnae,
&dU*_l
N0IE'.- 1o
recrl
Comneui(m
f*
glCIbar
Jndt
fsol
ftrra3o<rrce
tDitl be Pl&ced in
visibitiB
o$ed
nicFnoro-, fo.)
cLLtQs Dc'n
'
tt:/loco'tbusi: rt-tt
Eg"-
*@nrirca
Jndi appn
to
esrabrish ccroreQ$cnn
blt-o JalaGPPn
on4
u*r"rtdcrre6isho
// JndiConnlesi.javc.
x : /i.t,
imgnt ,Javax.rr.,rniogt*lt' * ;
rrnrc-n
O{!la
flabtic
Jodi Coon?s
oA
{ o, u
-tStang argstl) 'fi*
/ P..p.,te
J"dj
Pr"F,ttl
k)t =
ht.fx,,
(G*-t
h.r*o
(G"*t,
rrro l-lcsU.r.Ufetl;
"'d-b\otl
In;riorCtrent
liaao
tleblogic
InrrrarG'nrcxt
ic -- rf,tt)
etse
!lt"*"
ffr"-
t"l
LJtuir;1
obJg^
(ic== nutr )
S'o'e (" Coonil-kloo is rr*
S'o'? C
c'iti'
4r:os,or.i o0 7
16hi.qr5h'"o>
lkof,r..ote'
ExcuPrtao
Cotn.rr*-,
is
(l't;'
estu-blishea
est-zoushed
rnradeoare \I
")'
");
"-'-
r,tty,ruE^r-to,r\se'ruor\tiu\nrlto3''t-'
io qcds Par(
&,rcrx
.ind,' Oparo.tto5
(-, -;
(-;
asbind (-r-)
unlind
list
t- )
ulaalwt3
jnotfr
looP''d-)
yelaltd
tD
dS
r3
Et-d&4-|,C
iqr.
f'ftP Dofa6lt'adcrtY
,_-/
biod;ogr
bodioga
Lindiot3
Eoch,
, NhroiogEo<.roeror.t*
Jn61
1-;5t
EnunreratioorCf, )
'iava
t
s
o, v ,', (6un6tl
ongs)t\mrne fxcr?ticnr
t
/ P.et"rc Jodi
Ptog.^tl<3
(cr*tur
Jt{rrrA L -
, PPOVrur-t
bt -- rr-u
5s437
'|-f*5p'ue asrn% ,,
i')cli'
coNTExT- FAcloP)
l'JI-rT
ti
'r
ti#fr'51-
rl'l l")i
uRL ,"btt//l-oo'rb6t:"'tntotqJlc'
javoooss')
'
,.. ]: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
bt,r^* ( Grnrnt. Secutrriy
Parr'rcrPn
"
r
.,ofi
- {@rbnt<}'
'
t'{reso
, ,,I_")" llA'uo ca rhe bi''d;ng
on
ri5' (''Jot't^^/
NarniogEnr,rnrcr.tlcrn n= ic'
Ph;re
4 '**-
Ine'hc'tHoret))
gives
9iveo nicpnemc
clclss narDe
rbe
o4Yr
/t's"
3 iiu*
3
@r.
xample
oppi'icol\oo
{hteno's
oP
rek
on Jndl oPenHon6
Jb-stJ"ai
java, TeotJnatr+
@r@
$6s6fisb
-t *,
lotoaHoo &'vor
veriw:
&rone
slLa
(Orooeccne)
-:drt'5t /
Vc'{s)cn: a.X (Co-fariule -'nq
0[nS(Irrce
anlu!6 to
C'rcof. donoalo6
defu*nt poftrn-'O :
C"rtcrgsFsb
roirb
Foce dure
or
tlul
tl^rrr
ulifio&t
i0 crtci.fe
'
de&"t'rt &r'aio
to d"ttolnl
I0
To
accers hlcboQfticafloo i
caroes
co,rb
{\lc*3eon,9
NeTEoDeJDE
User
DeSesS
8o8'd
!e
rrsed
'
DorfdD
iD
GtctsgFish'
erre++demaan
O:\srn$posavtr\uin7 oeodrnio
o:tn
c*a'te -&morn
--
cdroioFx
rn#roelo-e
t-
--
46+5
--
user= tstusr
mYlondoz
proct'dur
6tcp-J: -
6rr.o
mg&rra;n
m5dorcc o t
server'
.!i-r,',
st&r r -d
omr.in
rngdcnnciire
mgduoai o R'
*tnc"
t'"1
o[,cn Byu,fc{ totndoco ----------r Tgce ths Sttuott'X
httP:// locorhoot
Usrlt)ctme
pns*ocnd i
6rcP-n:-
giv
rcstulc'[
z(nttrsol-ish
"rwI BiwB
Jodi prop-'rrres
,f\l8ishr,J
GtcsaF.b
fi6
closb it
"r"egrsrng Slrrr'
ur) i
iioP://zbcst>:
e$:-
iioP;fJ tocotnosr
ovoitcLble in
osrbe buitt-in
.#
GlossRsb
c\&ss n&roo
lincUConfc"t[crUu'X
prurtdcx
'
Jndtbvacoin3
AgonraflonSttLrur --------i-
---1
*'\
_---+ !6in
tOsruse,i
$ $)osstrsb rflisrr1
Odmin Coosote
t$+O
"
- admin 'ic'{
- ee.jct\
oppstw - ext' jar
OflBerv
LWrtt
oo>
' +6+6
Jr^r htc
App&nrp(\lib
[rt"lt'S
--rb"J
=,\s(,o\
OriGilable in
D:\Sun\ Ar4sc"rt''r\
\ib
&tao,
javaee. jar
i\-rqir,sT(i' ia\ '--+
0r \st'o\
hp'r'rur^\ lib\
iDst<'t-t
\o-netrawn\
'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
iioP
--r
q)
re
JBcas
A{\icc*'rm Servcr
TuPe:
Vergic,n
Veodor
>
9ive5
S'x
/oa /,ro ,e
elrO
[euanc*)
5 clektut t dorrrio
Apa,r,e
dePaurt (dePc,-rt
hJeb
6l-ardar d
0.ll
minimGl
'lodo&rntoad s/co
AS ziP
Jb6s to instu-[
61r-r]
deh-t+ Frrr no
5;!-1'oo
6otro Cfo
o4"rs *e
$e
,grver/
".
procedure 1o See
the
) \bio\ruo'bctl
s)
cboapllccrl'tcrn
LJoo.s-born
Llse
&rtdert
5'x
re
Ate
moue
BrnStr
tocrrd
P.t
sevu{ '
u;lrdcro
v:rlrc forrao'ng
o'Yl
99gt
$;ue
tbe jtPw6iore'ed
Odmin Gnsol
roc,re
Jndi tre
-------------)
Selerf
----------5
1l5t opcntrHcrn
inv6l4. e
der u{l
clc65
name
:
:
qh
y:*::'TWS
-*T"*1,
otfl.inJ.inxrg'ces ' Na-in8G'r*c^#"f.,tF
-._t
jng:
l/
ihp i //
zboat
2'. zptt'flo>
toccL\host
: toQl
irs
*r*au,.'on
<ibosl-h.m>\ ct;cn't\il"'-rosi't
,ic,r
RreS
rerlcire
in
Closspar$
-|o iDKYcL+
Loi$
GlassFsh reSisng
-yt .jc.{
javaee.ja.r
aPffe.lv
udrnln'Ja1
- e"jcr{
aPPServ - ert'ja"t
OPP5e-trv
imq,jms'va'jav
logging
EPi'ia1
qs9!
->
---
Sprin$
jndi provides
i'
JnaiTempc'rc
inf'rrrctl{
"? P"ft"-t%
USes
pn4rot",rtl
pbnn Jndi
c'n
a5srta{}lcrn lctger
UB0s6 rftshu:
tCrt6
plolr, ,Todi ao
6n I23"t'X
f,ndi opr'rofion6
o64 tvitl.-,
S;r"pDPe rbe
elto'
-)
-t
jndi oPuroHon
--o p.nRnrn
tttvecotto?
->
lW15
u q*
itdi
[xcqHoo lbnd\ing
Prurcrm;og
JndtTernpbre class oU
Af?: "#:,TfiL'
ryq
Spdng
fliuq
orp'ra*ons .,r.
pruiuirrft
of
Jndi
rrPd;ficottc'n
'
ProPonle-s
&feacare
Pr-
b3 .Tr,d;E
nPtre
''La
6'
it
\v
toYen
Gs
Spring
P[cdnJndi
&on
( rtia it
apd
norhing
P'DPcntit can Le
lt6
&t'$6t''""d
'R^
D1rt&,qlrgelrron
/- \ ,..r,'h
t-) ond looFu+c-) rrrthd
unbiod
'*(D
Page
..,
..''
ft,r
-,
6rn"6Jt'ai
Terhnolqie-6'
LoXer on plaro
o'bgtlc'cdcrn
Te$nol0gies
provides
Spring
lben c;:e
6rpe'ic*tero
cexfcuo
&,ppofro
Jorho pnaeJS iF spri..,6ner f;rirs
CalrBc'ct< lnutcrPoces
_
---)
ctors *Pk"
fte
in
rreAods irnplemearei
inErPace t*rose
t0 irnplaroent lhc'l
irnplerne-rrrorldn
cla!5
is cal-led Glgs-o2
le
SCenOrlO :
Tbe Spog[ndl
su4ptie
J''arlemp\orc cl3ss
t{rrit
pfurrrr
Code 1-6
RAIrc
v"td';;Ct*i"3
q0
as)n$ JtaiGltb"'L
ofrro]lcm'
frr?.otn lbt
()
t
naq.o Lis ren er (neto t.J inaorAatrutt
jndi
o.aa N
'
n
^,.r-1
ogsrem'eri(o)
3l*rt"a
5//ilnach.{
",,
),llmc*laot
[riinaooEu'nr
-t)
co-n
'
.In'tbe alaove
cod e I
..-'
o)
Oddbindno[5pv
Onf,
O[pr
&rturo(nt
crs rhe
Jnrrx
Anonocmocrs
hti''$
og
is 6vortidd;nf
c-loss
drc'f exren;" %t
NinaooGosrotlh)
rncrboo\
6n
trd,CoLtbacr' J:rtcr8c'ce
ioF"eax-rn
\vz,
'J
'J
xrnt
gc.me as
to'ok*t
'J
\)
'
spno?
Af,Pr
Oemocfu . r.n
ft
Pg .
hc.rrng
V4Lo/e
*-,
c4{0ed
S:rne loglc
r;\nws
Dorc
i6
.J
Excrmple A1p1ica'Bcn
the
me,rbcrf
c\aEs.
lrltndoo Adt'Prev
c1---+
Obje'f
1)
a0dD
grneco" 5t
ll D"-uCtit'rt'&vo
frn
C"t/Lllc&t-L|t
,stnhic JnatTe-plare
ItSert'n
nltkrl
lrsnpLa-k
"'
4* ett* nt '
tt-plqtt)
siTexnpla'te(JnoiTemptare
uo'U
Wbt;c
{ *r'Kmplarre = ttsn]'re)
&
aro.g
oI' \
c*x=
tlr"*a,
tt-otc
Etccp{ort
F.-ft*-Xt 'Av&^t*^w7
(ht
cro'.torr)'
'--
JoarG,rboo<L)
rt
"n
*3t
1Ez'c+
FCG+er-a!
dor,,Gnre
.*:]
oUj
eLP'f
ve6 Tni tial Gn+e" t
P!b\'ic
lq;'
6',
11*.
Mmir5 Erwnr:wnc,t
-'(D
66[r,
rE.
ne - hu llore C:
''
= cirliBt-C' );
;l
gu\l ]
/l dor"O*c.r(-)
J /llntet
ctoss
bg
exec"ie C-
dolnC-onrext
P"P-q
/l
St iog trnvi{crqrocnJ- iP
"rnrurdit tlt-n
thtrt
) rrrtt'ocf is Coue
innet
ihD/i
r'''{<"e'
CnarOub"u
ct6ss is deP+ni''1
(- ) merbo.l fer)i"3
ltt b
* 'ieva
r lava krocCticn-lhlz-btogic
llrrrire gr't thcr't
fn
exeau'rt
-lbiS Arono&rooki
3 fl.rots
,1avac
'
rcroplare
CIct69 irnple-rncn$n X
$ /lt"r.;n
ll>
' nextC);
"
t)* "
//ul'ite
TeKr{
3
6.* Nc'nne
ne
.nethocl
coe use
ger.ud \s
eae
*rte io
sr.rqg
Spnng
ruooirg rnole
dcsor
'
ro''crhod
csnrcnD croS
to
acterve
1e fti%
6Pr:ng'a Brriirin
Ccrnocctto.n
Ib 16 not reCoroeoded lo
-)
@ rr-,a Pa:rt JDBc crn Pol
APode
-'
(Nrong
o$s
DB'P
CsPO
crYn
P.rn*na"a 16 g'{e
io Siz.od%lone
W*
cL$aie
thc Sonrr ).
0
--+
lppsf'atqb Baitt-in
fo1 acrmp)e
Apcbe
Q'n
pol
w$app-n'
cLtiuz4dlc/n vePr'r Fe'u
DBCP
.|UPe
: tblrd Pc'rtt
.inr 9;re
closs
zpring-trome
oafr:
>
orB' O{aahe
\llu\
'
corrrrooos
ic'ravrto- ca*rtans\
cnrnrrsos'dbcp '
dbce"ic.v
hgc}tra.fu'nce
clctK
dwaC\r'ssNc'*e
initiatSize
P.ssdor
Ltt \
use{rEm
framgle
o{P\icaHon
r:\
App5
h----_') sP"Dg
-
''t*L
Apo*eDBCPAfe
|--\
I
- DBoraaarznckufl*
r SPnngcP6 'xrn
\
6prio6C&6 . xrnt
zl DocTlPL:
zvxt)6>
^*")*;
>
(brnrrdns. dwp, fus;.fut.$ttott4
o,r,,arnrlc.
d{ncf.
cl&ss =-',org.
;6=.,dbcp,,
zpljffr\
"
rrtrne = dri verCl&!9
Mrr'
\blue ="Orcde'idbc'
atire,r,O,ouaD,i_,
zprrlrxrnrrtrrf=''url'Value=&bc:ora"le:rho;@taorho51:l$>ir{rrcl
zpmYfrb ftrrnd = t{sornerrE" \hlcre ="&ott'/z
F)G.ro
='
)>
6"
injticr-rSze- \lalttz.'^ lz
zllrcn>
/-l&c'oE>
l\ CmnrosDs
o
o
spt'o
ftres tn 6;a55prh
7 \ )ib\ ial<c.-ttbcr
zsPnog-ttnoe
.i"r
Cwnrncros
-ltrying'iat
ye
bap., ttuna lxrfig idbc
"n,
ftre
Ccrn
Poo\
giues
iroPorent FDFrrtlq
{xsstDord
[J,5e1
[nioPo16;ze
ffux?mt6ize
iduc Ur t
&iver C\oss
sltl
caPo
c'zPo
- o9'l'e "rrrt
ao.--,
4u-tq
Pxarnple cfplic&lloD : -
6aroe
6g
llrevio(rs Appn
iD
...-.,
Sre,
...,,,
L@o6,
Ad3.l\
='db(P' cl&s6:
,,
c6?o.
\lE:' r-or-(r
-^-r..,nap.13,
"ctrn'rncFone'
fuaofat''<te"
Gmboftnrea
-
c\. - 'r,
/>
O<rrel]'\'ev
drivcr'
Out'cJe'idbc'
\frlue
="
zp.Dqtr1;5 Doroe='6;q6Class"
id
6dbc', orooe;
{"':
@ lDccrlbo6}--
J
\J
'J
\--l
4aPutU
'-)
)5>):ool>
J>
lqPe{g rxlnne= prssood' Value="figen" /t
''p61ipfol6'"zr'' "'laJte="6' )=
L'./fD..JIs narr =
11JrDWtrH
'J
'..-,/
zlwoo>
iC--" &b"
zlxan
zwr{rU
zl*cio2
"d5"
oerne--
Eratt\
rt(='dtr.?"
>
lz
Zl&aoS>
\_-/
\J
0::
Uthot
o5
&dd,'rksrCIJ.
\t$e
j..t
JDBc Ccnnnaficrn
ttrrrd
tr
$e'ruCr
t-*t
f; re
is
lvlcrnoned
Sfyrrnt prrberi
is
wraLncrled oDqC
oovironrrrrf..J
\_-/
'
trol
$dk'i
b hooe 113ef in
Stcodobne
(cnl
Oolne;rrlon?oo'l '
Desrtoq
$u,t'r pruje4
'--z
ftpocle Bcf
thcn
lep\o6eecble ucbatpticallon
fo."rrnect\cmpct)
\."?,
LLsE
anA
alt-
Undecrc.odiog rbe
PioGsS
op
Worbiog coirb
aod tils
li6ibiri[ h-i"3
in
slio {t BloErr
A:8,u"f
Dorc.6oeKe
obj
<oiLt 5e
octYr
hteb 6e{u<J.{
Jo8.Dara8o(]rte
Ohu
!@ @'
99o
ofigo
(on'a
io,re
futa
$rlrtc
O$
->
aizl+l s orivw
4wf
U6in9
JDoc ConrEcfid''o
lli)l
Ne Can rrrru.
Dfi
A\\
6onnaaficro
no.4
rnlre Ctjef*
c,pplicc*tcn-
in tcrc.artog
coi*r
Coorearlon oql'a
o\\
meaas
Orclde
ConnecH6iP:o1
D0 s\or' Ey cDsc
ord'cle DR sftl .rd'r
Srme
toirh
Ocrnnec$ui
Ye0rEnJS
ry
on
*sl
N
C.rqnecfi
t'to the
6e1ve{
f}9l
Dicrgrorn
crfole
JDSC Cdnnedcm
slo
trrl rh Drd
&'/eY tD inK{coc-t
ob'js'
|n'liog gpBa CorreLtidr'
ond
l_o
1d
Darc.Sorrcc
CcDrDe4i<,r,poct\
Cr;cnf &ppl)cadoo ger3 SDBC Conrfr,tlcro Ohjear P'ort
ftmcrgh
Darz.
Satc
o$e.!-'
ge+
fo
*,;a
trDBc cenoel]icm
ocIeflfcrppliccL"Ho.ncajls6a5r1'c\oseL)rreilnocltorelec'seUD8cc6onesil.J.n
Chf*
bc.dc
Thew are
D,rot
ro
Conne*tcrn Pool
fcDo rufze
oP idbc Ccmrrtficto
tv]5
$e
JDOC 6on
On
ob'j
Ptocedt.'" to
cf
A:L
Cteorc
Co\freted
JDBC GenneaFcrr)
j",r-ti"ooe:
$ol ?L,{
hkutq ic"
Statt
mcnucdld
h tht progrcrmmg
" j
'iauc ' d"iwr " Or6'le >"i'/'{ )
Lle$<a
1
L(
ohi6
u
(
'
and OFn
ro6dr"'c"nr tsr\'o(
tttn : @toct.lrurt'l5rt;crt.-')'r
rogdornc,'nl
O'iGc-le
'rr5
le
erdrnioCctt'so
terw
'
$Kp4r"-
Qdroir' Ctnso\e
&'(eo
ft.sroord
FrAf
----> Sefldces
rngdsl
Jndtmme t
g* se,rurc Conoeltl
FZa
JDEc----------+
ft*toarne
CunPcrQcrs kle,e
kua6atv<es
@--
^f ----n ncxt
-2ltriaBc.setype
)
pax
,ltoc.'rnofl por,[6tll
----r
Dfut
*--5
;lo*.l-
--
A*avt\e Utu'nrme;
[GrF
TotG"69wcrlo^
----iDexr
AdminSrv<,t
-'-"-t V
FtLtsb'
-----+
-------------) Serrrices-------------'
JDsc------r
DatQ&)Lt{ceb
nc,.xcopcl.ictJ 6,
16.-1
l-qoFl@d'
) *r]*a --------a 6h.nvPwlu'n'x
r .! I
cc,.Kit i6'115nerr.,t
be c'ro-red tnkra,o rhera is
sboad
l.n.*r.r;";1.
cdonedlcn. ohicrls '
--------+s&\
rdbc
nelD
cvcaHo3
&
aneed
de*roXe rDte f,lgg c6.org$o^n c,rrj&fs ct?t<,( errtf9m"se"-as fs.;^.-Jrr;
the $gc Ocd<'sac'r.#
is
cftkd
hffon
Fnisl'
nhr'n
sl-Qg
NorE'.- in $e o.bow
in
Qgrst"x slul '
OdorncrhcoilS
o4e[f vekrffLe LdtI be f^&cad
&moduloo
ltoc
aotuJr'Pciru
+.,Jo
gcrrfexs oUle'r
rhnr
x)ft'sP.indi' Jno;Ohe+Facrcnu&oq ia $e FocrcrgBeccn
irger'ra thctf
ond
ftr* YetiShn1 slcD th"ounb Jndt \ooF"p OfixcrHoo
.fft"
Dc,rufo..'ce oqf!'t
hancic,ss
Q"6''rl
slto
prqx,.Ird,
to (ase
Excrmple sP.q$ o?Pllca$oo
JD0c Gnnernon
yli
aod
Pool
rogdorr^crnr
KeeB
8tcPz'"- kee{
fblrh
Sprrqcfu "
Setut'T
the
above i"r-tlogic
Serr'tx rrrLnc'Xe<l
rnocle'
in;nn)ng
oP hybl%\t
P"h
r-t R'Le'
/| 3t'tngcfu
x*
ZlDmtgpe--->
4btsos
Lb/C.ie i6 =
"
jo?b"
/pyooertS
furObjett
s9' jrrdi'
ors'ot'
"':61165'o0rg'
c\&iS?
r.arne --
*trndrN^*e'
fu""U8-" $ =
u"t"="!fl9,i:"
in
Zptry,,q
Jndi
n61roe
4tm{>5>
PY1rfsft14 to
p565rish rhe
laq
1ee6
tnJ
Loi rh
Connea$ctrr
keg ='
ZJ)YDP
I2eS's\.
,javrrr{mi'q,
) klbhtic.indi.
DyDuJdonc,rrt
>
4t*p
h6://loco.thos,r
"
i zli 1.".'
tlwP,
z-LwP6>
zlpto[rn1z
lk.o,o>
eCtnoe
6ns5 ="DB0put..Ft''nBer.n''
uds' yap
-",jolb' l>
T-
zlVao>
l:llrrcc'r>t>
3x?-al-
R.rn
Q<rrhe..ed
$e
trill be
P\
res in
Spnng. jat
cdrlo8ic
(D
p.oua-^^'.
DBOtorafio$f ticntr
.lava
ctass pc.rb
Gr.nnrcxrS
lrueu-(d
cLicar apPlicotlcm
7
jctr
>
'
lq6;ng 'jc.r
a't
io
t%dorDdnR
.-
zbrca s6(h-ho"'e>\1f,:S
!-rr ot*tj:1"11
bc v+.i ci f; ss
:<{\L
oid
9wukeePo?
'
ftrde/
\qba& ffi;\'d;"
1tu n dnw' tvted
"-"'-----1r-----;"
O(6de
SA-O:gljuo/ (ort l(b tTdroioOc6ole
.
5ra"4;-
sHP-a;- cfeclte
Qd'tni9car60\e
---j
JDBC &tnneexoobot
S6-ctco
Qemcrrtrs
-=--'
{rKrU
Wft\o{e 1
fDr,rirruYh
.,."..
Sictt-dc'r'trln
a6cdnnltl
rngdornCunt
Skdr
Lryu--J
ftr
-----------JnekF
plSizt l- $-_l
11
rn*ir.'.__-r,
Gtade"
JDBc
>
jntut:n @16
-=--
TescLM,e rU
Iyinaeand rnin[tnl.et:-e
[.-+ l.---
--a V
Cf,Lr&Ba! r)6(m
'
Orc I
Dti<ryruPc
*rin
f&sst'lo'a
ti$cr
f)rltNttrnbct
l5>\
@
'p
B
E
to(a-(bosf
.fenwName
l0c4J ho I
Se'tuicrNarne
tocorho
,.tdbc: oraale ; ft-io', @
uct-
E**
-)
6l-cp-U:- Cxare
--------+ JNDI
'- f,k-)
to
PioA
----+
s3JJe
JDOC guJ-a5cLrrce
AdrrrlnConsole Sc"reeo---------+
llero
tt 3 l5>l eorcl
SCcf-t
Finish
--)
piotog
----'[elname: I6sfi:oi{
-------; Q!
**"-ffi;*l*,ttr
Nleme',
crn
---rl.!
mo0fg Sprrogcfu-xo\
cntcrsSEsh $t\Krt mcocJed Caqn&$crn pool in q^r^nt
RePu eppe
u.se
6kp(Di-
Ke<p mgdomc.ina'
'.thdt &.e<
lqlozlrorA
hlctssFish
in
Qrrnning
CyPFn
node
Chonge
Jndinome
w?c'{ tl$
rrrrnch cilscrrstlons
ff
6
--+
Olcrs6 Fsb
oft.\
iar
ft te
Srt-ing
rPw ra'.<btS
;r.r
F;tcs
SpntgDno (c,,so
the. &va
cc.trd
fu,r
ctas 5
se{r-r(-l'1c|
Pe(s
l5r<roc
--+
0AO P6igo
1ogic5
PUn JDBC
oDBcTemplore
ol"o
caued
dn
t 5 lo
ct&s6
r:
the alpt;ad{c,',
DAO
t'6q1.!-{-tQ-
l-a provlcle
abstrc.ortcro lctg
the wrrs
frrograrnlry lha.r rnec.a| E;tnpllRu*
&
o"l \)
dedoplnSr
Pki.
JDEc progrorn;og
re{i6rc{ idbc
(]J
E5Trdni5b he
drr$at
coitl
DrnrCr
Doslo
t/)rh
Omnel$cro
tlancrSel
ohl
oL"dfe JDoc 6t'ercrrrn*
aod
qod*.x reslrs
C\os JDsc
PrbLels
rhe
re
DB
frpplicr$o-n
sitrs J
I
,ohi5
*L"d-lu5
6ll,fo.,rng |;ceCflao
6lto
(choqar
Cororocolr:qicS
4 rhe
i *nn ( **
tclFt
:t"' rhe otac 64gli6aflcn pDt[affrd/r Shcx-rtd
O,nd OPliccaron
'n
cc'Ye
Cornrnon
"lo6i.s
Spec,Ac
'
obi
b tufrhhi iout Dk.lrt.lce
0 ff*
slOl+Cnf;c"tio", Spec,frc logics
SO,L Alc^e. in DB
execi*e
ard
Send
O
reeutn J
O
Grtrf^r^ resulr5
An
the crbc,ra
So Prugrtrnt't
t'c'cl
6$,n
ist
prcLers
fhe
need
oP 0rnmo
Apptl cc.l\on
SPcihco
ioBfce
logia5
--> to
- ->
lr''oPof-g
op
JaUcTerrylare dass(oq'sr'"iabc'ffi
I
''-''/
'
lo
sr6d
ond
execr,1q rhe
SgL $rrYics " *
uPdc*
(sn'"3 qq )
lueqfulnr (Stn3
Eg' &tetx
*rcxd.
&;lra
&or,
src,dent.
'-e
Nl-ren
ajrtt
oQ,
661areenf
tl-rn 3'nple
at6urrcnr
hro.raoS str61e
be uEed inrcroaftE
- tk-
Pr.Pcrted St
+.tcrtr
'-hooinS
r'"rn
turo
troCfu6 ot
n'r'd
I
o'{'B6r'er
'
fh"e e &\8t{Fnqd1
Exarl.,pte APPI;ccflorr
APP6
E:\
D8OPerdfioo'i4va
D6OpednHcroBrco
'
javo
D00peroficrnCfg' xrn\
D8O g,rortcm C ti tn+'Ja'v a
\i
APacfre DecP'
iab)e inofc.d e
5r&dcoI
+__
u9to
'_-)Srnrne
/l
(+ )
larclnra (ro)
rt^robex
Va{cho{a C2o)
saad
DbOf."an- -ic.vc\-.
(lj'i I ' 'lr /
iava'
irnfrott
-invtfF
'p,ff,ia
D6oftttc'ttc"
"t
fxrb\i
gr-lc\ic
prbtic
F-'b'i'
Pdi.
Fo\i'
\,
oaa);
no,8t'tng mme, 6h'lng
int.
;p6errl#o (int
iff
rt'oovfittE'51-d'g
qPdrrrcDrtrrs (mt rro,sni"g
in-t
inl
t{o?
no)',
&ereFt<;rs (inr
c*rrtstt,.ftnrc(
6c*
Usi
6t
,aoDetaits
g:tSt"Oet-rs
);
1'
(ior no;'
|,t&{
+uut'R
'lnl
(Sr"o5
'
c/
,n#j
{"
'
joVa
iiil:fidH;#;""
lthron
irqrlcrrrrUs D@lxttallcn
tr'Df)./tg
fal.Te-P)are ib)
/lme*oa 5 Cc,nsrrudc't
irlP-ttcn
.9
,
SaflU 1"c"1
k reca^
KrnpraP)
g<fr4 q!<'J
cirq\'
-' J I
-lttfte''ecL'j(
-'q,r rn .m e lc
DBofraHon8ro'o
Yfloc'ddf)
oc ap'ra-r'
//;rnpteornr
inr
Purnrc
B.n.retbocls
insecTnPo
JDGcT(mpldlc
addrs
DcJdACarJ
u{dd(
- it.
,t'
.
refLrl
D ltsqtt
in D(o.'o&l<
Sr'"3
( it" *'3.an6offo-"'
uph.reDerr;Ls
int
n$att)
o'
in
=i
Yuult
frlEu
6mrne-- \ P
6mrr
.
s'r<,delll6rade
atfA"r"
upAett<
b'
L
5.,o--
\{rurn
?')': 11ffi.3
ins..r into rcrdenf vc,tues(?,'1,
j< 6Pild'1c( '
a&t'r63);
fe[0 O*eurt ] [ no"'d''f '
CtulfoUt bo"rr8
aa.ncc0r
&r?ptles he 98e""d Pc/xol-Jt*<4 vo-{ug
prillc
fixcq t'lco
Ttrr's ts an a1n1l,aJa-< I
ekzq\ ll c,n. So, exc<pblo,
{
lor TritrlJ
throc.g b
"
?
Sadd=! mhcx
^
)f
lt*1"*
'*tqq{!rn'i
L-, USng
ned ohr'rll
Prepar<aSfttt<ml,trl o4iecrs
Tesu\f ;
t?
rJ
inr
FlbU c
detetcDtrc'''to
(int
no
lff
Tt.:u\l
- ir'uf
dc'rt
$..&nr
terbe,re g'o=
l'rtr-
Cbtt*t
1",3);
re3ult)
rejuvn
q
c inf
Qu-ldi
inr
Cdrrr-l
rtsoll
$iu'len-ra
c
()
ohYtllt3)
stc'den* 'ne.2.
ff'orn
(x)
eocrnr
.- - ("rLt
jt'guryEnL-*
"*
"Yenr\o resolt
"
llat
F o\1(,
{
ILa
gersrr,aDer<urs
Yo -*
TTINN
I irrr
no )
"nar:
+
jt.qpa*U F"t1"l (" soe*r
m
I I ,r.-n
vdut6
Cd{$f'r.f
no.ts
; )
[Lb\ic
f
L
Lr*
goSt"a.*rD.r.irs
(Sr,iq
?
tPhu.^c sDo= ' /
Prum eruAtrrr
c;t5
OhF,rL
It
"'3);
Li.,
return 1;
'ohc"'
grJd=!",ntOhF.rLll"ryl
"/
)t
)L
MO+ fu1tu3f,<Lc^(,
/l
agownonoocfu'xrr,t
{bean5>
zhean
u
16
clol5 =
='ldbcP
org.
ap,cie-
Comrnons' dbtp
4Lron
>
" ilAbcTernplafe
&ao
id*-'Krrplare
ZPrDIrrYt
n&rne
clas5=" 0r6'sP'idUc'o""
"ducP" /'
" dofc,Su-.r cg ' reP -- .--
>
tJVsn)
>
c)drs=^ D%6'co{i,," Bco'"'u
id='dob'
amsrncttx - uJ
LWao
reP=" tetnPlote'/z
Awoo,
4,wns,
// Ogq"*x
i(rrrf iiav c
Wuc cl0r5
{
"p
D8Op."*r.lr.rCL;tr*
v rn(6r"nglJ attb)
V.'
ll
P'tvwe
Ccmraioc.t
EifelXsxmX.r fupticaf,tcttl
llgr&"",
E,.Su*htra*r
ovr
Gnra I
(O:;Xi
clors ohj
(D8op"<'nrm) o*'5et8ton6"'lob"
DBq.rare^ Uhr=
]:til.i' l*r.u
.
.-r"'\
Conn*t
c-i-x= hu)
'
)i
inse'nrlofa
6rori'4o'
);
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.o.e[
bohj' getsrt'aDera'rs
stuclcn* clcrurs' +
grsyao*D.r.,rs
@ hgd btucrcr* JexitE,, 1bob.r.
("b6ad'));
3il*'
311.oo
ja., f;trs
in
cLAss PAl H
:-
5d bc r+,
jc.{
p\o-roJcBc s6d
in
6*n35DBc
;n
9' nrh* is rbe digP rjLo exec"log selecrlueYb
oby-ti ruseod
&'rau7.tbte
rpt
is
)u
g:- plc\in JDBc 8iv5 QebLrlr&i oloJct' aod
Ovet
tbe
neruo6F
'
icl
uses
66t-Fxceprton.
CbetledExceptloo Celed
UncWoEed l;xcefilorr
g-
ploin,rDBc
aued
eu.nrho*B h
'ilr $*"3oDBc
ptarn3Dbc flrac,cs
Ccrnve{rs rfro.l
6't1g fO
D'raAc.eas["ctprt"o.
hb
t
/ploin 6uccodc
.L
J
Or,r<-t'
IS8rExce{'ntcto
I
itrocr rrd
e)
DroAcae*ErcPrtcnL))
Ex<4*ion RerLmcotn3
\,,
The
Jnvo. cla55
CId{) ticcttt
Cln
i5
il^nt
*trr,ireLr<b
co,led
0&0.
Pleriote to6lc to
P'rststcoce \o5ic
{t*
otrc,,o lqicsoP*e
brd;h,
p.xamp
le
Neba4plicatt
bas"d
o1 m'tc}
Ar.hj kctqye
aod irrple ot n*
Dno Dn"n
r>3
u^
llaioserv .{CCrrot
brdnsct tiiodq^]
ro '
o,ter
e)
btr"tt (victo
c;grr*,1---
tJ.rogi. )
voo"rttan
(fui4
genn
@cu.togt.l
(prevora416t1
fr4;c )
ic NcbPaq e
(Fscnt
4rp.,
l-r{
i()
De slLo
o
o
DAO,
l'1vce ft5i$.'
crn
part
fn5 are
implerne^reJ
fts;gnflrrton
il a
Driiqnk^*c(ns
ft$
prn.edut
8i(P-Ii
Fte
""3
t0
ttrli
*-,
55o)
Betr sotuncrn
}n
.lerrop
rbe a&",e
.odD
appllc..tl
cubo\t ap pt}c'oHor"
pyDb)em5
'
oe
oa'$tcartoa flrtl'P
rr,b^t
.,n tU c{s;n3
l'lgEcti pse
rJt
b{*"Y rct'tJnt
trl'x
knz't
[^j".t
NcbPrc.ie Lt
tct'el [6e.u,r
--l
---.:
Fnlsh
rbe
Lqic.
% rcoccurrinl
Crgle wlD
Ne cc
bd.6ad 1-z.{sJ5ttnCe
Proie*
----) @srninaso'.
[trz'vic-s *
sfl{"tq
ffl sp+r.3 j'o cclY6 r l)tLr*ts'(nce a""rt lvfJ#\cf- isogc
dct- dr,
.,r
.-------c..m
6x?-]li,
i-
C{rnA6u. l"lXDorrrlio
rrgyL,
tJlndco
---
,Seruc4
Prfcrlrt-s
oP coellql. *""ct
\E)r'ese
---)
toirh
Jcm,er{
lt
----s
F.L)P((.IDE514$lo6lc
\--r'
---
-)
[Jcdo5,. lo,x -------+ (fEoaole -----------J
Bgn hoare D**o,'3
Arlmlnisrcafl cro . UStr name :
passox,rd :
Q.rcIlUctn
-----)
foel!
Add
znnai
ok.
------------+
0.Dbcr+
rOOl;
jar -&'.
torbe Buitd
lle$4
M pa
/,,.ao ;6=".,oPb"
lafa.
Ertcvrre0At..FaleJ
-&ocar<-clrnAS<fu+
lptogrt
6tcpp:-
Nlxt't tl-<tlt<&^S
r{.'e Fqie4
C\osb
D,irne="
;n $ilcPt
or5.sf
'inai'
hLe .(r"roaercq.
x*,
\-/
Jndi Nary6
zlbgrr>
rs n6 oecd
aJ
.t
g,rrn3
..Tt,/;daN
nnl t"
ti
,,*.ir.%.:fl^;-,
t1
Lbec\n
= O
lWdW\ harne= "6k&r,"c6"
id
rc(=',lo(b"
JduTcroptalo
l7
<Jaeao>
<&or>
4Lr(rn
\-J
fd --' rnSdao
<WYfl
)d --"fnO
zlrtyry
<lkon>
"
r^o-,
>
z.bean
"
fnn-r
\-_,/
clcl-s
="n9Dko" =
="r#.*
ref.-" ftmflu<'
"
>
re| -'"t4Aati'
12
v
J
\r
')
\r
\_)
\-..''
6"pa,
poelop
*1s DAoclals as
cla:.s
Pc cn g, c
Eho.;,o
blooc
clor3re.5rre:
-'-r
Iv'dr'.*re tofic
f$^\.c.d,.|o"!
tI'
'=--+Fu
^4Dde'DAa
'
llLeat Wf"vu
rnrvl+sl":tktb
'
i+ut'ib--ir;
!
3
si.de"t
nW
saad=\
'
);
l*"a
lo^
--ffii
pc oor (rc "------,
pq,
4t'&'tsc'n
-------+
--------->
#"ue.
l/tqodtl, ) att c,
WiL
inte^Pacr
llder
fi4Pljsr
pc
so
cra-r.
/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 )
*.
'rndqo
p*:. ffi"
wdao;
sp^',4!k,J.,.6sC&.4
//b.to6rc
dt)
add nole)
"
(t"a
-_-
yt,,
if fcrq==nu,
1 .,u ='ha"
ll'ffisj
DAO
ua's
\
\
ll,,'l.'\"A
llictot
!"conwol)x
LPrnm actloD =
.,lr,+)d
?'
/iorij-t tbtt -'ttxr'' rnrne ci\' l'
"
" Va-lue="'&arch aew:d 12
Zinrur tgrt='ralrnit
cilS mroe
\i
z_1?wn>
tt*j
[2
add
odlsrlkar'{
c
uan
----
gngr
-----=
lftD?tra-r-1
SctV
t-t
/oP
nljc-
rt'"ict+
------) Name:
Yr.PPrn1 ut
fl61e,!-rv lc.t
Ca"*<xt
il6+g"^fl&* o^
&e
fln*t)
Prbrrc loid a"Go(tt6P
,4n,'+
B tr.;r {raler*6,
FId6<dloP"nt)
Cmalrlllcd
l'ltrc9"vte+
{.
-E'"rcb.
"
-/
',J
/f+*uuo
Clar?arh,Xmr fuplrcat{orr
---:
c}'\
-^
clcrsPa4' XtorApplm'rrc'orConrc"
!/
-
'h- Co*-n'q
grBeo"'(''u"
C"XW
\J
dc.ra
?eltrcrt/
ltSR *"p"^l')rf.-s
r\ //ruaft'r..n
[-oT
"'J ")J )
\rtq Q-- te14e5f51''Srralarn<rw
SYParornetar L
I coq g.rnar(uA
SF)'TOE
:
\
*=
Lsr{cae
/'&"*"6
'1ta
R.a*rDisg*<-het
yd
kryest
fu rv-rct
tle
= rlAest'6oR*1*otDtFi'I4"
-,.
("arsuti'jsp")
(/aoGaC-,-)
)"
*'r*o)rf"*
doGu
n"
-J
pr-blrc Void
*
'
\-
VI**'*^"*r")
desr-6 C)
bohj = nutr
3
t
It
^
'-
5rcp
[i
'
P'Con
to
imPof
o'to"
to
$P-------r
'-----r' '-rco
rnuP
FLbroot
Ll'@paBe
Nerrmt
f\larne
1tt>
>
48>
L/'
P^
(i"t
i=o
izl-si2e( ) ;
+ti)
JL
/'z
ltr>
Ld> t1'=rn'sefc"s^io")'/'>
LlLa >
> 4d>
/d> A'1': l'rr'get[''Snoo') v> AHz
21!>
L/'=
zlYt >
,J
)rt
'/7
4uw>
nD'getC"SNAmr") z'
tS Xejtr\t'Jsl
sE/JaE
&cp:.""Bc
oo
Prarer
PlrnAs
--+
-_"-
------)
l^t$loBl clo'x
.'l
cst
rtc
Pilded
tocalbost:11'zl f
rc*Patf forn"hrml
&,tassFuha'x
Gt?igrva.tt'
.M^
-----
JP
In rbe
pyogyarnm
Clrn9t26.rrortor,
e,r
Se'rr.'t-rt
cctn Ltse
->
su'r'ac"rs
blarSFXXtr-
dcxsnot provide
Senvcl cnar63ed
hlcb alPtlcoHc'n"
plain Ccoc
d"'",r"^6 :
ondertoXlo3
JDE .
&nE-na "-------
------11"t[EdP{e-----i
@E.nlte------" ]l''ned'vem'X'
l'1U E<JJ'Pse
pod5
tn
\-/
Conr'ed'too
frd
pool trq
avnr,|bcLsed
r$\ n
lne "Vtel
in .La
lmro"rto6t1)
an\X PosiHondl
brb psiHo'(?) aod rnmcd
t'1 3 D5 [ha-,
par,"$()a{s
\-'l
(*'*'Vilii'
g('in]',xosc
Sw9crs
'U
.--+trhrnePaT4rD}e{scc'eset?descriprSue,fuoc,rV.Psitlcrrr.lrfufe$&o^u'(neeAt/
dDtscTernpla}eclalsrtocooucoirhr.l"*..,patamefo,let-n^red|*t,,"eAM,'#fu
4 Fr aa"rpte apPlicdlldD
cn
M,"..J
f6,1apefr',3
*ki
Jzgc No"5l{ss
kwbc"H'"@
\,
v
\--,/'
iP
Cafain (rrsisK'1i
Ro,r
-Io
l"hppex
->
RerrLrfuE ohacr^
]mp)crnen
-_-
Biu6
51,.s
- on
exqmpl opplicdfid'o
l?esut
r5et oU
ohj
rnutHple recerrde oF Pes'rt set
--> ib P.ce^E *e
?*p^.d5r.*,-.'*5.tt<,,
,-oY
rbe
Pocr5 one reccrrd oP
P."pr.aSr.."r.*.rutCrc.tar
15)
of- ra 6tTcrpla
ar( not dltcsl X possiSl coirl &e r*thado
g''prt '
ihcse og,ra,rlon6 coirb 66tttbacr iDrctP6L6
of)e'aLkloos
&ro
spm,xDno
fSose
Setact
of?ticc*tctn
uJa{uDt (0lr-6
ond
ofxnaHcrnS
''fj
*'
'+
Prgt rrds QD
*@
l{loe lror}
-'.
fo maLe
as
Teuscrbte
fttoaedatre6
c'od
rnodulc c,nd
.---4 Usi",3
ln
'in
rnuttiPle
oP
oPPl''
frr"ng JDac @e
lrnrccdrrre
Ct{ F<rr'Jrcro
D'ruB*es)
collooS
oPc
p," *,rs
ed fD
nted
'- @ p"
proced"e 4
exarnple c,pplicc"ttcro ao (or-{-rrrg pl-fsor-
So,
---?
g65c
@AO A-feoso: @
and
5pY,ng ;Fbc
rhese PcrrsisKoce
Logic
yeqlsrc4e
@uet're)
)-o1\c A're
oirt
e",<- DoraBcse
sJL"
!6 usln5
lelrnAenr E'*<
?M+H6' <t
lt"-Jt
^*-'"n
Lo'd;' torl''a^f
LzEi
flD6t\ffn
(e
++&'n'*t*
:-r
Ye &udzed
o't(!t-t" DB 61(o
'
f;" +u.
lF e'rct;es 6stflple
-lemplat
ir6Jeroplctt-e clas6
6]co
ORn
bi&;rD-t<a ' lh
r"ror<l
etnp)6Je
H;berDerc
619
ibons
3do
JIX.
' o?
iq'rf
'1bpt;oE
oq.sp.orro.bib,eroor
obj
rbsi
B;t/e8
futa"fr'cn
Eeoo
;r
)e rq.r\rtd
oynr,
'
t<
'
llPL;nrT-Pl.rc
^rt,roPl,,n
a.Lrat&satcnkcr."gk
JdbcDarcrSarrce ohJ
clc{s Sea .
rcryiw d.
clars
lo L$.rle )Ab,&IAe't'PIat<
oQJ
oq1
( b-t&ot'"F"4k'^^d)
*# 6&^
imgrrtenr rnerbcds
R
1-ItermrcTe'nryjt^t
Sinatera,o oPx"ollonc :
-- y *il:
**.^^
:H[
"*"cj)
lard0-) I Wa'^t,.I*no 1cc'd
)-r^ur'-r-+ ft ,dd(
et t*i'P )
,^-birJ^,*
e^ ht\E oPto$T'-j-J
oeAoH'S
{.n ioornng )
o?t"o,J^
oytd^
e,,err oy@
Eqrrt
fl6,L B$ei
trvrl'.iH-r..ryrr-se)elr
kl --5
k)
-+
-r
^8c'reJ
|$r---n P^
il;r;ff.naxr^tr) P^ Ho' b/t<ed I ,L or"n*.*'
urrrU@te
o"rrU$orc
iftratc
('',W
-->
*rc'"4
'
p.r trus
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
_-> Jb
in
trrl
5pr;rg appo.
re
6trrr,9
ufth
&r
io
buqsiog
fix,og&rn ctoes
ctr-ns
Hibcroorc Terop)c*e
.-, , 1
u-)
J
fii6ornqprtpp
Byrffserr Ctind oCd
',hva ( HB
is no *{",tc,t< lcoinfssLogic ;D
clcts cls
B.Lc,g;c 4 rhe St riqgB.,n
lPrhere
l"na,ntcriniog
Spn$BcoD
PoJoc
tc*l
rr..,.nlJ*n*log;.re
tn
Procdrrr-e
6icP-r:-
de.tttop tbe
ftvelup
jnPo'-
keeP
l-l,bc.rnte
jo, 8r.s
Jar
in
rroa-o
c$s6p4ru
6prin6. jar,
CMss
pArq orrd
\-/
hJE6__r^)r\h.$
6,a.^)
bibc'cnre a..ic.y
'
bfeP-m:-
CPg
->
-,
--J
Locrt
&rs,t"lH*j
Spring
ra....,
fHberno"reTernplore
our
:-
6rc?;[:-
Deve]op
B't c
flvin3
class as
$can iqlttng
l-$berrr*e Eessronfr,ar<,g
o&.r
Springka.b
l-hhrnorelernplorc ctass
o\
\i
Nrirc
fr6i5Knce l-ogic
ir, 6p"ng&oo
ll'tcrmrcJe'Dtlc.* ciass
Ro
in
the
renrro'rnirrS'resocrrcs
d
tna crbow st-t?6 base
4tt'ndocrf
E-rpplime rLtc't
Spnng
AiLLr'
crass
ersrng
o[i
v6ulcx Yr&nbet'
is
and hj
*)Exeat',oX
io
plc"ced
rcr{,p;r,g
8re borr"6
loBic'I rrome
;s czued
"*T:rryi
Nl&rrfd payam.
nf,i
Nrn,ie;,l,tnrs
tta,.11.a
gq a2, *.,irc
Nahve seL
zh-n>
16ifl1
p0$
t)owJ Par\an't<a
- '
"t*l-Ll\los;
q/rr'!
po$r;cnal pasa-r'elr.s
>
zlsq'vqut\z
zlh-m>
[
Lxr
L l-lttcttx't
J=
br'
3e*
fut/r.\
()
^
g"dBXNavPd t}-'et
'r
iL)
&
*) fiieot+'
Mnrd
pnpart
6lq-ri-
Alo.t+ur SaL
airh
T\
2)ym2
Lclass
---
Narred Pararnett^t
NaLnxd
';ltl,
fxta:tt*o"t, )n
malpi ^6 (n"
,1cL"s>
&/\-1a\
LleWn
narre ="
rutd >
="
Uy.n' I >
lcrts
u:Ft
rt
role
=:
rlsql-cyr'ttr 7
4h-n>
skfilh.
erco* rhe
cLbar q/a$!
pAlic Jerarrr
Lrt
l-
V,r- ft
"
iBU
zE'.et}1{
it;
getfuta t I
rtto*"'
'!
6*"i
- i hera*s
c) /'
Amr Named
Sm"6
! I t"
;i ,,"' 54Prl3[t r]
fl h
\-'
L/er
ut--oeaa UarCr;
ar -selUid(loot);
&r
scr
Ltr. fetPolr
bt.soue
non -
C'p.l', );
&lect
P;elJ,J-red
(al;
&*
;n
Biklrrrk
o1.{
a5 -lrr.nSacHonal
.fi"6 l\Wnrc
lhar
bt
6tdrrrrnJ6
i<
.\.,,.
"
nor YeoYnftl'
vef&t0;5;
P[$]ic Lruatzx
l-i*
r=
AtDdJaL)
"
,\ fud Naxned la:'arn ("rutz",r''t'"t .9'.5[rIt, 3,nao @1..rl3
r<atcd6
rekfn ib;
lliy'lrr,ara-templale
{ne 1,,'-,n6
-)
{nt
&-YSuo
Dqet*'
cla'rs
W\)tdes obsnadtn
lafunvl oyratlonl
ltn
onA +av't
cn p\ao kWna-t<
**
:
L2)
public
public
public
public
public
13
14
{5
16
17
is)
= = =,=
{4#,sdt
=-
=::)-':l::l-
-----
1q
20 l*
2L create table users
2-2 ( userid number(s) primary
23 uname va rchar2( 20 ),
24 role varchar2( 20)
25 );
76 */
zj -__,---_______
key,
-_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
l5
36
37
39
<
/ hibernate-mapping >
13 ,
46
47
48
49
5O
s1 {
s7 Lr
,)
58
-59
60
t1
62
63
54
55
56
*1.^rs l_.!l*leL
return it;
67-...--------.--....------'----.sprinqHB'xml.-.--..
68
69
"-//spRING//DTD BEAN//EN.
Page
of 3
70
sDrinq-beans'dtdl' >
<beans>
<bean id="myds"
74
gNc$
JDg C
77
U,ra9'{rJ'9;
ohre*
iitlJ!:.[]tl"t,"gframework'jdbc'datasource'DriverManagerDatasource">
name="driverClassName">
<orooertv
?"Jr""l o.u.r..jdbc.driver'oracleDriver< /vaiue>
</propertY>
< propertY name="url">
?JJt-ueliaui:oracte:tnin:otocattrost: r szr:satva</value>
< / ProPerty>
33
-J
(rur,$en{Tl
L04
ios
iirii."v
106
1-o-1 </bean>
>
<ref bean="
".le=i'sessionFactorv"
lproprty>
rce {io no;
*q
104
(q0bt-
inf,Ldng lhlilBol. l
(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
ili
;;;
i;;
;;;;;;s.tp.i,,sft"*"*o'k'beans'ractorv'*;
i-'p"* ".g.springframework'context'*;
;;;;; o.i.sp.ln!f'amework'context'support'*;
;;;ll;.1";s selJctservlet extends Httpservlet
,r"0,,.
111
13'3
i1i
;;3
;;;
13s
;;
1zz
13a
16?-rrr,r
response)
{:K"*'ffi;tr{ffi;U6t-ttsiveast"^xw4'^
lterator i1=d l'getData( );
out. piintlnl"<ooav- og""toi=
*rfffcc
out.prlntln("<n iJit-t'oiuttafr
text-=
red>'l):
)i
out.println(;<tanlslvicllh=8oo/oborder=2>")i
while( il'hasNext( ))
l68icro disptatd
ret*Ls as I'lrhL+'hl.
Ft's'ncts nvd.ccls
af h;5 &ct"
VffiSffi*,in Ur'L"
tta''<
4.39
ut.println{"<tr> <td
r40
141
142
L43
t44
145
146
L17
144
catch(ltffiException
out.
println(e);
e.printstackT.ta9();,
i"l:i-
+fe
tF0
e)
,,..,"., ,,:
: ,.
151
ls2
153
1,54
xmlnsixsi="
L55
156
/ns/i2ee/web-apD
version="2.4">
157
158
1s9
16()
161
162
!63
194
-+6 5
166
L67
"
/i2ee
4.xsd"
<servlet>
<servlet-name>select</servlet-nam>
<servlet-class>selectservlet</servlt-class>
</servlet>
<servlet-mapping>
</qrvlet-natI|e>
idervlet
<url-patterh>l!!!
/r.rl rl.0qtl6rn >
< /servlet-mapping>
</web-app>
164
SFioSt+gAeP
696 -r,NF
.-J
clcss(6
Lt!{ '.t'(s.5
6Bl.r6c' {l
WLb.nml
d,,,Jf"'Jiy:!:?
JorFret
in
cga:pAn+
jr,r ftrts
;n
ilE8'.rroc\li
scrrll._Ap;.jcr.,,
htocr
..
d"nol",et - iiass
+n"t,r.h*liu.*.la.,i"n
_____-,
t--r
I --*
"p"n,;o6r.s
ilibrrrrrtc lcrr
S crS;o 3 Hibirn}c?mPldJ{
r) E^eGir; og HAL 6.EI'! 1u 6j coi+ p6i 66rsl PcL,{.(rnef(Jrs
Lio
n= hr.
Fna
ticq
ir: L.ittrolrx(-)j
Jtrtrzr
;r
3
Exe.r'"Hr) g
HgL &tet't %d)t rorh
lltbli c lfcrotar
g(tDttaC I
U
,,r,
,-,
..
i ord
ui d
<=l nurr
1
Llor"-- ;j
Ohiq,t
tlt't."*3
);
lrpo--4o' r&f..S
Ftfqmet<i
ht.PindByNr,,oede.^.-
Nanled P&rcrrnefo(
pase 3 at 3
I'ilcraf,6i),'
ft.lzan iL,.
,r,'er,,?^ it
L.
\)
clcae!
Itqotcr gerDrat;
fLdi c
+)
6r<3
ofD(icw,,ic.r 6t<
PexSitEn.e o?e{oH6rr5
(
' lAl S
tilart'hbm'^rD\
SprirSDB xF)\
[8rt+r)
l1ore
(t
r,oita,.
ard
5r"r6tlfll'n
.:
liDo'r,ol)i
4'
q-:.::::_
Mq.rd H6'L q/aaB to)rh frgiil'rndl Ftctrtefu<S
qr'!3 t; *o")og rrc'pe) q Sre
Slcp -r:- liJrire Naffd HaL
Exdt'in
Lh-m>
z)ass --.
zlcsu{s >
,r5..n1g liEe I
4qtu"l,
4h- .n>
pir8ic
,*.
+\o'Lquery
,t 6aD'tat)
f,,tuat
''
nt- O$"r11
h+' F|"aftM'*a 6"o1("tr"rl
fu6-nJ'^ -- !'
Kram ;t;
fiunnq
(l-t
Namtd
-.$
'1Y
)'t<xala'C>
-\
l'l'at 5
'
"1
lr6t-@-
nl4flru (;tc
sry]-;ri r,t{,^'r( t'.w..d H\Ldfltd ;o
htL:rnX
Afi'cA
I
/h-ff.>
Lc.larJ
---7
4ctcrgt>
"
,/
rlcOATA
.
th,-
sk?4i
&t
Uit"
fatL' >
ub @heYe ttb'ctid >="' Pi-
and
ur'uaz=:b Jl >
tlapr4z
^,
===::
r-=-h*. ft"r
86
f&tzfiri
Na'ea
i+
o"'r
> I . Ifcra,",'-
yelurn it )
M'^'aP^"' [
An J
C)
]"#; n;smffil
i;':"1 ;,'
Cri
tcrlaApl
bU c{5jog
l1;&rrnl<Caub<ca
Q;4
Spo6OPn rodule.
Ll*
bt'
g= [Liot)
e^ec"rc
(neoo
l-1iue'ooreCar-ob"rrC)
sen) {'
ll aaa
Gle;
co'nd
Co,',Atcn
CF'add (C"t'a
PestrtcHcrns
'
l;tse
;;
/l exer"te lo6;c
l-.t3i
"0.=
ct'
tetutn
lisi t
)i
'L',
Jllncr+A
Jll;nncr
ctats
)'' il"u^"a
I-ttratzn it, = !' itevttu L))
y(farn it',
l
4$:
l
rn the o.fuve code ht-ueto.,x().{ne6 k caued h""n5
Ohreq
thdf
;rry)ternenK [lrWr"XCoufuc*
16 e^eutl<
*ts
Cocle plare
fr
dLnc'nomQs
innuda*J
(t1
(Ss"g..1ar
,o't
I( h'Or,*t - jar
5.rn 1a- -a,41
-a
're and
CanfiXuraHcn
tcrY-e l}'ts{nclft
a.e rnc,st
D,'"
ht ^,'*-
!c
nalc
G-fur''radcrr
rrr'
,
snparrtS
s1;arLrtJ'
YILn
tl,tn
Conft5r''ro$cm f'te
'
sr"n3 LUrrtrJ-Sfdng
0l^.^,.--r-.7
w"*x&*v4
P
n^-at'r"tt
l"'rn*on
ivigo{t\
avoYa(ry
uoni
'
Locanon
']'Coak6r'*
rnfu ftre
'4
l-ir brr
''4
in
Sp';nq
G,^f.3uvaH.*
f,rt
objc'r-
thjt--P*"*g
c)&6s
$".5HBAee
J----------------+
l.J EB-INF
ClAsgB
X ,Jovcr
P )t.jal
Nc-b.
f+)
derrointc,r , c 1,"*<
derrrrimp I . clars
SP'tnghS.xrn'l
IrDl
fi;,Utta,rc. cfu,lmt
(I&'bbrn. 1pa1
U[<lr.ctctrs
> 6ek*&wt*'ctali
hiberod.t' cfu.
rrn) :-
Bre
t'iqHg x-r
z-lfucrlPE
ZIXooO >
of6 '5r'inskroecDc,,(p.6rrrr.}uberra.te3
4trD\rrn
rprDe=
Arggl-o."n.r,'
v4lue="ct?ssP&lfi
''b't4t'nle' tfo'xm
LIfuo>
JJ
eam
e ora
teaa pre\i&s
krod"-rp\ ctassu
\" I
.*t:
>
Corft3 uwjtoo
\,
o?Pn'
zlbeons>
@po e*o,np,"
tPel ibe
\)
\-/
C{p(lcorton crn
SL{SlmC ncttz{v3
onnotctllcios
{t,ndocrl-
baszd
6*^
finnq, hibe,nofe
(sw"6
orl
a,
oaf
bibemorc +
;^Fc6rat&/'
zor:
;u
-iV
3pt,.rr.LElPg Plodule
Mo&rle
?)
povides
3)
provideS
1)
fJr,ivldes crbstrocHoo
5)
cruecl
g;ve6 dire* dist ltr*ed terbrolqS
fop'*
4
+)
ctbehacdcto Lrge,
-ll'rr
tmi, tdelrsew'tln
4o^
ovaollcxt3
ba-ced schedul;n3
obsl-racrtcm Lcrdcr
prDvide.g
appticallo"<
orr ind;
'io
HLTPJT'voEcx '
'
ioierac*
co;rl
Re6rsrt5
6spttr'res'
and erc....
-'>
oo
Cerrcrin
ol$
g-e
orl'er
oara cnd
fi"
is norhnS
one hme ot) P^ rnutriple hmeS
on
$e
r5 Verj
bt'r
nabillng
1t'o-*
ExampleS i -
e*-monrb'
Sffdin3 rmainder,g an the lstoP
c)eaning Temporov5 $res
thaf
-[ime
ewldru d lt'o'clocL
r Clas's
exteods
Proro TimeTasta
,^_ F*
r
fbese oe-.alio$
oo cohjch'
iob
*'u
class def,'nee
Sex!ice
__ The Schredr,ted nfJhor\ cr| In'rr ctocj can erp'ble scbedr'un3 on the
idK leuzl ltrray
- Srvice anrpUcutton rek,t Of?lia3flor)(O e,lt.
"'t4+S-fqtz
..-t ,."" :: lnnlr.l.,n r.r pnr.t,ta ri.rrn
+]lice
lrrc'r gx
The log;c on ol"uc,F, Ltr aft lool';n3 lo en'ebtc
&
rrnP5:
\qq\o@@ Tnitio{
JT
50q0
Igc+
- lqt{
deleS
in5
rrrilli irrrnd3
ctn
bluo
s6c;6cs lne rrmc 0ep
ima
iob
!
P"3::,'9
"d Cq
*&"Jf.-*
"
'
$ned-ti'r6**tt*
odvc.ntag% o{- sP"n5
$ivea the fttrrcrtng
0
@
@
:
Ollo(o5
0llo(o5 ro
clc55e,)
lfrrte
Schedt urrg
6chedrting
prPorrn
ttcr rrrcns
da36a
oP
ip61p66r1t beont
0rg. p. shedurifrs.
-r
'--r
regrerrri6
",etarcd W@Y{f,1<'{6
on
rbe
ner.d
urc' dePrned
not b be
cFrla'rc*ive
lX
flxJ&se'
etrcrr}.A Psc'""
ur-ndeftrrd
-llrnaiF s V ctatj
',J
ope'aficios'
fr'ln3Based TirreT
\,,/
tirrr-r--hrrerrFcrcroiBeotn,, __.-_r J
6nit'..ner is stcocca 7
[S*"a fuWT'rrr"
Eut, schedz.trnl ao cl
oh rrrrtHple JobS'
&}edltiog
SfreciFt
to
ildts
benfirs'
io PetF.-
&\t$o5
lr'x" *,
6e*rlire h]bren
fi""r' 5n*-iltmez-TasL'
the Job
cpkrte|, @e trctt,'r
"n
1fu'a iob musrbe tt*-te
to
eoa',,'e avtvtt
\.,
*xvice,)
--1 Yegeir-firslhe
-hvrr-'t &{ui
s*bIe
to
uYLoJ
job dn eohich ur
uxn-&hwl datn"l"u''
me-o,d &
Le lbe in a u*-^'"g''ntd
Fte no's
68 io
fu
do6
O{?Plicorl
c:?
r1*
:
\_/
Taloal'nt5
qpr!!t.!4
.2
312312013 9:22 AN
SpringHBAppAnno
l-----.-----*-'wEB-lNF
l----->classes
l---------'pl
I
l-.-----'Demolnterjava/.class
I
F--- ---tDemolmple.java/.class
4
5
6
7
I
l----->Selectservlet.javal.class
rtl----I
F------>User.iava/.class
I
F->SpringHB.xmt
j-----'lib
10
11
"
12
13
l:
,_1i-:_':
14
c15
anl|l-2.7 .7 -jat
0ro
commons{ogging.jar
117
lrs
I rg
[lzo
^-
\i;
l__-_.C.jar)
F->web.xml
,pt
dom4j-1.6. 1.iar
hibemate-commons-annotations4.O.
hibernate-core-4.1.8.Fina!.jar
hibernate-ehcache-4.1.8.Final jar
hibernate-jpa-2.0-api-1.0.1 _Finat.jar
javassist3. 1 5.0-cA jar
javax.persistence.jar
25J jboss-transaction-api
ojdbcl4.jar
'1
ize
)25
1:o
lsr
'l zz
/ss
lza
lss
\:o
37
38
orX
Demolnter-java
41
package p1;
import java.util.';
public interface Demolnter
42
43
44
45
46
,47
-l
.0,0. Final..iar
48
.49 _D:T1T!1*
-50
package p'l;
53
54
import org.hibernate.";
import java.util.";
import org.springframework.stereotype.":
rmport org.springframework.beans.factory.annotation.Autowiredl
56
@Component("d1")
public class Demolmpl implements Demolnter
59
@Autowired
private SessionFactory sesfact;
'60
61
:62
63
64
65
66
68
*e
urt
31
hg"'nc*e-c""c 1
jcrygrf -5 1 \'aELJ
a{
Ls&s E J
org.springframework.asm-3. 1. l.RELEASE.jar
org.sprlngframework.aspects-3. l.l.RELEASE.jar
org.springframework.beans-3.1.1.RELEASE jai
org.springframework_context.suppo(-3..1. 1. RELEASE.jaT
org.springframework.context-3..1. j. RELEASE.jaT
org.springframework.core-3..t.1.RELEASE jar'
org.springframework.expression-3. 1..1. RELEASE.jaT
org.springframework.jdbc-3.1 _.I.RELEASE jar
org.springframework.orm-3. j.I.RELEASE jar
org.springframework.transaction-3.1. l.REaEASE..iar
39
40
c,rxssPA Ttl
l.Final.iar
.1_spec-
io
Bres
sesfact=fl;
]
public lterator getDataOthrows Exception
{
Page
of 3
1'
' J6'{
o"l
W)l.As e ' ;
+'t't
Fn<'t'
ic't
sprint.q!
3D3t2013 9.22 AM
69
Session ses=sesfact.openSession0;
Query query=ses.createQuery('from Usei');
70
7'l
72
Iterator i1=query.iterateO;
return i1;
73
74
75
76
77
7a
79
80
-!-:li_i1t"
81
@Entity
@Table (name= "users")
public class User
84
85
86
87
88
package p l;
import javax.persistence.*;
@td
@Generatedvalue
@Column(name = "userid")
private int uid;
89
@Column(name= "uname")
private Slring uname;
90
91
92
o'l
94
96
98
99
uid=n;
100
101
102
'103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
)
DBTable
create table users
( userid number(5) primary key,
uname varchar2(20),
role varcha12(20)
);
SpringHB.xml
<beans xmlns="htto://www.sprinoframework.orq/schema/beans',
xmlns:xsi="http:l/www.w3,orq/200 1 r(MLSchema-instance,'
xmlns:context="hlto://www.sprinqframework.orq/schema/iontext,'
xsi:sctlemaLocation="htto://www.sprinqframework.oro/sctrerna/beans
taJ
htto:/,Adww.sorinqframework.orq/schema/context
124
125
htto://wwwsDringframework.orq/schema/contexusDrino-conied-2.S.xsd',>
'126
127
128
129
130
131
133
134
136
</bean>
<bean id="sesfact" class="org_sprangframework.orm.hibernate4.LocalsessionFactoryBean,,>
Page 2 of 3
laltdn/ed
l-a
*eu":^H
/ksrh4
t{
J[::'.5..*'
sprint.lxt
3/23120'13 9:23 AM
139
140
</-
Lrrra*"U
141
*f
142 </beans>
cl.r9 s8 lirk
z;o3 sll the F*.?
143
144
145
146
147
148
::::l:tl:lj"*
package p1;
152
import.javax.servlet.*i
import iavax.servlet.http.*;
import java.io.';
import org.hibernate.*;
import java.util.-;
153
154
155
156
import org.springframework.beans.factory.*;
import org.springframework.context. *:
import org.springframework.conte):t.support.r,
publicclass Selectservlet eldends Httpservlet
'149
150
151
158
159
160
161
162
163
164
tryi
.165
I
Ot)
.167
t06
'169
170
171
172
while(i1_hasNext0)
'173
174
175
176
.i
177
17A
'179
'180
181
out.println("</table>")
184
-,
185
186
187
188
189
190
191
192
193
)
catch(Exception e)
{
out.println(e);
182
.183
User u1=(User)i1.next0;
out.println("<tr><td>"+u 1 .getUid0+,, <td>,,+u1 .gstuname0+' <td>',+u1 .getRole0+,,</tr>,,).
e.printstackTrace0;
web.xml
<web-app>
<servlet>
<serylet-name>select</servlet-name>
<servlet-class>p l.Selectservlet</servlet-class>
</servlet>
194
-'195
<servlet-mapping>
'198
</servlet-mappinq>
196
197
<servlet-name>select</servlel-name>
<url-patlern>/selectaction </url-pattern>
'199
200 </web-app>
201
202
Page 3 of 3
ctrerl^,e.e in'
P,
' Poc
Io
6frr,.,9
5.!
[tibel
l+iberrnfe Sessi-faoz.T
ohjerr
cooru,r6
vemot
c,r;rt
rrd
Sl*n3
so, i D;LI-
a(
l'r'
Uroo,he
C.trhb narttoh -
Ftvcr
->
Ltlrr Ba$e
S/ur
Jovct Opplicolltln
Jc(Vct
Jala
.tava olpn
DB sllo| ,
re(or dj'
uses
DbSf
Jrtl c,fi
d0Pn
icva rrrd
rrro,ol-c..io6
tctins Ohjeo$
rre;nfcrio6 erDci l CtccounJ6
.TcrLi'l &rvCr
-----+
6lut rr&ia
'rf5hv
*)
lt,i
roai I 6rp;
llcl,lt servert
t af; rn r(r:$
r,rlc-lo
Qgtst'g d,o
iavax-rrctir
Seru<'{ Scos
crze rDt
O-.rcl '.Xssc.geS
ir;
'
(w@il+e*l-
rc fo efl:ril
c+cocurt'l's
t&
frrirninq &r!et
r
]----+ aNBox
Accoct
ot
a4drJ
f,l&i, cllcht
UJe5 Jovayrrd, d?;
ve'{
lbPa ltl.4AP
(rrac}une
ro)
6argo'oQ se"vor
Jzu-
*c"-)
-tdttr
aod eroa; I
-->
or I 6e'i
responsib
[nre)
e-
ancomiog 6arve{ i5
inboxes
'-)
o? errrn\
CtlSoing
to
b{t)t
CtnOtber
resPcno
Sibl e
fo Ytcrr't.e Ond
i5 Yspr,tlblt
Lfiou\ CLcltatrt|
----t
-lhe
,-d 4
to 6end
err,cf
cJiorrs' &' lt
rno-rl
1.htl c.re
mnitin3
Oporcrrlo'ns
ESI- \iLe
hD
fb e
Wt^'lJ
ls
{fum inSox,
3o,
ry11ssare'i
r r se ft.r-{
rhe elraril
;t i5
rrrseffA
SLnftLbLe
k"t
,{)o'st
6Peic
Tl4ftP-------------":'*n*
I l.lc,,tlctitntt ust
6+ no.;1 Sevu'ed5'
SMTP---------n
$e
lnbox
}l1<xnef 0r'-ael
' Gltoil'com
ta infc{crcf @itb
rm*e
?rDt0cols
---1 floJ\ clienrs use Poeal
& rrt'i\ &flr6 '
>
ip1
P0PS
messcls
&rep
6 Ei I
dc4l)(rnJ6.
monc,ge
potoco\ '
Simp)e 11411tt'nsF'v
'Ibe Strucrrrve oP E",olt
t sg
e&nEr$., -"
Altad,m enl- a
\i
y'ccess pzrfoco\'
l1:rt
A$acFrrrfr$ a
Setrucrr6
PYDtocD\
to Jnfct'&r* (oi$
frt0rocots
sr',rrP
I4f
inccr-ning
"
aagang
&rd"tt(n6
!
gg
'---r
b<
Cq lan CUetu
&mes
fe :, llai I &..ve.l
\e{5icrn : 2'^
fg
l--,
'
vcnd o{
Afcdo e
dePcu'tt Pc'f no S
644 6drnio
-----+
To enrt he
to
prccedo-e
Ccrnsote
45b 5
Til^tl 31\"e-{
: L
Jame
tc'o'bc*
i-bo-e >\tlt\
P;te
sl,,:.
'
crc$e
6't-14"
5rcpJ :-
{uf)+
--'
Ofn
tglne}
-------+
cm6o1L
lOCc'-iboS
Q lrar*s xt*n
4-5bb
lqin id:
r00t
Err6cctCrr d "'
106
fuetC666 le6t.
letp
Srttanr|,
ddtrst^r
'
rrft\zi
fi-rn i
6dduS e'i
lislusr
6tiranrl''
CarctruQseY 6
deluser
164ri
Sesaro,n
rr0J
ohieq
Server
prD00,r'3
'
oP 3vc\ mol \
To
API
cware thi 5
ncrrnes ar<
'
ftxed
feoree'1fs
tar*.,rr obj
.ioe Cotonechvt r5
of, neecl
YrpLl
Lf-t(ien
iol!-
a49n otl J
bctsed on rhe
' 6
-)
_
on
lo ro.t w$level
mcd
V&,brescrurre pyogram
Oalrl Flclrt
^px
B like
&:''''trcf )
) APr
Code
ul;tl te
67vaa
no,.
Tre-frrv
q in
tls1g
616 erncti
Oatotrrt15.
5e'rvcr
:
MJaQ pol"r cur.hr,,r 4
gd
rf.m
"
SnTP
'
CnHol I
cxrhSoiog
"
com
ee{vc'f
'
frf,oml
og
fryDml
P"'Pvio celo
rrni
o{'pltan$6r}
.:
Sew&f
+b5
Co rO
i nrcrrg c-oltb
APr bdsed o'Pr'}6 ro
io
|I)drl
se{wr
+.h'Jd'r
c'P cnmol
thJ('l
c'4
Yerov
o-tlcnf '>"re
anloa i"o,u
312512013 5:5O PM
1
2
3
Java
mailApps
--*-----*-----
10
import
import
import
import
public
11
plAI D
.6
{rrginq
-SendAttachment.iava-\::--9--l--------
--App1
'13
'14
javax.mail.*;
javax-mail.internet.*;
javax.activation.*;
java.util.*;
class SendAftachment
15
16
l7
18
19
20
21
26
27
28
message.setFrom(new lnternetAddress(,'sachin.l,,));
lnternetAddress address[={new lntemelAddressCdhonil',)};
message.setRecipients(Message.RecipientType.TO,address);
message.setSentDale(new Date0);
message.setSubjec("MAlL WtTH ATTACHMENT,,);
30
32
34
Jt)
37
38
MimeBody'Pirt
-+
.l
content)
partl.setText("hello see my resume'): (
39
40
"
mailbody.addBodyPart(part1): .)
41
p&!il tb
*t
Endn| m49'(3
rnesqSe bod-5.
42
4J
44
MimeBodyPartpart2=newMimeBodypart0; (
part2.setDataHandler(newDataHandler(fds)); l
45
part2.setFileName(fds.getName0); I
mailbody.addBodyPart(part2);
.)
47
48
49
50
message.setconlent(maitbody);
5l
-r
)//main
]/class
&tting
UoaX
58
59
62
63
64
-*-- App2
//Mail.java
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*:
oc
66
bU
ot
67
6B
public SendMail0
*tHJrn.ge ccqnfc*
i
Fase
i-itio
cLAsspAftt
bodX
TB-?4
a!.cn
b-.o5 tDlt+'
\tol &niil
Se-rvr '
3/25/2013 5:50 PM
69
70
71
72
73
74
76
77
trv {
7A
ffirTffifi::ff!
79
80
new SMrpAuthenricaror0;---?
obric <t
c*r,gtn
&t
irrrx clclls
81
82
B3
84
85
86
87
88
89
90
91
\tftry
93
94
96
]/catch
)//constructo r
-1
ioncr crass k"'io 9private class SMTPAuthentacator extends javax-mail.Authenticator
\lcJ; c
getPisswordAuthentacation0
public PasswordAuthentication
arrrl,r,'.t'calloo
rDcdl.nrn/(.5
100
return new PasswordAuthenti;tion("satvaffiil+23@qsaitinm","ra$t2e");
*,*
.-,
't0t
tst
tesri."o
&4)c )s mqri)
'
102 )//inner
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 '
{
i
9B
zov.\
]/method
class
106
107
\llmain
>.hvac
&rdt\aiit' jarv a
\
108
'109
110
111
L
L.l-^
l\t"ir.
,/ '
import java.util.';
import javax.mail.';
114
1 '15
116
'117
StringPort="995", tLstJC'v"
118
119
120
121
122
GetMail0
123
124
125
126
127
129
130
trv {
13'1
f-z
password);
134
13s
store.connect(host,emailfrom,
136
Amrcring
lo
popS incr-ming
-,*
3/2512013 5:50 PM
137
138
139
140
folder.open(Folder.READ-oNly);----r anbdv
Messagel msg = folder.getMessages0
- )
o?cn
io
Rg^D-!NLY
IadiD8 ol-t
*re
*"'
errr. r
".,,.^."
n)')Jqd-
1,14elf,oJlrnt'i
mess.writeTo(System.out);
L
1lfo,
149
.
146 lltty
147 catch(Exception e)
148
{e.printstackTrace0;}
149 )//constructor
lound,'):
cv,rpa=r,.<.w,(
150
151
152
i53
154
155
publicPasswordAuthenticationgetPasswordAuthentication0{
returnnewPasswordAuthentication(emailfrom,password);
) //private class
156
157
1s8
159
160
new GetMail0;
161
]/main
]/class
163
164
import
'162
165
166
-*- *-App4-------*-----DeleteMailjava--*----java.util.-;
importjavax.mail.';
Ddre
public classtl4ail {
167
'168
String host="pop.gmail.com";
String emailfrom="sadya
170
String password="ia+ai2ee";
171
Striog port="995"; itsr.i.'va
172 tVftjL
173 '- etMail0
'169
174
175
I /tt
177
178
179
180
t81
182
i84
185
186
187
try
188
store.connect(host,emailfrom,password)
190
191
192
dl?llE
folder.open(Folder-RtAD_NS:
193
194
195
196
197
198
Srde r
t rose ( btt' )
91.6. clore())
199
2CO
?01
202
203
204
Page 3 of 6
Fla
3'DF-LE'
D'
b"." )
i/l
T"''
hft
'q
3/2512013 5:50 PN
205
206
207
208
213
214
i//main
y/class
216
217
218
lao
*
-:-App5----------SendSMSjava----------------import java.io.*; --) i"T'ir )'\ rl,ct'."\
220
import java,net.lnetAddress;
221
import java.util.Properties;
import java.util.Date;
import javax.mail.';.
222
224
import javax.activation.';
226
227
230
231
233
234
z5c
237
238
239
240
241
242
243
244
?45
246
*rt
. 1.h**,
rmpon lavax. ma .rnternet. --: \ "
=' giditfqqw"
| /l/our
Credentials
7"""b'-l-
try {
ruT*
r)eLrr
.;*":
til'lI
[nu{r/lP!
m(llt fqre{h\:s
247
248
249
250
252
dr
254
255
257
msg.setSubject(compression)
258
msg.setText(body);
msg.setsentDate(new Date0);
260
ds}.{
P{sPonin$
cmilmsJ
o$ctt poinn
la dtqo'3
*n,,.,.' of )eici
262
263
264
265
267
268
269
270
272
msg.saveChanges0;
//send msg to dll reciprents
tr-sendMelsage(msg, msg.getAllRecipients0);
tr.close0;
) catch (Exception e) {
e.printStackTrace0;
-)
--,"
srBJ
Fe o(rr6'ii-6
,b^Lt* C-r
/{4lti
rt(t'G{
)
public static void main(StringU argv) {
Page 4 of 6
JlD
r'',j,t
(6nJ!.
f,. qec.t}f
ltce,1t,"-ls
iPlPi
3/25120'13 5:51 PM
273
274
?75
276
277
,278
cidd
279 App6)>>>>>>>>>springMailwithAttachmentS<<<<<<s<<<<<<<<<<
280 - --------------Siudent.jau"4spciriS'--*erfc.a)
281 public interface Student {
282
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.':
289 import org,springframework.core-io.*;
-
--
So,
x t !.
^PE
290
?93
294
295
private JavaMailsenderlmpl
mailsender;
13? )
298
299
300
301
-\
ro in'iclr
maitsendef) { |
*"11f
f,a-r:rlrb'{ l"QJd
RRa rt4tt
tt
ta
try{
302
303
mailsender,
.send(new MimeMessagePreparator0 {
..
i91
,.*C, ,, L.
305
306 hadnS
il::::8: ::ll:[iffffi,,!3;.,,
ilfl
'-.:,-lry)
messaqe.setText("hello This mail Con
..^"-"-"Fs:ij1'l{"^-r.lj:ff|9"_19."1P_91{li-_
310 dd
311 lldl
.r**5
312nqs'tr I
ro
rr'e me$ore
J IJ Pf&YfL
314 St,.ed \lftry
315
317
318
319
catch(MailException me) {
me.printStackTrace0;
}/sendEmailMsg
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 qrse.* f
name="host"><value>localhost</value></property>
u."^ .,,1 <properly
<property name="port"><value>25</value></property>
:_-;"
I
<property
. 29 {)io\rnn> [
\.rbean' name="prolocol"><value,smtp</vilue></property> .\
t) _To run rfii s o0pu(atloo Kf
330
331
<bean id="sti" class="Studen mpl',>
332
&rrrs n61 Sarot ri"i., l2cronlng
<property name="mailsender"><ref bean="ms-'/></property>
?lq
-6y1p.n. tire Do:Ba6
</bean>
334
mete.
335 </beans>
\
336 -----.
r) 4dr 'fatoto;n3 j"'r ftrz: in
--ft.4ailclient.iava ..Lel,knf -o+pn-)---.-337 irnport org.springframework.beans.tactory.",
l?1
i<9
tk
g'nrLd.
Page 5 ofo
ctrrtssPrr*
3/2512013 5;5;1 PM
341
342
343
344
345
346
347
348
349 )
System.oul.println("mailhasbeendelivered")l
1
350
35'1
Page 6 oi 6
SPting
tlail "-
--)
provi&s
---+
io r'Jlndods
Leloer Sewrc<s
I i5
o.r
&aPfiJ
Pl&in
Jc'va Ytd
r{ (ml[
APr'
Serrl rrr': t
o PeYc(HctD5
Org. SP.rmi
----->
I DoLFage,
pocl4$s
-7
cq ftre DeLtaYc'$,ftr8'
Sr,rlnrr^rdt APt
1\ qrreJenrb
'
'
'"
0rg. 6P.
--)
-----)
nrriI
sp^n$Pf*t
reprseffg
. javarrrn
tr.l snd
an'ail msso|<l
tol$#
---,
-->
.-.,,
To
s.nd
seod
LOrdF
*-t:tl1:
-API ur
oo
Spangrrlcn
-Y;;6#;
need to
t) { -e- M'*tf'u
[llrrrYlessogsp'tpe'rnt"t
fllrneYlessaflep"epe'mt"r
'
Irlh&r<ree
Coubc.c,la ltl-h&r<ree
coubc'cja
c'{Pliccrroo
@ fc^ xcrople
.'
c*tc.alrrrar* b3 crsing
t,rrh ottc'alrrrar*
tolrh
fli-eYlcsr'0eHeletn
arr-&ehrreqr
'
t rnsgt
errrU
env:twnsgs
dre
io;Ih rhe
io;rh
cc.rued
&
@
Sp"tr6mcLt
bcrsed,
*'
fif' :'^'
r***''?i*l'"''
e'""^
c-oirL
N"1RS.s
Can
t0
IPrPI
rf,es6ate5
feceive
SFcific
, \5oh
R.
Ob
phone numlae.rs
Srrr
efnai
05
Sm5 rrcsscges
rr56cS
Srvo{
[*XasrS
cff iPiPisr
*.1
ldcbga
Govc.ird
u1"-
SEpe:-
Uslname
posstrrord ;
8Kp@.-
fun
frrccedu'c to
5K?0l-
goto
SMS
@ Praedu..
to
info
in
J,tlTp.r "com.
zavaboES
zc.vabosO
rhe
O&es$
spe--h
f"ee."
: tutpuffr.ru..n3
dorrc'in namet,.tirh
""'-'
the ufbd{pilmfloq o? Torcrorg*rr'r
o? LDrndd!6XPf7
do.rrrio m-e i.) brrr-1n -"# DNs re6'stt
c\winaaos\sgsre-aa\
l?+.0"0'-1
Nt^ll'.1
rh(
'-[omar
cknnge
Apr.{pn
o.*'\.,t"\
hosr6 f;re
6nd
xeplace l?-+'o'O'l
' tt
&rv.,r pt-- ntxnvd
10
80
trt)
tben rhe grol-ocol
lltQreryest
xf prt numbtn is not specificcl in
tnes
to
kort'osY
tt a
pc'rt-ltlrotor
Serv;cc nLrost
LV'\tne7
v1
hJfP
lqgl-'
Splofuing
r+'.-
\$l'9
Z.
t,twt^J'
rrol-t.raz'
in'
bzbo.jr) rarn<
oppBose -''tt:tbo1p5
vnte" >
unpockl^JAR5::;;;-;'- ar.roftPro5 ""
l,
APe
/>
LGnrc"r p{.rb ="" docBnse = Vorcr
I
l-6ataPPtr
zll+oet
"Y9,
t<'on
on
>
ftploEee
frnbe sure
lhGf
lnletrorrpBte
is
ur-lD@ppD
\n tor!^caf&\1rr
'
arl&PPl^)'
0ro$6a"ed in rbarh
"\t6t
CrPo brotgc't
Urrdersrc,nding
liad,ltlonol
$e
6efv,{ cnce
6ryriar$on
u;odoto - ond
rbe reed
Ole.rf
ofl
rgpe
frls
ot\
trrw
'- Jl
in
onou.*1Derolry
Dismr,urcd
"*
-&iwd-9{0!
ct* locolto"dq"-*"r
CouOed a4,Pn5[h"lpt*)
h,*.*
rP de6ree o? dq.,nJe",? ii
lthHil
* d* ft* ^*Y-Y::^:^':,
cd-oppnr ,
leect6
- cor.tt
To
Cl.lcni
c{6
6eT!c'l
wrz6 .e
deueloP rbe
ti.erspe6,^cn5
dieuuoed
Od
Rea;gttq s).o
irdia
-----+
lftila? --,-,
.canp?rag
'
aNYA
Looc"Hon of
6erva
oppns
bg
aharSe
in
gugltrsGn"pnz+
a{lns
BLulnetl furmpontnis in
mut$ple
ons
dhbd.
vi!;tllii-l.
' Ecz
oft*ntt
ott
ftt
S*-
cD'tl
oPPllrorr^s
be derlor"J
scfcxcncea
coit I
ciJcyl.t
r7'uw7
tts'
xr,lprrt laatl bohnte btt
.qJ- n'-iJisL"'
t)l
B'aorrPa r
$efllng
Druu*.d
tef
boat
Di*rits.,td
no nerd oP
B.cotrpe
o?png
l\}<r{&at
6"5fi
5t-rrttar
rlo'
thy oWo us
d"nl"P mtltlPle
'
tr'"g
V
rntJdPlr B'ct^Pw^n'
tttEli,eJ
wlt,"nxt 'k^
tDirh Tedlrh0
*7r'r'6
ol^s (-'t
si'
---
:-
ser! rces
r , JB , wcla
Rrf
6a oed
l-ltbp Jn
Jo
D;sr,i tc,.re
ajso
d App
voker /
ioPrnent
Drlo:dts
@ S,'*
P,ovidor APP
'AfP
@ Pr{'.1-t sl.t
( *o..
involvzi
lya B;rI,
catted
f]utp
E<IB.,
5uor"r
'
'
-- tosq&"Dmoo"t"*''X.;tT:T*i.lX-6;
ive &a't'e bY'ro'h"'/ qnl-rra'v
i'tifi.*
io 8'coroewnt)
fle' canJoln6 b"'rerboA3'
St"t,v'
(*
are
oo c{ b..arbod,g
Drctc.raH
->
lahnoloytte
PrD\'ldcs
Dci re
J;.niu.r"J
CoRBA ond Q}r-" "'
9+w*
rt''e
b-omP
rcftrena* 0s gl$a\
visiste
ohts
an
also ruroVcs
Dlt*u,rea
off".)
---)
-"'
ft
at JDts
Disl'lua}td lecbnoto6S
useb
Cote pirg
S;ldboi i5
'!.
btrirt - in
i5
he
oP troi
DPPetoce
c'Pi
blLD
oYc
Loco\
-===
Locor
slttr
cl]cd-
iq"fq11qgu"l
P}6s
cticr* ft'o{'Pn'
regjde5 in tuo
criP?e*er*
ilns 4
SrrnLal
=
=*"
Clded
Locgi' objeor'
TP t\t-mentro&
i5
ftcr.ote
t\fl(n
lb
Clffe-J
Orn
O{]tt]'
tr
on\1
LM4! reer'5ts
cl|<rrj
hm !ltl^
o'\ ol'u'' ics
Obtfit krz'ne: Ptrorchlr
be @red
imptc
class
--+
hlhite
deuloping &srnhted
krrr ra
G(
rrrnrs
O$eer
d/\
dppos
he
l"pq
ch Plaln rrni
E,*arople oppiicoHoo
,Qrvcn App
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
-Gie.l*#rc^
Cll.il
il
k*'
A?P
",j c,rv
'
li*oo
il.
B'rrrrhroa<
(int
f;6Eerz"r<^i
t*
vc'r)'$nu'i:
Ba66tc
Ex(Pd"n
/i|9*.Aw'i"vo'.
'
imfrort J&\Ct'lrni
)t )
xi
,,-,'ffitf,,*tffi
tlwot':s Qc"ereEltq"l
PJb\.ic E*T'npr t)
s-
i
sararn Grurn,.cr"r" )
o (lnt vor)
,.'.'1'-1o*
t^3
$nart
frtu.
/',^03.-.*
o'
1.
1a5: reg
*i)
,ftai
tl(lfn
J /l $naL*"'i'a
o'v.',(5rl1
rl-pt
o"6stJ)rtrocs fu'Pna
obj=nero krrfrnp\l)i
//B*r*s
ll r'ro's'''"
ouil
i
i
Na.,i.2
U"'':;i.^l"a"
5'o d ( " st"- *pp rs r"^at - - ' '" )'
'v
qrso
ou'
r
N6'ios'bind C
3
5
il
Ctic'$APP'iavq
irnpolt
"iala
'
rrni'*r
J*
, v t(Sr""gtl
t,
,* n t* "F
E.j
\
u'.'s') w*
fin,,., *oon5
r"bj= LE"r)f.Ji-,ij
L-, lt
ElttPd on
or"'ou^
stt'gl.' lo,w
.toova.(uinu;,): il*so6i=(ruu)r'n'rni'r*!'{'r'ri}lJtrIl
["lqtt
to
''ntorr
ll col B't"ruat
));
S'o' rCCut* hw :' +b\'s' fl'"a l..or''.* "r t5
3ll-^^
31o*
Coroptte ,.1auo
Bres'
E:\Apps\spfing\Server)'i'rvac
c60t Far-t'cras
f ,\fills\
il
Ctpnr 6rderr'
$errrarc
El\
Ptre
1'javQ
SnrU
Alrrs\sr,,rnc\
Ct5
6n
P're
to
Ctierrr
Run
SLzPJ
e"*n Qoae'r
fr.
scvwr
) rmiregis\
E',\
Qun
.ctar,s
Ar0p6
fte
si'*t\
3e,r'/6.
Cr,.i(ni c.{Ptl.aH
: \ nr:f,s\qmng\ CU.*
ffr'l
Sntal
i,
E[} >rmirefi6rl
2ooo
and
k corred *trh"""'8'
Data
3:'rra rntcrllcne
Te$rxse
is
to
0n rrcrahof'l'
Cdled
s;ae grrhms
--+ T6e 6kib &f clienJ Side 4 or e"ver
'
oPc'rctl66n3
o,
ec.cl, orhc'r
P
ful
rnM\
IU
a'.vc'{ cPPn'
oP
on b.hale
frrovide5
o*cros
dewJ4 r.w'r {
sh6P'.s
c.l,p,s, I
l:'^. c",+rq c{,pns,
cu'al apPns as S,'inl
I
166orcin!
t-i
urirh p\c"n
aPi
'
x,fl|]
exprlcrrg
#
lffi;"X+if
Oncrto-'/ari"s
I
r,r\i
t1''
tT*
---t ot1.5P.rerno.n5'rrnl Pug "flo.et'fs
ffivrnr apPos'
5n'5
,,.er*sn L"a'n3 ln "; ;".';';.-,'la o *ni'"'",
r)
lhe'.e
-----i CaJ\
is
ho need
{rn""-f--\'
tuo'"
Ftr65g,6crrHon loter.on
ftbstrct(-nu"
; ;::, *l.". n
'
61'de dPPos"
1 3t"'B'i!"
--,
15
these rrcrshocornS
9.aP's'de
r urrrl cePn 4.
t0i$
ccrnrounicdl
Loiu
gcz Iheie icoo Prolie5
)
da-ta
rrrercpq' q61tt11on
/- ^- *i
.
#:ll :-
r'z'me
@&wi..f"rq4""!
Q'^Plicjtb
op 6bY6nf rml re6\sl^t$
si"Y
--) dllc[o6 io
keeP
hrs;rrrs O$ecl
6od
jnje*i(m Prbcess
derr.den,l
iqjeuton
rePcrr'oce
ol[oco6
to tf* g.obj
reP
ftrocr!
dqz.'rle,<;
rbtat-t3l^,
PrcceiI'
---->
ariaUJb
619
Servire
F-;^r'o'rcr
oarn
haornX 6Pet;P;od
->
exomple &1rpl;co'on
hth;le
deve
lopiog
picri6
cr'
erlr
3;-,"gR"^ri bt'eed
c.rier^tj-
Busi
cr{?n
[3aslne'r;
rh'
''*
""''t6rsr5
Dsr'Jl,',-/'ecl
Loe o'ed
"'!s
obeet to
ga$r''ea &"m
1r**IoaY ogtaH
ou3['
ct{'one
ro 6c'lte'i
Rrni
o>'
*?^ *ut.'";'6t
t
tol I-i n3 &r-c"'t5
lome
O)
DicK
acopy
c)
Url
tp
$ivcr1
16 rr"i B ohjeti
fttes
ro p,. frrm
d) prc-..t*oti oa
Loovrrp
'',".
tt-'
rtfierl
trn\
a4
o'r
o1c^otl
a)8*
Busintts
mn'#,
\.
oo'rn,..br,)
acr+''o ds
lI
/'\
(''l*
ArPPO
Ploin'(roi clicnJ
(vce)
Spncg rrn;
---
(ttt)
coPred
)--
lo
In r(cd
'
(to)
Dtsr;hrrca fompcvrenx
ciictf
afPn
Debit
mrr;coti*s
-,
APPq
Card
5fri3
rrni $ew<a
frrvc\fe
siinJ
Cor
rt dc't'loPel' ol
'
ge
Ege
mts or(ts
Mhre d,rhptnS
lqrrs
ft;qnnr
in
aldrr{ o\
Serl,<"r
RmJ
i3
&r"ln*s[o$t:'
obre de.*'l'Prt
Languaxe &fxnde'-tt
totb cuerd-
(-tr.,* t"to"u
as
on rhe
@ Aw\r"X middler-mre Se.vrcus
t/r.tr d,'PFJo.rt
@
clrld
be
Se{\x/rel!P q rtrt-r*t-
ln Java Lar4aafie
ctelelo1rJ
rb',t
G-rnrrurrJ
S'srnesslo5tcs
lrtno'oP
'
cq}lc'o
"P
le'dl't'')
ehrdsrton le'd'*'')
Sp"TEfg
SpgErO pravi&s ehrdsrton
rP
iq rh &r4oprna&r4oprna-,P
EJB
base
!
i5 rrotlrrn3
Heie &r,.,or o4pq
&'"
"b*
!-"-
,Yt
gfA1tr"r8
grATE'n
)) '
\i'--/
'.-
'
\r
ot ufl*pgt
U;J* ft*tt*g..ni'ehr'*r"'
&rvice
in-t'e cPoc
'YeEs
6'oars inthe
\-\--',
*
\,..
o*""^^
![rrrL**Pr^uh*g&""
.vtffodng . l-,-.,n!6r.,,r"
hKP'r
5F
ltl6k"?rcrs
Teor't'ologl
-o
**
HE"Fr'tt":
sai"t,t
A.^l*nps in
inthe
tbe Sad'(,'l
a$oppficcrloo dtplof:el
xtot'r tknPs
'-
d'*rrk*cd
*^ d disttrtu-rca
urln
slrri.rgs u'ln
rr ls slrria'gS
os Fe6lsr'5 SltO
6pdog &rnta,n r cots
EJB,
kn &t'latw
su''tu"t anA cLit* ka
bfn *'tut't
,n b*''
^a
HTTP lNVOKER
u'ieb
ctt'b
lbr(
ltK
dad'srnpnJ-cf
dad'srnpnJ-c+
iu'sr u*<|'^L in$e
6rn1n*^r$or
gr^6lrlcbsmr..r
3rr'6 Llosor,* prwides
prwides alsrror.rr"nl-o6o'r
abswa,,""J4w
\--,
mAe
cc'n rPk
q$tn'afi^If cr'rt
' br q$tn'afi^Iry
v
ctrut Aep
JB dtent
ht6r*n fS.
EW
Aw *rxl^r4,,r,,*
fs. Sn"3 htl"v'*
ujcd
scd
--
plornEJB
'
IL'* (gtLsluaoP"on@
inde,{^1de'rl-,
i< l.anguqe
e}e.-.
d':aonel
Rrtrt oryrrta it
{04
ctlc Grr)
Drloh,rfS O? Pnl :-
\ee1-, o++^
thie
Nvittco in
fte
is ak6 \*g"%.
tatrnolq5
&.va
jaua Lrn6,ro6e.
clC^SSeS
oP Wcbappticorlcrrr
'10
&{".&t*'
fcrrroff
r.rtse
Corl b
dsrett
llrrp"esp"nse
l+ttP
rt9/re6l- i;veat
&om
e-tie-nl-,
n utet*,
/ el ft-6rahn
D
clienr'5 aod to luus
i{ar-r
urbo+pn
to frc{ and tcrbe cr.u Httpre$rrst &,rnlng %
Ovsr
Corne fhi
groHe
Coe
icrke
llhis
Spedal
erne
*eltrrl
6e'rv
tel ftogram
FlorLrarfratl,('
ewwl JsP t,.^grarn, is coued
rdtlongfi,r,,l
qcrg ctars
F .rnrCcokollc,/
Trsr a
FyonlccmrrDllaf
i6 a spcjcd
uj(byrso&6ce
ryxg'an
4a
[&va
crars)
*or
aofs
at
ffJrX 4
SWrs
appn
F*esS.wret
is
tronr
fr<l'larrSeru{ef 13
fior
GxhDLl(^
$*ter.
G*rrtttr Q*t.r.
orO.se.H#'e^tcr.Di'g
--)
*r.!tcf
Foflr&nrtrDu({
musl
bz
or
Caohflued
1aw
Wtbgc'cvcT
ruLfple'YY-1rr{rr
A<tud on rtr.tc],
.
AptiQdon orw,/
GCrre.arCS {EAeJ+
Nt"b
olPn
-1
F'gAtuer"1
.F-I
br+iru.t
,*
..- .*.0
.bt*ilrpt (gurrt""
ootn
tr}hleb( )
B.ou.r
rP;
6erl,-Jeerc:
wta t\
u'(l
-,.tr
i-.....3
Nhreo DtsfarrheSftvlft
i,5
ir6hr4n$okd
@$..f o4rr )
4 +ounq ?O,
vlef
N.r to
"o
@
ille Dqrarn
prdgmmer dePlogeb
$cz
oP
load or'
-tl'rrs
D;srtrlclr'r
Iounl
@
-' fr{rrf
S'}'"i*
> Cofittl|
\J
co hlela4plica-19c6- ir> vflo #:rW
clans oulat
Drrr,o.r.r,a &rvler
.,,,,
r.*,-.\^..!
'"e,'r<s
c
9'tttlet1'pntcsttt't
6ra'fi(,p
otoss oqy
6ran-c'p
Co)
9"rt<J intcnrsrq
d-'-'vlng
rbc
op t*Latnn'
deplogcetrn"*
lDwo*r,te'nv*L'ofilo'rNamaF
g'" *
5a{vl4' xml
Ot"ta:nn
Sr"r5
bX
c"ts6"'"tln hel
3r*'58eons
.Ihis Sp*ns.c"..rdr{d 1x^ftr,ros f-lrr-ins-r,ntraftoD on a]r rhe
c'F
Sftryt.*
f;re.
9a'^ttceEzpotrs ktt{'6
prelrsrantiaH'r'n tr lJrrp$rnort
o+
W@
tfo hru;ry S*itt1'"*o&6q ffirrncas o*Lo,nd
rt.;srr.
in
cqid
Brssioess Cla*
t" *
Etpe6r
g-"
yqf{est
to &"w6 o4pucoHon.
url anA
'
"b&*
8e..,^}
-h
dT*
'.-'-
tcftEence
cr'bow auiuhiea
fior"
ReXiorrS
:he
B'ahietr
Dsrorj'er&"vter garFrrs
a[o.
&"tg
/A
o
*rPr**.,rp
reforencc ftom
^.,"^,
B'oUtar
opn
cti,*
O
9cl5
'-
g*
---
HirPr'""b:go
xcrrople o{pn er}
.--o A
-+
a+t'n
-'66{cr
rffilJl;@
beo
WebopfJn
of lon-r'oc'bapPo'
Uouo:x'iftc'*Pa"eDt
weucppn *n* uses Yqist^d 'ppolt,o5
aonA oJJJD<nt
aopt's'
&ghlkded
- -+ Htt?tr.,vole{r wb3{vices ate- f'e Nobaeea
o?f't$'
Dsniuxtr<J
olr
rprar
'*'-4
Servlet, J5? 1^r5o1,pDs a're
^Lnffur
&ttoulvrg
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
*lbe
tg'tt
dera;r6
Sanrt crppn ippc\opor Con Sand rtt-is
nuil cn as
Cdnlai
rn&atrg pafuos
to
),
fo
clicnr- A?p
Wd'ru
do<pntoaJ,
rhe
tht
Oisurued
O{rfyyrj,
"
P-omrhe'
tff
--) I9
cl;er't
eiicrLt
6ide
Se.r,t'r
, rben
---J Xn
fie
ig
b)ocre
oPc,'otlc'o
ii
:-
6r
(IY*i \
Crrue
$nc$rcmtrS
Cor'rr*-r rLiftrH
6htlX Cnqrled
fiwn
requ6
on
CoT
neg
to el;c,ni-
fi.-.'-_
appb ond
ert'e" ctpps6S
6^
o-0pn5
gSrrtronot
Corffo{lrucotl oo
Clicnt APP
rErres
ne^r
Clicru 5id e
Cr)
v4,l,l6t-
-)
$rr.ranan
O|I/rc$tCm-l
fD
GrnrrfrruCCrrfon Alcx't*
6unchYu-o(.ls
aoPrts '
I8
oi(rl+App
reO
P,.t;
Ste
Da(f
f 1t^f*-
yE&eF
--) Jn
---J
In
Sgrfhruncxrs [ommtrruca]tto i?
its idle
Ln
in
cr\d
rrrte
ttt,scJ
lme!
Cc,4ted
Ccrrqrnc.rru(at{crr-r
Cont{nuarrlX
bofi
C\i1nt and
otf{''rs-
Vtcc wdr..
A65rcb.;ronc,t.s
[us5
clicnl alpn ig
ccre
$"'Yut'r a+nnS
((e$dc
{uo'{t
, ;2t' ,
oalor-l:oro
=-:--
What ls Messaqinq?
Mcssirging
is a
ca;;;A;;;;;;;;::=_
;|ffi"r.,:"*
fror\
send mEQET6]E-if#
any :;i:]^i:_a
olhcr clicni e..l i.i;",,,"]llll: 'r
,"n,r;,tg. .l."iui,,gi'il,..:"}j;i-:1il1,,:olrnects ro a rnessaging agent that pro;id"" fu"lii;;
ri,ni in order to c
n".a-io;ii;t#fF9*ir!4!l!-{rlre
receiver;
does the rcceiver
rh;;i;'";;;';i:'l::-10"*
'h: lo
recelver need
tu^no\vontyuhal
knorvonlyryhat
no-._r
i*i.r'' i1-*[S$i*
p""pt. ,rr""lgieT.*$a-'i*,|
'l'n'i"'" "ool"",i"',i! li''jl',ii":";t:j;;::H,:"t
W-ts_Us&e_JMSJ8E
r)qtwcen pcople
n"**"
or
behvcen ,n,,,,.,."n
"'tt'tonj" mail
(e:rnail).
coru.rnunicarion
.",i",*ii,iijl
;n',T,-.:::
.Dr,t
rnrrrrrnr-zcs
,;,,iii:1,,:iil:,jl::-',,',1' ".ii'.""t"t'iir';
r
tl'ol
concepts a pro8.ramtnel
mu
il: lidffi;",lil:il
Iciuo
t,r'r,rirlcs cDorr-qlr li,rrlrr.cs ,,, .,.ll.
{l)cr}r,rrrr,ir;ry Lrr-ji!rS a'pricirri.rrs 'r1't'rt s<'Ilristicrtcd
#i;:t'
';"rr-"g,;;
I r)c rrrs A'r c'rbres
coirrr r rnic ,i,::':;:1.11"'s
ts notf.o:i!l.,;l;;.F
only
loosc
ly'iou plc'j bur also
rs-rtrc1ror,",,r.
,lrrrvr: 16 s11,x(51
.
ir,ii
,Jo.,s nor
.^^
ll,:,T,1:::',',, ";.:
"
.,,;;";;:';:i.'";i;,:ll:[:'il]j,.::;:]ij.j'
Spccincarion
Lnessrgi'rq proilucts
ro mrxitnize
'"#i;::il;:[,j:;:;:'''*'
,,r,"t,'itJt
Sptciiie,rrio.
1e u5s
:;'
u".ri.,,'ir.ro.',.;,1),"i:'
't
i,o,",r,.,n,s
J'r'blishctl.
i,
onry
Arr{:,rsr r908.
*.",,,um;,*l*::;,1:;:ji,illll'rJ]:j';:1,;;:::: ::#:jH
;l:ffit:1F,i;ff*ffi,,
*:",'1,''""'"ry:,il**
tr;[l{-#,*,'';i:
#:::H:,,y: ;il,:"::::.:ff
U++usgsret*
'rui+',J1;*gffi
l:il ;l"lliff l,: :"t;i;;'l;ffi'::'
't''e"
;';,'i; #
transaction' ::
1'"
4uuw
stngte
.)
'+!
\
i
!
*
t
Point-to-Poin
r urrrr-ro-rornJt M
Mcssaeitg
cssaging Domirin
Domrrin
A poinl'to-poinl
llteffiOucr or aDolic.t;^n
pplication is
i< built
h,rirr on_tirc
-r rncssage gueues,
^.:.--^-. ol
^- rh- cdncept
rvers. Each ,,je\(,rop i<
q )PELl]|'j queue' ano recervlng
tv
^AA.---^).^
clients extract r
il"' queues
the
fi
establisbed ro tiota rrr#--'-messages. eucues rerain all rnessages
i"nt
,o ,ta^ uniil
are consumcd
cons'jare., o*hril
or until ih.
the *---^,^-messa'ges expirc.
:::",':1":i:ii:',':T"1.ii,L':a{
Ittepbo'e
'rdd
Com4fbr
o:irh
#"i, *o u.."*"-Plt
$tifu o
"tut
n
[3
ArxArrlr6tcr&lrtne
to onde! ste$
;>nrrro h.hr,,aq
I
l,Cller;il
I
llliJ:li ri.rr,ir I
ftndd'
l:,'1r,!!.riii:ji..
@ffi
Snd5
$e
ferch
rht Asare
dP,s
tirrrftro b e.l*t'4$'e
co4:ltncr.
M cssatl irrs l lo
rrr:r
irr
*".,,",,':iJ;ll'j,';i:':',1i,.i,,,1,;:'#",*;.f,ooJ.'
;ff;j:,:il:
Pub/sub r'essaging
l:/
,H
j-.
u,r.-,,:;; ,:::::*tttt-'-'
5::l
l:.:,*and.-subscr.ibers
ruotrsners
trv;i:.,l'-i-_,t.lt-:u:iilil:"t
depcndency. A cri
con$rne onry
con,inue ,o
rness:gcs pubrishcd
u.
..,i""i-",5.Jii.J;i"":1jH..;1*,;;i'.:,,"#:I."^.,.;i";:#:,,::,r.l;rJ.:fi,:.';jl.j,l
subscribers io create
not active. Dujable
to send messages to
rnany rccipients.
lu,.l
tt
F*tF6!Eb!'
,,
I
i,r
.-.... !
to crnddsrand pl
'' l
r::'
alarr
Safill.ll
-r::
-. ;
|
r
Cl\
Gd"K"" '
rJ
:1116
;.
c,!-.n
Messaqe Consumption
Messaging products arc inlrcrcnrly gJrr'llrrerluu5'
'.-"''' rsynchronoui: There
I rlere ls
is no lundamenhl
fundrt::i3f timing
bctrvccn
:n thc produition and
tTi"hlde
ona tlc
tf ,"
of a rnesrge.
ol
rnessroe l1^.o.v^.
,^r"
l.:lorvevcr, rhrhe
JMs
"o,,ru,nl,ion
"o;,;
n a r[ore Drecise sen* M",",s.;
_,*..,,,.,^ ^..-u,J|ion
j
rrr sr'Ircr iil,l,",]il;,:i
"oI Iwo rvavs:
-i.tttch rynou:trv. A srrbscribcr ;, ,-;;
cxplicitly rsrcncs
!^F'vrrrJ
-'!r
ferchds
rhe mcssao
tnc
-r.rmcssagc from the
the
.re reccive n,prh^.J r'he receiuc
.,,.iiu.. block
--^-.,..- -ur.rt
until a rressage arrivei
'ethod.
,ol arive
r.;v. \,;r,;not
rvithin a spccified tirne lilrrir
,;";il";l;; b;,
;;;;il';;;l;ffi ;":ii:,
ll.;.i,l;;fl#" j.:,".
consumer. A messase
fl,:H,:::,:::,:: :_"^::::! ii,'i"'i"l'iJff
t: 1", " :*wi,h a "'iJ:i?fi;t,fr::
calti'g
il il:1I::ff*l:ff
rhe risiencrs onruress,gc
:::.i.1".:':1",
",'r";, il'ffi
;il;;:,;,.;
:iX:",:;,i:ifi,i,::.j:;
::'::::::,:,::,:::!;
I;;*dl
.--iJ.''
rffi
lffi
W
A dministered Obiecis
l]:'o.p"',,
Jlln,,
;i,#::::'l'::,1':,l""r,on
applic:rion
p,-,,-s#lu,",icalr), :rh.e
12.r^.
i:*.";*l +r,::[;:^'ix'JH;:;l'i,,'i:;,TJii':j
i.i'liJi"H*:I:",''#:ir;i::*','#
tlii;tiliilH::i;*t#i{ir,rlt1u
j';lF",u*iiil,":jp.:::fiil?;ff
,r,".
J:.,";ai:r;*:
r'cr'r gs ,virh
"r,i,j";,,,,,'i,";.,:iJfi"il'"";'l;,:#ili::,J}"..".ji,i:;
qonncttioI Factorics .
A ,o,,nurtio,u
u,.,s,E;,'g ,rn,uainl
Conneclions
a
,o,,n"iiirupsuhres
rcp/rp
socker
scssrons.
i'.
vinuar
A.rcsrirr is a single-threadcd
'n",,"s.
pn,d,".,i
conro
or mor"
d{
!,
:.r
i i.
t
r
6l
.l
crogie.
t--.
3t
Eessaqe prqducers
A ncssage produccr is an
obiccr rh
It implei'enrs ,rr. M.;;";;fi;:::1'n,.'.rtirt'J" by
.',..'",.
t
t
Messaqe ConSumers
A: ness?8e
"o^u.ullln
and used ror receiving
t,i.pr"'.,u,"ii,."i'r:::jfi::ff'J:1
nressase! senr ro a
1'l::::
*ni.:.:*'""
/r mess3ge consumer a ou.s
a tls c'j;.^r ;:;;;.;::.,,1:''..
.
i
tt*'ott
in a dcsrir)al,ll:
pfovrder manages the delivcry
provider.
ort']ll1::
1.he JMS
rncss;rges
':l]',,1]t:
oesrnarron_
frorn'nteresr
a dcsrinariorr.. ,"
.-_ lllc rcgtslcred consulhers
Messiqe Listeners
! lessqe listetrcr is ar
oUiccr
of
the . -
rt,
1,ris.hjcc,
;:',til';tr,'liyti#;:ilil,jrltiiil:,fi{il::';:"H',";LJ;'ytli::.:':r,:,
onMeslase ln the onit{g554gs
"''r'ruo'
laken
a r"-."g;;;.i;;r.
rvhen
Messaqe Selectors
Selectors
.'
jtiffi
l:"tsoges
"j"l?,,11:t:^,T
::lil;J"j::l:Hi:,ln'"':#1";nl
fihcring,ne;;";.,o.o"
il"s;;;,J,'JJ";,i1.;
;:r#tr;imi:":'i)::.1;
appiicarion.
j:,:'.,,:::
Messaqeq
The ulrirnate pu+ose of a JMS
aooj
is to
rr
rw prod-uce.
and ro
Pleuucerano
loconsurne_nlessa3cs thJr
orher soft*.are
other
soitw.aie applications.
aonlierria-. lVil,,--'""
,^,a a1:11t""
ca,r ihsn be u.r,d bv
rrrat r\ (l,nple i,,
you
you,ro
to crcltc
crc'c mcssages rhJt mdtcl| fo
but highly
r,igr,ry-n..;i;'";:::,;{
flerible, cl
'"";;,s..
s Ltrs ,,",.,o""
i,ni,i,;;;;;i;:':',:,::,:i'::]':-'r.:r i:"l,Ys rppric.riorrs on hc,crc:jenco,,s rrirro,,ns
,il;.;;:;;;;;;::,":.1.il"""::;,i^j:11l,lI:,::l"pr"
i\ I
cssagc Hcadcrs
properties *
#ilI'l::;jf
..i
f'*'t"'
,.,.
*#$:."11;'J'"T:i;:::';:'?,0T"-,:'.':"'#"i;;iJ",I:;
lo create m"s."g. ,"l"i,o^
use them
Mcssage Dodics
TexlMessage
r:""00',"n
other
m.ssasing t;,r,.,ut, o,
1,ou .un
'Fu"tt1'na
;i:il1fr
ty
en,incraror
"on-rcnrrlr
u, .",",,r,,,,,ril-i-u.;:.
scriatizabh
sc'd utd
on-ex.nsiut" rrr,.,.r",p
;;"fi*.il
;i::';":fl"j:fiffdM
ectMcssagc
irir(l
,i:
"""::,::j::
-- - - r h,_, ,*r;"r.
""t).
tg. Cornposed of
heao.rliJliiit
prqp",r..s
ryp"
ffi0wm,
l;
jr'!E applicarionB---
I"":::'1f*')-_-.------Myeueuer",,o"r;"uo3odro-.,r...) --_
import ravax.naming :i
n
rttt5
i-port j""r.uGiii.ilrti""; {.p rtie or c-rc*r oliar gornr'ng tD o}o$Fsb
19
$mx'l
@ xgnvnrs cbnnedivl bl to serda ooP n and JnJ
it importjavaxjms.';
5
6
7
8
9
10
11
t
4 a. /^ ." -r-.--.'
PropettiE propEnew Propenies();
. corn,scoo. er*6"prSse . rar,l'5' Sen;arJoitdo u$atn\
Irop,put{Conlext.lNIIIAL_CONTEXT_FACToRY,"@,,);
prop.pu{contextPRovtDER_uRL,"B rfloiJ}&:lir.H
12
c)Jli
lrs
lrs
\tl
18
QueueConnectionFactory qcts(eueueConnectionFactorvlic,lookuDa.'conFactJndi,,I:
Quoueconnction qconn=qct.cEateQueueConncction(li-"qc41;.i4;
,^l)
t9
-Til';""e'jlrro
QueueSossion qqession=q6onn.createeueugsession(tiiio,illsion,AUTo
20
21
22
23
24t
25a
261
t""""n"t
Iili|X"r:il,n"
28
int k=l;
nl
1
zsl
30
321
texts"Hotrnail";
else if(i:=2)
texts"Amazon";
34lt
TI
JD\
olse
39
40
I
fo(int
43 I
41 I
45 I
aal
4eI
50'
51
-ert 'i4'l
a{P&rv-alm)h'lc.t
tir) a{Xr,r! - ee . jc.r
CID
1=1;1<=5;1s1
Cr),huee.jar
message=qsssion,croateToxtMossagg0;
meslags.setstrin gProporty(,'Name",text);
messa ge,setText("This is ltem "+k+,,"-,-."+toxt);
ael
471
rngdo.ncrio
Cli)qD(a
text!"Bazes";
System.outprintln("Sendirlg,,+k+,,\t"+text);'
'
qsender.gend(message);
k#;
lot
lltor
52
qse3sion.close0;
53
qconn'close();
s4
yjrlr6a f1!6u<rre&n&r.ictvct
55
{ava
56
57
58
59
60
61
62
63
64
65
66
67
68
60
70
textr'Jcuru";
38
rfrme PDg,nS.
Q teel
else if(l==3)
3f
if(i==1)
::l
oqt(J
..-
in
for(int i=l;i<!4;i++)
3rl
47
42
Hg6ueue&n&'t
importravaxjms.r;
import javax.naming.*;
lmport Java.util.Properties;
publiccrass
MvoueueReceiverimo"'""""""ii1tixr3ll
-.uer ftam
chonge
trsa
Jndi
pnfr,,tttr
tt
a..cr.edes"ffis"?
'
prop.puqContextPROVtDER_URL,,,t3://localhost'001"t'
toarFartcr/.};
71
72
73
74
75
to J$C.""rghc't)
AcKNowlroen:E?i'rA!hb
todt'
Que!eSession qsossion=qconn.:reateeueuesession(false,Session,AUTO_ACKNOWLEDGE);
ii
l:I9
80
t;,
Queue queue=(eueue)ct(.lookup("Oud&ndi,,);
n"**"*
f;trct
rtr srscng
QueseReceiverqreceiver=isesston.c.ei;ie;eive(queue.setector);
tq
u4
uvQu"r"n""ui"".
fi=?#iffffu3.,u"*".","k
qFceiver.setJlessadeListengr{mq};
-------L
85
86
!i89
90
objcrf,
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
iJ"11i#:$Tlli
ii##
Sf dl
'
Tffi 'i**.s a*
e,pdntstackTrace{)i
98)
9e)
100).
tot *.-.___*
t02 (App2l On Topic
ffi.,),
163 -.--...*-________-____-Igpicpemojava-_B#j.:b(:_amD.)
104 importjavax.naming,';
'105 importiava.util.properties;
139'.o"nl:gtln".j_rrrn5
108
r09
1.19
'l'll
112
.lt3
Properties prop=new
111
'115
Propeniesg:
Jnf,r!
rt6,s
properrtct
tj
4 Cntrlss$rh
prop'put{context'lNlrlAL-c-oNT_EXT-FACToRY,"corn-sun]enierprise,naming.seria
nitcon texhactory,.);
"""
prop.put(context.pRovro-en_unl,"iiop:rir"" jiii"t.jiqs);
Contextctx=newtnitialconteit{prop);
ToplcDemo ttsnew Tep;sggrnsil.
-j(ur'<'u rr6!s a!,krr-
'!'!6
11.1
118
qioiu!(gxFuJ."o"t*a,e*,a;#$ifu
113
121
122
'123
124
125
Topic topic=(Togiclcb(.lookuolToptcr:
126
iil
Apr)
-Ggr*iAf,|;'$e tn)(
) rlT:ii:311ffi:li:ll::-':i,*:*l:i*:n:*nrcrory)cb(''|ookup(roprc-rnironv);
i3ffi."Hi"Ye'+:#anr*i$,ieH#*ess
ill
TopicPublisher tp:ts.createpubtisher(iopicli
|t;
@
ili
136
1!i
133
iii
142
_)
ion.ruro_ec KNowLE
F6llshel is creareJ
DG E) ;
[r]r+i'
lD lOp, c
TerlMessaqe mso:
lf.*:9il(r*s);
--r
lr,Jirli3i""tiJijil,i;i,,;;,
rns0
143 )
"--*--*import javax.naming.';
t46 impoft iava-util.properties;
144
145
_subscriberDemo.iava_.-._6_____-_
147 importjavaxjms,.;
148 public ctass SubscriberDemo{
149
150
JorBte5 ;n
1s|
run
closa
p&rt
Samg
c6
p1g\/iocad cr{po
Pcr2nishor
firne.
ptop.put{ContextlNlTlAL CONTIXT_F,ACTORY,',com.sun.d'|torpr;6e_ni,ming.Ee.ia}|tritCor}iextFactory,,);
151
152
153
151
155
155
157
158
"*t,+C+$'i;-'
tt do-Sub(gk);,-? i.,k,
cq.closeo;
ts9
ftF,ff
160
161
162
Topic topic=(Topic)ct(.lookup("ToDicJndi"t:
163
'164
165
166
167
rhe tDP;c
I:ti:::lT!Pl?crory
'JrlDa$drt
rcf =_(To-picConnecrionFactory)cb(.!ookup(,,tconFacundi,,);
%emF..r-;
Topicsession tsEtc.createTopicsession(falss,Topicsession-AUTO_ACKNOWLEDGE),
{6E
169
170
171
172
TextMggsage msg;
ms9=(TexaMessage)tsub.receive();
173
174
175
*&
----->
r<((rvc,s
m6d
1rt
17A ) )
---T-i',r,-
..
Crc.Ilr(d
fnly*iy
rb
rc.croseO;
176
.rs
183
SendrApp {on
eueue}
-\
1s4 ---.----.:*'-:--l-j...-------.-rrlessasesenderlava(Si$&*d..-_h.c_rry.toS.tc
tu 6o' d T(^r ynrsa5
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
lotrralr'r
sar*
5 3s f,res .,p - ppoD
pubtic Messasesender0 O
&lrff,sb erlrr shrrrd bC iO ruodoT moJe
131
public void seut{JmsTemplate
it)
r93
194
thisjr
195
196
197
settdc.l
jt;
f,-"-
l-"-
1-.
t.l
201
}i 'Jav
aL!)
qn rng.
E ndc^
"-1
> .i1vc4 x javq
6cJc.
>
'198
199
200
i<lla k'dc
t;z"l-
MBsagecreatorcrcator:newMessagecreator()
?9?
203 {
public.MessagecreateMessage(Sessionsession)
l3i
Texutilessage message = nu
?9q
207
tly
208
,
tffi!" rr'e.1 message = session,createTexfluessage{);
i99
z'tv -J tmessage.setstrinqproperty("text","HelloWortd,,):
211
) \l'etr4sd Jq''br f" 6Dl.r ihrfxr,i.tb r,r,.1
catch (J tsExceprion e)
111
;
s'Printstackrraceo;
lii
216
1i:, ); )
219
lreturn message;
eoe- art :-
220 fitsend(creator);
1li
,V
I
lli
225 -l'1.'-
|e.t
*ft."*"i cDcr'sm..a-rc.)
:'s .----*:_.s.s!s..,..Gnryefu-fuc).-1.*;n3
<?xmt verston=,,1,0,,
tqic ro iqcrr
encoding=,,UiF-8;D
irOfa*lota at,.rf ohjeq
rhe
E
;tthi//www.sprlrgtrirrnework.orgidtd/sprin;_;;;,d,-;:,>
dll
tzu
.,
<beaDs>
::i#;::ffiI,ffi'namins'seriarrnitcontextFactory<prop>
Name,, varue=,,rc
cu
i,,D
;U*dXy:,
(Ir
8t,rh&s c{nrrurd.,F<drrrJcLj.a frrm glc.rFsh rc5istr.,
23a
nd
11,5
o n Fa
nd
239
?11 <b6rnid=.igmptato"
iiilrii*i,T#l1Je.""Xi??i"TF;??#'[il:X,,#,'::::"*]"-l:-*?,,",
>qo
261
262
263
264
fi
ffi l;:$g:Tl:,,ij;ework.co
ntexi,s
ppo11.
265
266
267
268
?69
270
ft{*##l[t#i':i,ffltf"'Jl'S3;ffii,tr&#;$??f,q]tri,-"ioncontext(,,sp,;ns.xmi,,);
271
272
273
system.ouLprinfl n(.'message
ser)t,,);
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;
283
284
285
286
287
288
289
290
291
thisjt =jg
Messi.ge message
=
Tc:fltlessa ge tms g
:;.eiv{
il;eceivefl:
:;f iij<
rtf
msq frDrn
O,c, rs-Ct $trlafidrl
i..vac
^m1
t( 'Jcr!c\
>Jcrrrc. R-.r\teC0c",r-
sane cr
f- --+x jor:<o1
J--- sp*ng
llecqua >
292
295
296
297
298
299
300
fiaA:-
{?&&'vlr,
293
294
closS
&ndrr4pen
pubtic MessageReceiver0
O
joi Brce in
try
301
302
303
{
System.ouLprintln(trDsg,getTexq))i
304
System.outprintln(tnsg.gestlingproperry(,ierr',));
.)
305
306
catc\J
307
308
309
{\
sErception e)
e.prin6
310
!l/'?
Itdd
312 | //.b4
l!9 .tOOCWpe
_:: -_--_-..-.spring.xrnt....-mans pUBLtC "./APR|NG/,DTD BEAN/E .
M
316 "http:/www.springframework.orgrdtOfspringna;.dto;>
31t
316
<beans>
317
119
319
320
<bean
id="cfl clas-s!',org.springframeworkjndi.JndiObiectFactorvBean,,>
<propertynam="jndiEnvironmenf.>
<props>
<Prop
321
<prop le}':'l1l1l11l!g.factory,initiat">com.sun.enterprise,namins.serialtnitcontexFactory<prop>
ksy="F ROV?DER-IJRL,'>ilop:/,[ocalhost*d{S<./o;dD>
-btr'oorn)n8. prDvldk.urt
{++t '
322
<props>
323
324
<property>
325
326
327
</bean>
328
329
330
331
332
333
334
135 <,/bean>
336
337
id="implato', clas6=.'org.springlramework.ims.core.JmsTemp,ate,,>
119 <bean
<property name="connectionFaitory-. rets'ici/> ' - --'--'--'919 <propertyname=,.defauttDestinatio;',
rets,'q"/>
119
341 <,/bean>
u2
l{1
1y
345
346
<beanid="ms" ctass=,'MessQgeReceiver,,>
<plopertynsmer"if' reF,'tdmptate"/>
</bean>
</beans>
347 .----."--.--**-*Receiveclientiava__.__4*__..___-__-_-___..--.
348 importolg.sp ngframework.contextsupportii -'-'349
350
35t
3s2
353
354
355
356
357
358
359
360
361
MessageReceiver mr
365
366
mr.receivetlessage();
fpublialxr gppn
import iavarjnF.r;
import org,sprlngtramework jms.core,';
public class Messagesender
367
368
369
. 370
371
372
37t
374
375
=(MessasReceiver){55k#ge16;t;i,;;;;i:--"
362
363
364
FilesystenxmlApplicationcontet ch=new-FilesystemXmlApplicationcontext(,,spring.xml
private JmsTemplate
jt
public Messagesende{ O
public void seUt{JmsTemptate
it}
t
)
thlsjt = jt;
,);
376.
377 public
378 t
void sendtlressageO
phkcr
384
385
!Y
,,1'*ro,*J{ messago ! lcsgion.creabTextltessage0;
'"v*--
386
eaato.at4
387 l.t.'.,(.6rGatld(. k
388
389
390
)
ce
391
catch (JilsExceptlon e)
352
393
394
o.priltffitackTrace(];
retum message;
395
396
397
398
];
t0
rlE' Yr,essate
il6end(cteator); ---.> 6drds
)
399
400
10r
rb?;(
de(hrd$oo
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 "
pUBLtC
liDrn f,ndi r{l(n-5
405 <tDOCTypE beanE
'illSpntNet/Dto eEAH/ieNoui.., ut $frn;ng i+
406 "http:/iwww.springframeworl,qrgldtdispring-beans.dtd">
407 <beans>
<bean ld="cf
408
409
110
411
'
class="org.springlrameworkjndi.JndiOb.iectFactoryBean">
4't2
<prop$> &o'narri*
,.,
4(+5
</property>
"-,ao
<propefty name="indiName" value="lconFactJndi"/>
414
415
416
</bean>
4'17
414
4191
4201
<bean id=''q"
<propertyname="jndiEnvironment'>
I <props>
<prop key="java.naming.factory.ini6al">com.sun.enterprise.naming.SeriallnitcontextFactory</prop>
| <propkey="FA#e=!ql.'5iiop://localhost:40,+6</prop>
|
424 <,lprop* JGv." rl]ming I pr"v dor. ur,
+t4{
425 ll </properttp
426 J <ptoperty name="jndiNams" valus="Topic..;ndi"/>
421
422
423
42lJ
4bean>
428
425
id:"template" class-"org.spdngtrameworkjms,core.Jm6Template,,>
) <bean
L <property name="connectionFactory" reh"cf'F Pttfr-d,; 4og
<property name="defaultDestination" ret="Sr
1ll
I <,lbean>
'4q : aq
433J
a'\a
r<"Px,'c (lard o\icr"t
66'sTc'oPb'r
'rb Jrns
iii -r*, Sphosgr4n irl]c!rcd toirn
436Y <bean id=''ms" class="Messagesender">
437
I <propetty name="it" ret"lgIqllEl -rttla : +60
43qI <beaD
430
431
e <,lbeans>
439
440
-*.-.--.*--
endclienljava---
u2
import org.springflamewoIk.conlextsupport';
public class sendclient
443
4{1
444
445
446
uf
ms.sendMe$ag0;
UE
49
450
clx
iooder
jarftres
f--
in
'.
-- x 'iaYac!)
|-'--'--':sp;%,{rn\
etn& >i"vac +.iava
>
i.ur^
Serl,dbe^.tr
451
'/
452
453
)
456
457 import javaxjms.';
458 importorgspringframeworkjms.core.*;
---llessageReceiverjava-455
its9
460
461
462
463
4U
465
496
467
468
469
public llessageReceive() O
QecPi
thisjt = jt;
l- ------
470
.).i1ys(
471
472
7iaYc( f<ftflwclierLt
F;r5i ,5kr1r a)al$ple Qeccivto
.405 E$ stzrr amlS cne
'
I Subs'oi6ea
?D'l'T aPPD- \
(tt/tkh'< efllD/
tmsg=(TextMessage)message;
,i8o
try
481
482
483
4U
System.out.prinfl n(trnsg.getTextO);
System.outprlntln(tmsg.getst ngproperty("!ext'.));
485
catch (JMsException e)
486
447
488
489
490
ver
e.printStackTrace();
491 )
492 _____________-_____spring,xml__._____...____.___-...-___-_-_.__
493 <IDOCWPE beans PUBLTC "-//SpRtNGI/DTD BEAN'EN"
494 "http:rwww.sprinOframework,org/dtdlspring-beans.dtd">
495 <beans>
496
.org.springfrarreworkjndi.JndiObjectFactoryBean,,>
510
idJ'lomplate', ctass=,'org.springframeworkjms,core.JmsTemplate.,>
117 <ban
<property name="connectionFactoryi ref=''cf,/> r-rtt^ I a,a518
519 <property name="defaultDestinatio;,' reF'G-V>-- - .
Erc, s6-t
520 <bean>
521
522 <beanid="ms" class=,,llltessageReceive]-.>
<property name="if' ret=]teripfate;f>f t4<4
: Srj
t?q
524 </bean>
525 <beang
527
importorg.springframe*iork.contexfsuppoA.j
528 public
529 {
530
531
532
53i}
53il
535
536
537 )
538
ctass Receiveclient
FilesystentonlAppticationContet ct(Ener..FilesystemxmtArplicationconbxt{.sp.ing.xml,);
*ff
:ih"""":ilm' =(MessaseRecet"errliJ6;s"6;?K:i:
*'
a-----:
TO Ocheive Osgnch,rono&g
Cororn
6lco
cfri(OHc.n
Ol sc.rct
Uose
Ccrm
roudaofi crl
ttPS6
c(gtnt
8oq:r aod
ctebcrpp r)
(Jclued,de Ter"hhobJ)
knrr?n
lcoo
?tDvU,{
(Io
tlargc srut" /
*n&r
ol
CrsgrrcbfDno, 'S
brocoscr co in
Peceiver OPo n
qrnn
Qeait.E
YtSq
$1s i5 wt, ro
tulO &va cepn6.
----4
JH5
Server
prR.m
/ f,rDv;der
ftmPorcrAl
mssc{s k^!e d
fuppri
ciesn
rrrtt
As3nchronotts Ccrnrocrni(c*ton
c,no h*i''g
ci^?cJDi
@lu-reYD
Grto,ssfish
frqBy*$1vfirr
----.
-)
f,115 8q{f{rtr6
I
q
oq
tio
twtl
Flo- GusFrh
hc.nd{u+ 8wn
ilso6t
fi.ut"Wctdt.-
fiS
vefu
PaSe
lrc+ 4
rbe s4lurrrntc'5
oalotl mrr
roelscirlg
dortcti
nt
r1 prrul** Cot*,in
Fr,
noa
fr.a
--j
US(S
hPo
o^o
Top,.
thesr
et^
l(
r-
oF
the
o'-[c+l:otr'
Ptaeaot'
ro or(ol in GlassFsb
6fart
elrr0:-
rngdorrOn?'
>
?''X
SerVctf
OsadYo)
crrd og,n
o GrcrssFsb.
Server
skot-dwrrr:n
it6
Odmto&oeole'
mg&rtrcr:na
er<f{91hrtptlltocorttost
--,(/
a-
c.res*
tA*t
Raurrce rSOe
-r
\J
"--------r o[<
re?rrseofs
bk,
&reue akr6rrrrr*
o Mctlo.TAatu#E
Rs*n"
'-'l
F.cdn"'co"*r
fiSCcrnarrna,-tcn1
o,erc
fl4'5
ft6 i
"
c..eJsbaleertt't')
c.-** L"* :*
-
Qtsuxes------)
fN0rruarrr.;
6t{r'-
"Jesrocc'{'
trtsted: ir'srrrlal
Jt15(o!,neo$oqTacRru
Neo
LtlD
Jngdortnc{'htdn IDo1
ctierri
'
eo-eh
!,""\tg
SHgGrnrEJ-ttan
enrer'
\-/
JNOI name
----_+ dl{sResurrcea
De
O4z'{'F \-/
sdvpfisn
ruc(n------)
Qerd'rces
\_-2'
JlNprName ,
fi6o^ Drn*r^)th*'
Qetwttz-TX?e
)ok
CaofuatJod^
l.r**.i*"'* I
' a*dtt
inr|'e
Dcg*;vrattcm
c
c+aorc
to
O Plozrd..a
*------t
su,en >Qas:rcree-r
-lbpl
6nvl
Mmtr(oo,ote
vcnrnrth
lfor-rcer
r h[r, -----e JNDrNarne t@gkr6stzrL
,------' -:---1 ------: ftsar".rt
@sggeg--r ""@
l]nffiffi*
colfi
is
Jw
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 .--+
in glasftsb Senrr
in
Sboss
Sevw"l-':
o^krlpablirhe/
ftc.-ru<,r tm
A-pp
idvax.irr6
t'&dogic';ia1
jaleee
'
ja{
Jbos-.pvaee
ja'.1
to srd #
to s'e t'lcnry
ms6-l
sr1l<
furn Se flera'c
Pl'X
the 6Furfttre
O116 rnessqg e
cP
?o:
beade,
Froo:
propc,rg oornpr
mni
Tasard addiricnat
Org:
arrrhor:
Tt'
Ttrere
i6 a
ori
ozed
values
*
"ff;t:rT5:..
fo ctt^l' (olrh
flersage p"op".+'q
p..,ss)bi
li
rg &
Developtng
no : @
ine"
ttto.l-ct
&"
Husc'S6
rcrs og
-'o?lo+lPra
l;"*
'
Conrrcnoonro-Y
OoeoeGoeneus'n
Otreue&nde'i
[r )
&uzueQece;vr'l
(1)
6uecre (r)
Sueore6esricnr
[r)
r-elor<d lbPic
Ib
pi c
GnneorcoFacry
lbpcConnemon
-Ibprc
To6eR*ushrr
tr )
ToP;.Scrlec;ua
c!o& ete..-.
(r)
(r)
-lopi.&sl.'
(t)
"yekx1td to llcssages
Sr,uml"lesage
llapllesage
0b&* l'1csscse
and
elc . .-.
bosed
Sl&,t,
rcceivc't
Dorrrir\
r(R^{
crpplicortc,n
o{,plQ 4
dr"Jl$
$c
coltlr, &,ere&s4\blt"
o'loaf.r"
td"*
*>
1r
rccrl ti
rne AafiP te
o.{ptlcatl cro3
@ OrnO*"f rrorn8cme rq
@ 8ug5 rrqnotemcr*
(9
@ ft,,
oPPttne ord'a
prcdn 6ms
o{,P(D
"P
$p.''S ilr"tS :-
*tls
Lcler o9 plaio Jfl5', Ttn
-+ provide6 o.bsr{octtoo
+ l[t,:s 'Jt16te-plot< clc,-w 9i"pti?ics $e
-+
Nonecd
-+
givus
Coubeu<
1m&ale
c.rertf(
&ukrp.,ces
it l&
JiloTe'platc c-torl
Sp,tngJtis gnrc-a $e
gvucess
',
jvos'c(rn'J-slt"vlv'-'
'
Pt Jflqopor<lf{ans
TDPicfottt.,-tu desrinaflcrouu#'=y
Caued rr'essc'geCttor<r
to ctrdJe
gy6sr:*lcrn ohF4
e;posed
rbeu'srng
di?F tldtrs c-+ rmsa6ecrearors b3
o{Pn@ "P rhe
*ePR'r
xorqPle crppucorrog
P-ro4
bCIsd
fu."5J145
ftr,
O
f:6errjs @ "0
gicrnpte c4Po 0n
AD kr(
of
gth**h
gr/Anq crqs bclsed
t" @
\'/
r'J
-^ "o messc'6r'
djeF BFs oP
a"'*o.*e
;hs4rt']lieg org'e
rhe V'fleoo's
A{rP.rO
rncsaSing dofrc-,n
.--/
:
-
Xcclure-v
Sfxioq l"Jeb}lodclle
----==:=a=-4'=:=::--
Spriog
lJ{e.b
modLrl e
rr-icafcr'!:l
rDcrke +rioq ciPPDS cbmrnct
p&,i:t (0ri',cS Pluglng cncl fuc;t'ie6 to
Jerc^pp"'
fror., orlt'r
.oeh
fl@
Si(os
4erc
6hc'r5{'?PDf '
rrrrrre
I
Strc*S srd
-)
fn
tbi
and
to.t o{pn6.
Spring Inrgcrriorr
".
*Tr*;,Hi{,?j
L'
\reg.. q,t.l
i c)
y166r;
(FrrenFrl sn tog
eFu-rs Lo;rb gpytng{6hr*s ood Sfrfiogoppr,s .rtside ard ere!-uj< crfr lbe
"
8Om ovM
6r'1115
6piog
-+
-i
StYars
->
o{?n ;S
Jh plt{gir) rel1.rw
-)
apflh
yesides
cn f('o
slto to
d P.,.
ccnrfigr.re
Aaic,n&wrcr yecltnizei
.
tlt rnar.rcrr i b ts
'frtvs 1:1666
trr)ooppq'
<:
"tf JVvrS
SalTr
cY
di?Pete'r-t co-Prt't'
,StYL(S
a
1'
Spr;nq irultgr<r$f0
arrd
Spriog
d; P ft-'re
ir,
c,nd
SFtutS ConAgurol-icr{)
cru $e plu$ins
r\us P)ugin i5
in
Aettcm
srn
&
scqrPltcd b5
c'onff6uwd
i+
\&rd -crrr
rs
k.x .
Cor,&6uianan $te
:r,tet
insra"ttrHo-n
deployccn'e'r-r r-(
-stz'-tc+
crn
Atri on'?"v Et
'
1rrE
&5 .gting
-)
IrL
Confi6ctY6$on f'te.ro"',e
rh.is pmcsss
o1-1 5f1e
!er.r6
Ccn) A.,t'&rutttlqicalnarne
b freirstc/n]i.JtJ
In
ep)46
iro
fl-e acnvcred
"o'9
'
fio3
spr;e>gPmrt'r:zntr '
-ir)
zsei-
zl0r,g-in
ctasoNar'' e --
- ttDrx-,ft$
Pltr3Inu 7
tr.sP . cuclo' srldts' Gt'tc^'Lt'ad*
"
"
\Jcoue -- / r,rre-rxr/
ptDfrrrg
=-
c*r
tG.,BX
locclHoo'
nw^rJ
r-ngcPr ' xmt/f ta16'rog
e,tJ&Se'xn'/Y
>
-'hr.e
.,8cP61,xml
tbe acl.',nra4 *pr;"g canl-cilrx,r tares
-n In
&tttopme"r tt'e
'
ro,cge.[m\ PiPs ca
St-&}6
ft-xc$ff*;.
6P ft*$&^"'
B'rre$od5
tbe
cou
Ciiealcide aod shrLrd
io
\J
Sp"ng Ogrn.
fxarrpre ;
""
"s*fJult-Jfj8
lw @tqar.1
o@
\J
b'raory coi.doto
Corrhol)
e'a
i
.
-.-..
Cc-r,,rr.r taracnl
xrri
f''t.
szw iCl-.
W.r,to
$e
prDgrorre
u)
d;cqtowl
deflcgeea 5fiots
@ bdrdse A?
Loacl
oo
6ran'P
6pn
Ser
nt
6pl icorlic'n
vtet
Ccrntnnc/
dl-n
lnX
jn Lcrlgerv<t o'r
the
dealneenet't
this pt'{in
fta6Servt* aaivales Ca,tt^tLca$|,3h'
Awlicc}lerD Sewt't
Krnl
t'rcng ZA*tonftwt.rl-{ticalnah -7 -'krvte't'
&
'
o5j
opbaff6 '
os
$y"ngGnBg,tanon P;rr, _
' -.
endLr,Je{ lc'r'toO
@&@
.-
3rtof5 ccn?;quvot1c"1
it&ps and fuKe6 the rEuest an<l useg
ctcrsS **'! c''- re7orcd to
fip;rcrn
anJ
gnt,;es
to decjde Flrmbean .
ftre
Acn..n5e',vrf
PYDceg5
the rellrrt
clc'rs o\ent
to
F-"-Beon
dt"
+"t
prxkS rhc B"s'rrd
@ A.g^&*rt
p6Sonctcr-rs '
of
rn<rbod
ctavj ohj(
O A.r,o"fuvre. cefls a'aaurct'-'-'-)
tu
"J
Bth ft-ngBcan
*A fl* %-@
oP
ff'5Beon
@ oer*tG,-,-,-) rrrh6d oug Bu,sthe$rrncr{roc{
m r.sLttf l']a6ckeP *t, rtour in refest a4w;e h rrt've i& viriote
'
1h.,5 fxcck(-r-r-'-)
-O rnb
'@
,tethocl s'-eboc'r
Qx-c-otlti,-,-t-),rerhod
rnoncLBcS
'rt}.-'rhg 4te
At"s69'ntt-r
@"rmle
pga"F*
as
oPPn'
j
(Drrr''
1o16' 6pAn3
-) Ttrre q tzoo opprDac-hea
6r*rs
&nlap
&trtop
Jo
tc-hea +o
srw"' d
: - o^,^".
oi5 coitrr 6e
^
Atoate
'-'")
6p''rng
loo 3nr'-t5 Actton cklss Gs
A0prDaab l) Bg rrr')c"'U
."
,
A
,_,U*,'., Drsro.Lftrr o,i+fsrt t ;: )
r,#Ti*u["tj*T-.*,"
sfr".r'
Nwn
5h11t5
AleHc/n
cl&s3
& Kndg
cnd
cre
a^ F
frr-
Xt" 3'Prr'*
rh.,s SP"nXc0nt''ir'ad
-)
Sp$ng Gntairra -
on dllmxd
gte+<'t
6p sr$'4n
{hs
ctass
f.)
ft'o@s
,,+
grrng c+i
OCt VOIC/
Sil,an6k^
'
Irle
3gnn6Conf"no'
taN ati.d d
Ccn be usel
drflry.-.*
f:re)
to 0& acrelg J6
in 6rtrr5
* :* p**@'rtu*
spicfS
Chtt\n6
iqnoves
mulHPie
ocrivzrli
ng
Sp't
in
&-tc!ine,l
e151 ft-nr.o
public c losS
A+ionk"tood
ti.* c;t
//
Ne,uAPPuorto"G"*tx
ll
gq
acrJb
rnoderinKr
ctc'a a4
Lcacle,.ipbr4i n
gqfJn'oAPrticaHonG'*e*tC) '
to S6ng Bean
bobu
c1'"ou*o4*6'3"t
=
"1,
t-
'
(-, -, ^, -)
execue
ep''r"g
ftcresS lo
q-'"ol<)X
exEods Ac}ione"frt ,t
(rhis inri.acd,B
lestAcrtc'n
f
Flblic
S allroagQl ;-
-)
crcts
ctcL%
(nftrlerlnrcr
d'j
/ rnf
ctx'5etBeot'
I'
b""t;d
C-)
13
o{ftrDai}t (| krscl
afoire
and
tha
b,sA
dtamm
@R" rn. af""
t5
c{p1:n \LW .{,Pr, @ Poteoo ) -++
toirh
Rt
I"x
6Fng
ApLr-lo0m"t rut
a^eP.n* arymoa}c:
rc0cn pa$eoo'S
IfroOcf,
6f'dz4s
&
E-6c,-lg
@ n@ 4
UUsC$st(Jns
{,q"t g
c{ph
itre muo"ricd
&a
{etrcLtd cloCl'mr^rz+'tu-
'
:-
c-lc{g in stzttroSGnJ3u*H^'
Sp,tn[*.,,n
tce cbn6gurad Srrugfuricocl&rs
e'}a'6' ofuj<ct fo Sh'uis
pr6de1 lrolpv'
-> l*re
ftte. sor{.ot L&
Aqi<m
ctcrss
fb
os
can
iqenr
Cb'l-L
rhe
{,;ri5{}earr
111a
EL|'sincl5 rnca{rods
#n o",g'n^ Sr'"'rsA'cno'
P*rn A,.rron9wrtr oyrJ J6 pas6e reqAestio
itrf \$ Cc,nfrgured in 565 Con65'urc'rrc' f;'tt '
Sprn3
pcnpre
.-
rn
*.'
vecdt<
cr)l$irrat 'shctts
th(
wq1-ttKl
&f:o'c'42-6
Derlarr^g'4.+rcrrPirxs dc.qs
4a
!7
th)s
:
-+
'5ld<r/-o
P-xB >
clt{
dard
Aat$<tl>
lbeGr'6>
'
-"'uu(*i^"
'
ru"*t-;*:*;ffi':-t:ffi'
zl}roo>
.^ -."
n**
*"r'fsacn
tl7
-,--.-'tlode\flnPI
,Zbean ;d =' dr, c)(:.s>--
'
tltF-
L-sP;ngBeon
$c
Gtfb;<"a
fJLrb)ic clcrss
{
llodelforcr
frlblic void
bohj
exreod
Aedon
j // Boo P'+dg
sefl3.A;
rtnl'Ixb,j --
obaa grrnru'o :-
ro }od sP'tng
kah
cLats obi
Wi
rrblic A*it,F-.-'a
\v?
..'
.'
-l
d)
crqrs o$et
to
fhe dtptgrrr"+
opprotuh
sPnog}ea'n
cld'6 obic4
'
':
Jnlr#..,len
giws krtor pcoft'nonce ln s*rrl5
-*"*'*j@
tu\
(-'-'
dtrrtng
e'neurc
no@
bored
8ffoo,.,77 y6+f
ofr
tfie
eirbeJr
|.*t,,'tJlt-
ibi'04/5 5riltB*
a'rbctpptl'
c[Pn fu<r"prtrnr
std-tfs trrlrh sPnnt
retl<'r
erpno:
'
v6vc?
--,
tpr,,t
<p'nq,h,*-arc
CScrs
&zrcgrarton
Aad- cr]s6
i rnpleyn
e-rrt-jn9
Ws9r, @l+/.t!fx,"
&,**
C&rnt'dl,r
tal.^)
er@ft(-'-,-' -)
{ngr1, jsp(firrnpagr
.E
tyr,tylt'.
E]
R10if6 e '
trYi.l4
\\-./'
lnti4,l
HfiP
atilr----)
-==----l
/
\
nb--5r|-dr'Nl
t aa- Qd
'rDO
*r!:,
Bxs
\-,
->
ctflt-top
the
Irr
ct^r
*'e
inrt'acHn6
ab*t_ d..afa",
tal{
iN
B.tsinerr
ttns
sprmgJEE.,
--)
rrrdut4 tb
,{,llan;s llftpbvdb#S,.-o{rpn.to}rtch
iS
Httplnuo\.cr
Ctle.il-app4
t0 ;eAt+**
H-fltLoi.n&mra aryn,
UJOaa{)pnS dr11
Lqt.,r
anL punr<tnta
fu,re (1 a"rts
6afu,Aa.r+n3
IrSr k
Alp\coA^,
iyLr(J,rlt 'reee.L -
us;ng
l"lgEcrlpsE 19E
ftojea Name
urA'xrnl f;te
ee'n''rer io
6|A-S'.- GT ftgcr'e p;sprr'har
.,
.-
Teft"r
trble io
ta;rle
llB-Srcrzlent
(sno
Of6cl
-'- Pa'rfc'/ o
og +'do ctrl
kcX
tota{
&nme 1a<|r'r>t>o) ,,
'
(t':) ,result
Yarc']-r'1a(5))
oom Klslrrrive
-------+ Fed
!
hJlndoc,r
art d
DgSlto'
- 393-
l-r'"r
oeb'rrrr\ oP f'5ero: @
erc.lf
F;nis b '
' Lulgiglry l
---'?
tlJk
]DE
00
Erolar<I
trut'ltc'r
---l
--'
v iqfir cUctt
.J.-
Dri\tt('tcrnlc'Fe
Driw{ Ncim
,.
er"r )
,6
tr*"@r"t^rmtt:
Gnr-rdf'n LrQL" Frt'-'u---------__-n"
'-
tllcrnarrr
Frssrrxna',
-L
c,ddt&r
Oraoe (rr'in
Lgraoe Ll
ta"l1-t!
t*".-f
L!r"-J
s \ardb.f,J4
*;-:^ffi::'T,--5",
'-''
pEntote
00d.,\'c,i
)+ibars-Fe Ar'notc*lon
,-lr.5-]
-,${'Tetpr^rn
piodr.,o
Hbe,rn4'}-r ",'pLtutt(
rrlKu
f]
on
e^,.ec.rc
QI+1wr'IL
3>
UcrL-----tM^1
fu+Pd*
-....-)N6c #
-----
&srnFar,'1 ctrus?---FBh
l'l8- st.'denr
G'
Hitr,'v.t< Qe't'rrittrrginecrinS
Er P/('rd
P(e DB
-=
tre -------- -"{l.)5rtu
prn
ot'tmpxs
-)
DB
Btotux'J'--j
*n+-_---e^ftS'
Cs're*a' *ol-':'*t
--4
-+
a-
,Kivrtsc{
kdle
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 '
Dturiipe :OS'^]'J'6DM
[3upda*e l1ilxztvLb< ccm(15utav6,
-l
JDG\tne{a}<N j l]"C}t w.'A4f ------_:)
-,
+
HiUerrrrre
lgpeS
@
"
1 N(*L
-,
.g5-sruden* ---------) TDcnenc{alrri I',rts t-lc".il
@ c*..t
?6f,6
z>
D0
--_+p'd*',
s-{-gi-
tu
#-ta
rfts.4+
.rr
"--.!rv.ire,naLilih?{-
oiSl-uteocrncnPDjats---------'F]U|=ttlxt--JA.ddsfd%cc'PcJilitx{--.----)@<r'"onr.5..-J
\r'
tr)i5c ubGric{'
q1-9l'!9
gll4'
'
----J^/(xl*
*)et cos, p:1l.,ltt14sjry'qp9c'
-----)
*----- D v*ne
pop
$tJ5P6fiecrury Beao
814'S
Bdtd.^r
id
ses
d;sR.lzhr.
--)
---------n
Poct
p6ro
5v
C-
rYLo
----)
T-nrcr
\+bitaJeru DftP
ftrce
spnn5lBeona
:I
.jar:<
cl4t3
clois
;- Add gpvtnqlr4erparfl
Srcp--rffi
"E;;:Y
---=(u(xE
l*|tr.
Hb6rud6* 'ic!u6\
p'u'@:&ilIlilil
- grutsf - ;rrl
t"ooer.
ro
the
PrRJelt '
IrWr(-aCe Aodel i
qfi*r<*{
$nng
Clrbu c
ft^ttlc
k**
m",itt
(s-ng mt'e, in* mr /irrr
ltfta,'z
sr
----'
oe-tn
--).lars
; LlloderBean
im)te:t'tzttt]o !nod"*
nrp
c'r^{ad.6 lnoule{
HbStr,de'-,rOno dc'o
"
dt.'o)
tHS.dao -- dao ;
O*n,
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.
69'"'e' in+
m'')t'f
*-, )d
', f
mil
P+,"1
alP [ovg
eas )
*g,="ktlt";
else
rS="PGSS";
.tc^a
f/insu,r
hdn**,rr
bb
usry
DAactaj3
5t" serNamefnor"e).
sr.seilTtor (hw):
(Cror*t.;-5;.
St' serl?clrr+ (r.s )i
St"sahuS
dao-satr ( stJ'
ttltrYn
re' i
Sllnena
d;s6't<x" -. grn/tr}'xm
in
--'/
4rraoin6 ,acldsHcnat
*,e
Cbnftgu'e
/*do
]"'
kans in *-1 a"66lr*r ^
-.
4Vt'o>
'.,,
/&an
id ="'Wg'uA4x*A*o''
-zl&on>
Ll&an>
zbean
lAme
-'
Llots="ovg'3;niqParncrra"t' "tLLlo'8'd
rrr4ernS
zQnP6>
z(rr,r1
z-lpnrzb >
zlyxaT*g >
zlbean
zlwn37
'
l)tpTttow&n'iufu
i6'="5url
2g*v\
'-^-L1^, 't"rPoinvoYr,r
thtS'=" CJlA"se' *n'oan5'l'dtpinv
ke6="m;.clo'
>
">
lser^.,;celP^O'
w"tl*,L\w 'St4tU'l-U'aur4n
sooe$r l'lo"rtorfu+p;T
CcnA
6tcP
Ae
J-'
Pi6nt clrct' on frrDirt
-S ;-
Pun
PYDier-t-
,-
,t.
^
) Ptiocts -------tnUE4Jp'e(cr'ticcAOpl)cafJ
-------3"<are
."
e.-1oY
Chanqer'-
Add
Ctsre a'.-
fl"m.6-home1
IP
rulrr,';t.Y-A!9
CnsV;ui* qrobtem i6 "rc,.i(ea
c? rhe irrqle*- r<el?da
Frh
O rcr'ow ll'bersffe, q'iogllblzd\ag {o-fP"tttd
.'P ri( fI'"P
inra the libravlcl
b) ddd s1n og, ltU"n"re rebred jav Gter
Clnogear
Spno$
Ctrnrnorrd
Jar R+uS
-1{5e,.,crr}e
hlbcrnat-r
'ia'{
hibonnrc 3.Jan
stP+,i-a?t -l'e'
Imn-r'r' jar
i- l. 6,{ .,id,,l
-fha Aeflute g 5ar $ t! (jovossi
s t {#{o. &,A icd
0':loerrerlt-.lRa- 1'o-af -1'o o ?rr'o-U6al
f,itng jars
tOgSlng
iat
CCgmrr$nS-Cll,ta$o'n
6fr'\n6- Webm\,c'icl'l
-?'
\,
I'iOtY
3rc,t5 *Ot'',
orP-r:Fta
c.tule
rrr ocr
uJ-b
------t
p"qPa h"';o
nerD
d, Wiei'
------ ;*
svt'3tt
-'-t
G
4
pexv -----=
nane
t-o
Strr-*aApP
'--)
prderr\larrr :
-1--"''"Foisl't
It'e {marU'
(tsvflad>'s
C..,c'
Eetol lc
\<
AoP
Wdd -=-
Fte:
fl ierll.X r0 I
-:Erde":
Tl!t::*l-.,
O(
fuea
E',,,* o+on
l-tut"tat'
'-Ioi"n'
gc-+Neur
pdcic
-'-1Sn*cr?ata----------+
iru{pa(e
t6e
%.ffi*ffi-ng
1
-.
\--,
t.tc.me:
fcl,..a
-l
t
ncrme,
BU'rl,
\-'
rnrr;ru-r')-
'-'
---------r
inr rnrlin't
;'
--J CIASS -----r Narn(: Ct iaru Eean
frrblic CIASS CtienlBdon4 irqlerrfr*-S cticru- {
lfc--',
ner-D
trrr.ls h
Fodd brqj;
Vrbti. void se*[o\i (xoa"r a"oj
fhis'botri =bobi )
)I
Ft#!
&
in
-L"**,
ctienl'x.^\
lbeor,
id --
iro"
class
R"a6E ro"dBe4rr
1-l'tol"vorec
t+p;ov olen ' ',"
or$' sP ' rrff.oh .,3 ' l-'
'
"
/>
.
ce'F*crFace
'
='serv;
"
'
>o>o/ )149-*rvfrn/o'J'ao/:
"r.,r'ne
bttp:/raorr''os+1
ttclt'teDeme = s.*;ttU't'
/-l,(oPea\
zetw\
vatue -* t'lc'del
Ll&ao>
zvdo id= cb
ctdss
L,[l|oPe4rX 1)orre =-
='c'i@B&o-
"
bohj
$t#i-
l, I z
-=
llb@o>
>
cas|=- lolrrrftcnoo
.. .b I
rff = cb />
4@an>
A,lbxai5 2
Lrc?-e'.' add
Vgw ct't'on
--a
Srrarb Cc'pa")tihYs
to
rhe
rP-r-o clcrvtas
='ou:-
Wje'k
Md grrclfs Copalailitie-l
***
WAe Wud,X<^
--i
-;gqierclrrt,
F
-ltofcrnrr
Fz,rrrr,
@
Darn
y)3
n.rf*{jse--a
fgexf
"
^:"
-T-
-----
t.:
---+strurs
------lN1meLjq1
)F'b-IgPei
\-odA
Qswuls l-3
--------, ftn;.l.
>
f- -----n
$r.'rlrxl1.s
&p<*F"n
l]
---) kxeJ
desc'rrerr s6sched
'
a/ d
0)
ner*
Tioisl,
---
-----.2c,tor,
4r,roorn3 mod.Aco$ons
sltp-il,.'-
Do
--
patt I i7i"r.u..itp-l
-l
#-,
fre,
-_) --J
trc,E4A.lt;l
9.
-----rnexb -'---__,____5
-rrr!p;o3
/aUon -rrt,+nir,g
7\ac*ic|'\yrh
ft,.,,astarr----------:
add.----HIi:Tff,
,b
C".?',Xur.nU -fl1,.
9nar5
fum" <"*-
dn[
", *3 )
>
lorrr.o^ ynr.t=" latll'6' BdAe='613'sP'c'x5'sr^rure ' D-f13"*fryAttl
z-ftx,ttat
narr = scrc.er.5
,,
zV,cnan>
atcrhoq - .r,4n'. DgS
" r>
rhe
&S
pla6So
l-,ru8rr)
ConAScore Gn*c"tLmde'r
'
' F 1, --
shocon
zlPlufl-i,
l'=
..-
Lr_Loco
'
AI1arcano,
Bcsocr:rci
l>
zplcrg*io crorsNo-u
rX
1rcstrt 'iue"
'^P"-'L'?
r'r'te- l(t )
>
;e fl<fion c'@vJ
I[-o ^...-[4ro,,,jaro
'-
r
e/rcnds Ad*
Pstlic clcrss I"P*tNrl'^
llJor-*-rt"'""
Clienj mo)
Qu',)tic
vo;d ser|1"(6;ryg
60 \c
Jt
'lt
J.
Pbuc
ftl^F^-'"i
o<etulr
C '-'- ' - )
a
qv
(,-
).1 :'
r{eear.-1'':vfn(1,/
LIH*'""
.''t ,
i{:r. ge+l
wtf, =
t'J';,'-:
int
\r*
btf
wtz =
flB
Islqu
' (atK
= J,uk1b(' p"rxctxt
tlta1,d g.rne-rhod o? tr;cur.r U'ac.'t
t
t/
yrscr.tt
(r"^< tttrrm>,m3
-o.Conr&".rbd
J
\
)'
ll!"q',
t^ttt"
ib rlf-ert o,r+nAl*e
"ftAfr-sl' 8e+Att,uc,re7'msS",vslttt)
\ll-.wt"4
J Xuou
:-,
i'
:'
Q.c.
ro
r/{c.bmor
lown
&
}ne
P'"jtt}'
?in.* u:
4at ----.rxa"-"tf,spP
Qes.u is = tt.=,ealrtst 'gctfi++sat:< Cq
anr ilexoor
.-'
tbe k^r't
Ok
*_____--,
avn
;5
olso
inrctn"tlnS
'na4e'
\.--
host '-rrl>a
Sv'tLtskpp I
tlrx*
-1or,,a+6'
P+"u,t '
") 'l'>
tavt-*Lre
t r- ^-!''!
r^
tzrr"?at *ttuv't and atso
wr{or
prr,3ej}
iet
or'(p-Ei Dqlo6ee fiss
-...-,--
\.7
Qescrrr.jsp
t"n't jsf
'
L\'
4..-
6.:-
Nbor
prcgvcLmiog
mul nnicriat
Languog.S
lcrtsic
d0pllcorioog.
aod direcl
PccitrHe$ tude!R)bI
k}m\ogi6 r Flamernct6L6'
c'recr'ng
..
->
SoPhoare feahnotgg
i6 q
6lLD
gdQicc'lfan
to &r"tlop *ft<'*r<,s
c;irt be uJed.
Et
bo'l%
tolute &xloping
FIB
and ele"
tt,s
sttos
er. " . .
sfi"ogta,'rn6
hg"'r*
'
ohxh povide
$lcp rpl"rnlqre's
othcr
gdd\ioe'l
Ab6rA.*lcrr
rra- *
$trlrrS
tnlcironcb
4/9/2013 5:01 Pn
<Vo@
-taglib
<html>
3
4
<head></head>
-13
-trTiJ
Ed ru t
'r,
</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>
Ltttrtws qt,'es u!e' na,lre Prb6 vo,l1,e StarlJE obj
21 <lbody>
22 4hlml>
a. -r slnrf5 ?"
24 <web-app>
25 <filter>
<filter-name>struts2</filter-name>
26
?! </filteP
.<filter-class>org apache.struts2.dispatcher.ng.filter.strutsPrepareAndExecuteFilter</filler-class>
28
29 <filter-mapping>
<filter-name->struts2.tritter-name'f src*s a a.?ptted $rro, 66, ff6,.r6j 6q 6.k]t
3G
<url-paftem>f</url-pattern> | ."_ .,
31
dta <ls
</filter-mappinfr-
C-rnw,r.
i"':"t un *d^LYdln'aFe
17
33 <welmme-file-lisF
frvrcrFGer+ 1,..1
.":H"l'g#leg;1'.Tilffi+'fu[PeffiC"i.9"Li?1"?flTji':?i"-'il
ii54 O IL</action>
55 </package>
56 </struts>
- --*-----------apptication6on1."1
!1
58 <beans
xmlns="ltto,ttt r*.sori"qtr"r
*1--C$r11-Q1$1J3{A
xmtns:xsr=htto://www.w3.orq/200ir(MlSchemainstance,.
?y
6l xsi:schemaLo""tion="h.p,l@
62 htto;//www.sorinoframffi
f',
"
sP*
in
spr{s
?;an
60
hdp/wwrryspmgframewori;rclsci;;/coiGi
99
64 http://www.sorinoframework.orqEitternay'coniexviorino-context-2.5.xsd,,,
65
66
67
bd
<!--Configuringdatasource-->
<bean idJ'ds" crass="org.springframework.jdbc.datasource.DriverManagerDatasource,,>
<property name="usemame,, value=',scott',/>
Page
h,ar,t
means
of3
thar
l*u
tqw bt
Its Leanrd
Srrurs
ir
spazi
ticl
c.s
spi
clo*'-ta"'ra-
41912013 5:02.PM
69 <propertyname="password.value="tige/'/>
'/>
70 <property name="url" value="idbc:oracle:thin:
71 <property name="drivelassName" value="oraclejdbc.driver.OracleDrivei'/>
13 :'3XT;**oonent-s*rn base-packase="gl'> J-F..q rrzer'ilrr" r'd &dh s
74
</beans>
76
77
78
79
80
gl
package p1;
imporl javax.annolation.Resource:
import org.springftamework.stereotype.Component;
75
----------------RegisterActoni"u"--Gtnrf:l-&.troa
l"r
@component("regAction")
public class RegisterAction
cl&ss
Coo4nu'rzd
{ 1--r
' in
J
Pt w':k,'ae
rrc $e sft% 8a)
at
SpB%Beah
96
this.username = username;
e8]
99
100
101
1O2
retum password;
103
public void setPassword(String password) {
104
this.password = password;
105
106
107
108
]!i
111
112
113
11
4 )------------------------DBstore.java
115
1'16
package p1;
F tnS
-'t
oea\cxal.a ol6'mer$"ol
importjavax.sql.*;
import java.sql.*;
imporl org.springframework.beans.factory.annotation.Autowired;
import org.springframework.slereotype.Component;
id
128
12g
130
131
132
133
con;
@Autowired -lded
.s
DataSource ds: --r
dt
---E-0.-.,toa
try
con=ds.getconnection0;
Io tlis
...
rtr.,,.i\ a'-'*ot"t
braSo'xe ohred r, ds r,"op,,-J
134
135
136
{oq
a4ptualoo
hi.*.a
rruls
--------DBstrorer,npr.;"u"-frp,-;'g8e'..l)sr"l'3
125
126
127
Eare
package p1;
public interface DBStore{
public void storeUser(String uname,string Fiassword);
'117
1i3 ]
120
121
122
123
124
(fub+Arlo'
ax Gn(lg<re
Sirn a A-.tto,'' ctar,r as tf',ri
ta*sa
Adton c/&U
Arrr'cm
cl 0t5. 8)
rta*
B*"
cl..r|
}s
41912013 5:O2
l?!
138
139
'1.7O
141
|j?
1.4.3.
144
175
146
147
14a
14.9
li:
150
rsl
lsl
if(count!=0)
--
Deplogeren+
-d''
System.out.prinflnc,successful,,);
else
System.out.printtn("Not
Successfut',);
con.closeQ;
)
citchlException
catch(Exceprion
ey
e)
i -":;;"^^"
e.printstackTrace6;
---"'
ti2
r53 ] )
aM/&<Lre
"
rWeO -r^F
t
! cldsses
t<D
L
rci'ni'i5P
)5nar5 )'Ynl
fl_
fLuu
J
I
4s,.n.ss.ip
"."":":::
uq' L-------+
Pr
f-,i1*.2o,
[*;ru.,u,
^
I l-> x''ll
l--+Re6\E'.tr'*'L
l--*-*'*-t
|-$::lT}z"
Fdd''
Lo66,."r,-c**r.,,-, 1]"X.j#_1L
LyP6rar,...
"'
otrett'y
Shafs?.sprtoq Ai-ro
/d".cio;;b;
//don;io-;;b;'-:"'
r54 )
i
e-tr'.-t34{'Ja'l r oY3'sP'coYdrxt-3'l't-PELE,SElart3l
;;
SB username varchar2(10), &
org.Ee.beaos* *"6rJZ+*p**AU
password varchar2(1o)
L|;*a.g=g=te'd
t9
--'-60 .);
61 ',t
iar B res in L,gB.-roF \ lib &lde{
155
56
PM
userdetails
j1r Brcs
43m - 3.6
Asm
-GbaooS'3'a
AStn _ bye e _
A.z
&rmmcm6- P;reudoq d
c.,rhnrh S
- l':
-i0 -a'D"t
eolta*S
-e3lq lg",',
Java55:5r - 3')I O.CDA
6lf(-l+6
l'5
srr.*a a sl-
Pott' otc'cJt
SFInJ -Pltrg;O-2
)'C
? p-- tn*?
3 slq)
J
NnutY- C.ne- ,. * t
atg'sP. astn -s,1"1, PEI-EAsE
be4ns-3.t
t."
"
" 'iasc-3ll'
2'E
-->
c..rt
e
Sh(JJs
-73'+ \
i*trg1"-1.t5
ognr-Eo.9
--
?tu
Pram sr',inA
---.-
P*rrn,"v
o,jducl+
g1a!3Qdtb
CBnrfruS-taofl7-3.1
ccnnmons-togdin
in
Porn Sp;n5a't
&
., v hJdD -3.1'l r n
r r- qa11-!.5sr11o- - 3't l" "
n
" . ut5 .J |ru-f6 -S'l l ,
Page 3 of 3
Anoo
slLd
l?EtErsE ja{
'J
Jn ttrcrrs 8.r
..---
.J
NO
->
'+
Brm beons
6ftJt6
CcmB
6t r
..+ &'ntrollel i5
.--u'
'-J
Seni
E.lF
15
t(t
6trurs ?.o.A
gof,ate
-----> 6nt'tg
-..
6frui5 z'7'A
'A """-'1
Ar'd
xecure F t
- -,
i
-,
3t
p. gNes
,-^rs
senJ
rer
h.d u
-in
Jsp tu3
rcr
- lver6lon? '<i4{
:H::.::l]r';.*
ia
"
f stwa't<'X5
n3 on '(q/J"'Y i$g*
EveotHand ti
'
8c'<u1&
conlcxi
'---,.
\--l
cdr;c)o ooirt
'j
., .
be
c(oivcr1a
.-
S,ervts
Gnrtrt
ohJ
ert is
h-ao.o
Bn
o,.t
crn-F&
rOf
orr,.,*#Ir
rd.cE,.zdJ
5v'a'6 2
u'rrb' 6o,iq5
ac#
,
\-''
S&
4l*"
ePting
-)
Conltx{tntor
curivc*{
an
bX
tuuo3
Prc-lnsronHoricm
**r.F"u
be insr-on'dkd'
'rg
lof o+
/rotz
,n;q dnplol*T*t#.-?j
crt ."
cts rhe
..--,,*C^rcrt.1yp1
LJ''n
can66ur*Li'Lr,"r,"
of
- spnn3
ohi)
P;
rbe
GfPllco}{do
coxtue
inialc.h
to s*oAo-"otta.3isn M"n)
as
d?Pn banet"c4
\--., O) pqrtogeerner*
; r.d!,nn k"* sl.,Yfr4
ei+rn
oP
&rrtetFtte'r
..i b) fo6t(nlra}l on
.,-,. -
colu
s Lisrcne'r
o+lrore
'j
.J Pn: oP gccuttoo rel cted lo
']1't
'
"tr'ra
'-J
c"o-rca / dest'og
W
t cdn}dlrua S
n '- "X ry
: ftno3beans
a-,.r^^r^pr,ns
ft,a. rn rlt,s procas oll the
r*en
$"nxrFrq
&$s
tre srr,rnits
$e *ayext
(u"-ul
co'figrotion
clcrs
ktlon
shrc'ts
l;
cta* ' (rot - tt
ereurc () rnerhod'
oP
Srrt'rrs
*+ron
(nP
lto)
this
Xlm
i)
eaecutt
6e
fxecu-x L
O Calls Sbr@
.
re-t
rrs
reruvns
get-6e rrs&rF
,))
&"u'.tF
bcicl'
trt*
e{erlrk t
''SuccEts
PaSe
pcrsses
to
tpr..its(-,
"
-) +
rrrefio<l
sl-nng to
3pln6
.rP
co{r'Dle
io
Atrlon
$^,..I-rrcr
(rtP ta)
rhe
ncc",sjfue'
dactS
sM"3
onA *^.iretF t te'v ccsel rl'i 6
lo
Module
-E
gry:4'l:
.gprir,X
->
Aop is no
orirh oop.
",-, .;
oop
|Laoguages' 4*'-*
-' io rbe rnerbodo loX 1 ro d{'Pl5
JITrr,.J'AoP
ore rhe add,tror,al
:._':;::.r""i::."
io rnat e u-t{ crpPn s mot
Jrran5ouicnr rmr'a^SerncrLt
6ecuri
trP
coe
Cod
rb" aPP\i<c''n6h5
c{piiep-'
eyvic5 rhorare
6
per Pear oo crcurafc
i
s'
cm
oLll 5i t<rofl
r3
oo
,.-- ,--rnciPle
Ptnc
(opprle s
A LrseY s\)
onc*-rhon:r
rhe afptlcarr oo &o."'
crr oo*do3
do e-rle'5rb; oX
Service Ctt,oot'r
.\
tdbc
.-n
s\vices on
foidd lct'D&Ye
.\
.olt)
+'e $*n
Et
\\;
ssmxrc>'roio1
con611olio$
ccnl
ic
ccie
laecorrrs
ServfceS
trnl
of
3peo-
\.t
KeEs setcp?ta{\X
rni dd le&r.Ye
6c
Agpucc'frccn e/{qrtcto )
6e
',r
Jb crre o?Pt;cdtl
dortlrn'f-e c4plicofiol
cvcdldtre
6ode
JBtsco'nreurrt"
Y.,o
"reusc&i I IFX
oppllcalt clo
n,t*
roic{d le
'
u'ot
d6)'
c,]e'.e
gerv lceS
oP llidJ )eor'te
rhe cmle
'
e 9:'6vi'e5 sep*'/<l"l
rnldolteor:aT
aoA
on
cocle
re
A?Pllcdr
AoP ourrrx us tr' to'i
Srn
xml Btes
^fl
- --'h.roo|l
alt'tscz';:ort
Servic4 ode coirl
mildlata've
nk
li
o'nd
Jo
oLl'coa
'
er,AnnotaFons.Dtreto{4jsttrerod,eo?mtddleeoo"refer'rlce-slera.'.egreusaj"le,
-=+Tocrnderatandrl-roeedo?sgdngAoPaodonderrdlr"eidingrl-rcl-'Perpc'genosl6eFolo?'
lrcnSoctlan
\-,a)
mlddtet66ft Sern@
<eculiS__
Ospe*s f
advicez
Cross
6t
rrinX
Corfe,(ng
iriot
hJ
adv ire
hlea!iD3
joinr pornl
fiargei beon
Prinrcc*
Ploxfl
Lan
Odviscir
f +<'Xcr ouj
/pnrd
ahj
Advl ( l^
Advlce 3
(Jo;or Point
fJ
asfu
ioi.riPoi
'- rbiS$e
:-
\i
cr,k
SeYViCeS
Odvlce
tpecj
Fc&fiol c&niaini
TUIeJ c.nc
AcdokltnS
.(rrd.]1c&\.
jrrir*Poinr;-
n3
possi{ol
po6i
ae ohido
zhe
4 osfr*
can b awfiel
dong inooJ B si nus rnerhoJ cohsrc dd{';6el
\--)
'\--l
Et(l:
,* Loltn
\tcLluf d$(,r@"l
nd 4 t5'nrr-$od , B'mubod r*crvns q
and
ett
'
\-,
liotrs 4&i rcs cot$ io;nt r-lru's of
ewhl'thor
Lar1d
(u)
The xmr
-h.mrcficn
\J
,
'
b. methocr
adrrite cro \--l
Oekrce
odvtscn
is
'
poinlcu.t
Cqled
od^.,isgI :1o
gottr,i
"+p\':3
ad'isr +
,tutnfclrf
;-
gusiner! m&hod
3,i3..
ib coi\t be Jatceo \n
&.
conel.,,i.Bbe?-(,d.r
'n'unct v'utgrr'- '
rhe &rrr oP
i*"1*g:'ri.or^
cldui sc,Y
is ccued
'sbrett'
.,1n6'^
\'
"
,a---,-^ is
r.
:-
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
(va";^rt"to-).
tirger
beo
n/
ta$r Ohle* : -
'SpngBeo.n clc'ls
objel-t o.r
is c"ue
/ u.t6a oa:e.*
tcrrgetbean
r.,ilrl
cln
m r.lcllerylye Se{vlces
ie
- -)
\? --+ Bglnex
&tg*
rncrtro
d.s
\,.,
targer
rner{to{5 rnlled 6h
ohje* j us t
pp{t ohj&f
tbe
exeo're
(xetut<tha
Bctstr,e.rs rnet{r."I
'
lqlc
,1A.*"
.-,
Ca11ef, o".,
oP Qdv;ca5
t e^""t'{-)
.
b'rnerhp"l
tbe
4
o rug.rcadv;ce (Erec.-t-res or the @;niog
ex'e!"nfr')
6'r'Y.:food
er|F
ol-1he
@ ngo* Advrce(E,reclt}cs
AruunaAavice (Ereo-r-res
of bqiniq
*"
u'lngSprrngAoP,Ag?e*Jnotool5tDLcoloM@useSp;o3Col)91vg.fsu{,pUed
Y\; lclLe.oe.'e-
.'':1-U
). -.*.n
ext|cP' B'merood/
loe
ctr
and
a,?- b'rrrhod
ft
deve'lop Ure"rde$ned
rab '
rePt'r Fc'8eno's 1o4 ro
cldlices
P," rte a'Uo* + tUfsoe
tD
proced(ye
to
Arep}'.: Deve\op
1va
6KfokDe\cloPfuriogl.*crR.ce,spnogBec.n"-,,|'-,n&lsinesg''ffhodder-tanccHoa<>
defl'ni iiorr
6t
Bte
d) cPX Ptox;Ecr'5Bec'n
*;s
e'x'\'r"
Sr'r1@
'-
r>nt'gTrttro.,xket'o
lienl ftlprlaxr
Advice ctarl5
cpt'l-4;n1
6;ns
dv;sert
sg"r138eao
*
[ec''-'r'm'x ^
;';J;t"'g*Y
'
l?>tqBfar>
clars ohFcr4s
fipprica*onG''rc"t
l.,tDa6
obielf'
"
6F 03 Coatun641
&ohial
->
-+ cnLt! B. merbodg o^ pybxb oh)e'+
t dcnA
_ t^^o <bir]
-"
be
e^etuftd
@;u
a
Calted
&,s;ne.rs
6oerho{
&)e+
F*3
ruorEt
9:Lr.z{ pra,,.'y
sw;ce.s
->
Based on
?)
Advrpr
e1..s5
(Aaur."t).
,.-,,rvil
i5 glvm
rb l1a+ &trdo
cf
o*Ht;T"$"
yl;dllergye
.)otnt r,(J,*
Nvtces
@ith
decided allkr"tl&uaX
sC%81te
ce'rrddh' Businss merhd$
Adrlces
-g'n'rtrbcds,
Rge"PH"rhoa fu;*cut
benu
4*
odvlces urirl
\-'
!-
ffdvlsc.r
be
ltnFtcrl
crriih b'wgfu,ds
A&'';sar-s
e^wstlon
!66ed an \fdei
\--
\-.
'
El\
APPS
-5WtoX
-se51
//
l'lgAdvlre 'java(Before
irnfxr*
inpo{r
tof-"t
Org
. SP" c.oP
'
F
F-
Detr',o
'iavq (arog
Oe.r,oB.ar,
l''lX Adv;ce
nari.\-
rnrcr Fe're )
X\
'
',t
llreP,/']-ttao hPJ
@.t\!.'Os"l/l]
la.Hic vojd !e&'"(ile*oa
o(t 'Ohfo
,.i*:.,t;:". ff.*-
i:;l
6 o'n
,arN-*e
(merbocgetN^me[7*"t*ttt"*
llcr,aq;nx
B'-crhud a..1
(5nq)a'gsloJ
Gr,inq e,--
o!"
is sta*.d
{'illre
tP
tt
C))l
'trr'n
b.r'erhoc),
if-
ll""t*oa
3 lluo's
f/ Demo' Jd'(c^
fSr-"31"t*
pub\ic irLtel&ae
R'*
Demo
*'.u);
llu'
S61 clarK )
tfor**"'l.'.,". (sr'"3
ihrpltrn#rs ftrno
DetnoReavl
clc'\s
c
frr.di
{ 7,rn6ut,.no.r,* op- G rnerho4 \
)
*"nr"e*'e"C'^(l)'
'''
DdreL)Ji
r'lgtT" ''*.*"u,
'""on.t'l =:'"ub1t'';
*...,o"
Sr"n3 nam
oP B'rrrbod
"'-Fnaras;,'
3op("Derru&an: exat*ton Q &Allerrot) ----+ Nanc :
*tn
S.o.e(
Lt
tn tn " )
DmYPr
LkaoS>
ctas.s
l}tar, id='9''
L&cLt\
;d
c1os5
?'94J
,,1,.oo
id:
DernoBec'n
"
cfu '->
lz Lt''- P {)crars
Lt"-'
="flJA'luie" l2
z?m?ery
narne --
rel
ffe{?edMmi'
--2
zP*f\
Advice CFg
afu;nn*Nulscx
'aAv J>
'
J-.rsq1l-leuo
.-..{-
/7
4kot'>
Los
L{hnf(t ty
Dar',e
LtYbptrtX
Lwwry
rnme
grorSJ-rzruiaas
= tovgel"
'
"eF =
tlafug ="D"*o" /7
-f,-ry."a,
" db"
l-
T--tgy.^ote
nam =" ;nrocerr;rNa'e'f t
LLi6t >
z\tar/?
Allst >
6jera
ZlVnpttW.
Ll&an.
zlEzns"
//
CrienrAPP' -Pva
c"r
fitt-$1stem X*r ftlPticoH
G*t
">
Ctx =nero
r,'*afaca
adulce
--)
/i
g+ Pt^g oq;.*
Dmo
(D".0)
prox5ei =
... cm frror5
//can S'tenod"
' PFb")
ohl
t}i"") ;
*'' );
gnx3obj, oSfielro C
tu
l>.javac f ,jav a
/>iavo, Ctt<nrArp
- r^-.l,"q.ja{
"dkJ o
cdmnrns
/ >.i4, 6'tes in clard Errt ", 3p;n6
"iar '
'
Zhan
--
plcr-ce
S"-tng
rbe
Adv,so c(Z
"
ctass =
"
id ;"Odvr
L?ofrtctiftJ naroe
/W(r\
advi ce
--
0orr
--
'
t6f
''
adv
\&r)-rr e
fntttxn
Qt*9
llu*oaPoinra'-rAdv;stn
"t,
.*" l>
LlVa$>
&trpre
oP Arutna Advtce
Corle
publl 4
clcrss llgAdvrc"
nrt
t*pler;r.nh| flerba InrctceP
invopetnf*3##"Jl
obiear
Pbtrc
't
6'at'ers
envirbbnpnr- cF rr.,e
"'r+p4'
c
L
'-'-'-':'
ll
exentrcs
g' ner$ocl
af $t
ent
& r\e
ftr,
Avound A&lcc
excrwte cpPlicct$cD cr$ rhe
cokrr
*s1,ong
fir)ts
a'e $e
is
JP sPnng
fP
'
rrrf:oo
c*
a?pnO to oPPnCD
.
kb*+
ftr
llt lb )lt
?tteoo5
6h
sl'Y)og
ured 6nt5 io
is
gro;ect is
used anl;
k^r"d m
rrrcdrtes th,'f
model
Lald
cre (sad in t*
tlren
Sofr'r
f-it-ti-'
invia!,ccmt?Dllo{lntdfu^tr?^E',rn6we.brno./r-.1<'
Shru+s,ryrtng
sCn1 AoPr
a'EE)
!g9"
.&, 4t(\
3o p() con
-fu rrdFc
rod,c.le.
1qgt"6
opoltoo
'
'Tha'f
mtans cantt
ett"
llt...2os"a!,'t, $vs , wx'l setvr-< anL
uae
@-,
ace.q.
Mdriw
t^lrtie mesr afles nl6 +o Gasoie
fistt k
aoa rncss
'v'
mu'!'6ple''cssaxq
f,o'pL)
dpesnal atrlpa
s.o.p()
cA--?
v
Co.n$l
aod etc'
-'
oarrellej
@----r
irUcgd'
in%
Log+,1 4J-roor6
to
n
@-r lq+j
au.atstr
ct''' n
<
errc,l
t P*a
w*re;uin6 *e,'o'
+lrc-t lqmussc'ie, cokte
#"n"r rhe
lo6r'rssc1"r
'
Lru*i ,
b6'n3 Pn jouo
D
i 1'I
(v"Mn
\Ttndor : o4ruche
Version
OPan
f------.--"
I
c'n
$qrce tcot
j*P-?'.,
ia"frres
103+j -<vers;or'>
lo$4i
-<vers;on>
'dc{Y
'dc{Y
lructtog;c-hornt>\lvliAd]"oo\wise{"t'r-to'e\sa"''<^\rlu\Grsoreaop\
S," t
p*,t''s
lq+'i
oel
2it'oar
, ,,"\ loq4i-r.}riki
AW-ron\tiu\loga'i-r
4debQ3"lefl
use
{ogger .
amRrrrr.fion
t'
d.,ba3 ( r
d,n in
ErFe,rs/
,"si.,(-
deh1g8ioi stt's
'
,'
cn
"
:'obeQ 4s{kde imPoccnt
---,c{lelDeoleL.|tDFacedkr)r)imP('.4cntcncrrk[s&rmpieercJ.
-, -) i
on
Ell Gonecuoo co6 = Dc;vr-r Tla-rngc " ' 5"+Con''to+l C- '
tog'r'inFo(' Jdbc can ohj i5 coc'rrJ')'
->
[rs'
iP
oex
tD
tL) )
I
I
.J
etse
'
log3ar
cdccr
("Re'ctrtSt+
ou; rrrdl-
Do{
l
.- --) q6t
-
use
"erfo{" re,x-l
gs$
$"[
b\$w
to*z}) b\&w
cc'*a
.9o*ol
r cnx?t"))
or g"ocDn ExcaH'rts'
o(
Era+rt-l'
uLov-no@n
L^
,r,"
thar Dan4rc>
RctJx
tr3
t .......
:
"":
1 ct'rtlt 661.E&4tion
llv"'o"
-'\ //v'"n
sc)
e"c"gtlon
\en&ti"tx
lot!({'
erYo{
f m n-utc'n'')
exf'dt t^a''"t
rr
--'''i
e) l/
I
&lch lExcePticrrr
'
'
".t'*(Pn
Po"re"l):
L uornoto
'There
afe 3
O Lossn
o6;s
in lo$+j P?Dftt*ln3
ohi
funetda' ou;
@ l"^taq
ircrpcrnccLl
o'Ul
l*"neua7o
io'oct clc'tg '(iilu{oors to ortd
*
B*o
\t'3g11 ooctd*
snables
lqSi1J
g* [41 based rqsirs
-";::
ffi- u-*"*' ""e;',.'.r''j
::. ;d
*
te-me'oel)
\
.!:$trfjf1t3u "_--G#".-l*,t.cr.$
$s"'oh.l
------ "-ti)
\1"ne.,
to$er
"-*t**
Su*icTacol motrod
6'
DPe,'dfion6 '
ope'rofrorr
poi"rrng
TcsrArp
cloN-
7--lo6Xer.deh'6
lf'
.d"ki
("t rrrt" ) ;
(.l.,aroa.
;;
ft1at'dor obj
otr1ert
J"'-|,r.1
lo6tott"tr+(t*
A,," .*
FleAflroJd (to t'uwt4&'+ /
e;+*i"!1ff;trii
.*&*1t'i,&:ili",f"^t'l^^l
ar
Il4Amt^dl,tl
\nt
ou;,-
otloos to
*+
TJ- Can
E*h *.
!e
t0
,{sad t0
-Ihe aPia-Iable
-ll*'4*
&**
o-s
(rrxrv,n2l
me'{&f,e8'
lk [rlivc"i ]- +
clatscz o-v?
lo6 wreur'1es
'
\i
'
S"o,J-,'a'*
-,---/
P"t*'\-6*o
X-,1--"6o"t
rL
+NbrEi ._5
aL,e
f,e
and
etc"'
lo6n"lr*t re+te;w
lo6- )o*l
is
le.,xl
[og.neva3<a info
oe
uxltt
0e+
V= T^% '
ttcj-
urqs ou
rbe
+rgOes
4-
t-[
tt.o* lod
"*'-?t{ -
q{YlcercPcl c+P"@ctF v
'
Tron6aclion rrnfftge
roe
l+lo+luv
nt l-
]et'eotho! rheto
-+
T6e
or
- \._-
fJlocegs
nofv
og
oF
te k aAtp4
F)nCi o
lixe
-,
\*
rtis,
-----e
t'e
t^ti*',
drono
is r$e (s-ur"'$
to
exea,ile
hu'a
rl'*.
'
?.fdb.f lran
on ol
b7
r-rusr te
&ulorzd tU eoadlin
awlgioS
*"'urrr"6
b*i'maLatcJ,<
o:*
fl6mt ''s;'tr 4t y
G)Te.'"'\
uet'VT*'
,'^-n**'a
*;'"'y*k'
(e*lc<
'
;; ffi;'-x.ti# Y-;X:i-'l--*'."
,^''
l6e
\!:
f,h
'tHOcc.t Cale
F$lic void
kqln
bm, C)
Tronsacncn
CF/(aHcrn
l '" - '
quancrng""'
ofr{4tlc'r' 5 ' " " Comrnlt
fte
Transodtc'n
] car'rrlExcootlo'r e)
{
bllb'ruc
qJ
"fro"v'a
TEnso4rtc.') (prgerren+
t'st
.v
Jr<nsalri,q
ti;r)
do e*-4 th;o3
aw.
logcs
annrana6^bte
ie u-t'
-Lfinsaedoo ff'\il,aelln}^+
o-o,.* 4-
rc.,mc','.la
con
Sir3
\'
;nro
Jiansoq'ncm
'n
G'utce
'
@) &'ru<'rw''rya
a-
A :---) Atoroocirg
(, ----+ Gms;src.rX
L ----+ Solcrflcrrl
D
-+-[fu
-llre
__-___.'
pwes
alo,d
- :lj
Cr.srrc.q
Drlrrbili rg
Cornbtni',g fnu]ttplt
'Airrnoorg"
{ retr"a
Ev,^
$*fl]n
,.rlen k pt
.k,f'.kge
doia
no rule Vioufion
it a Y*'.'X
code' rhr"r ** olt I cou"e 'r
&Tram6c@tlon in fiere
;;;;s;
"
:-
t;yle u*:O;i#j},,
c't-il*
'l
c(
^Yt'
eod
a-{&'"
doJ^ u'ndaltorotnJ
"-t
-fhe Prex oP a6d;n5 lott
",ffi"+
-- J*roI*:
enab[n6 ' 165 Jt"Lanon
&rr{. to nonlp"la}e
ilc Lro
calltd
i<
^ fuhk'^t
tl@0lik)
S"iLU;ri,l:Tfc o.biritX c,(- b''i"41"6 DnBale slo L.r^to
pevarl^rs
h*Sh
anJ
Cunc-attTenl
$rnulhneou-l opam'l-ltrns
rrrde'n1 Et3
r.s
ths
D-.rabls
-[he Arfirc.rurf og
Tntsaon
(ibe Afpx.oHar
is
J'+7
rwrrsl skrlc
furw-'ptcA'is cotrd
&t'J^t'
on
Tlc'noBerur+
cro rohirb
S.flice
i.3
eno[ted
Tranrd4lto Hamn4
(Gdx! tnitft.ctlans to
r\tu{'\
r^-i r tr
4r.LrleturF,( lD
nnl,ark flrt TaqoaU
arcr*e
n".t'1av(S-)
QE
\--l
lr,.neout^I1^t'n"
\1*.c\
C*'i,a
Ccrrnmi$
o(
roU'bctclcs 6pplicol-lon
S.*
-1'Fx',sotttnal a4fn t
cm
d'e
CQrlhrnit
daru
in
gn8are slt'r
ofrz' a-llcotl
rlr"r
->
hsed
oo tbe pp.pf
art
involved ta forfu"'t
*r* ate
ruP.!
\,/arr'6rq5
o( lrc'ne<'an
ona'!
Trenc{m{nf6'
0 l-rcorT"*arla. frx)
11,.*3c*n+
Et
fra,xPor
-l-hc'rrso'uiolE1
flarraX o?.'..|oo
Hibarsx
,stn
ns,Ero le'hnoroiis
6oir)
aonrunts
fl'li;eb
"6' -
Y:Tvorosaortoos'
slus
of *t^e'k't'Jr
Y:U*"i*
D;<ru,rc;
A^
'
D,srru*ei fia^ceatranl
'
*lg
ef, Thnsocuanot
-|-)iprnohr Anuna+
d- 't* ['ft
(rx) l^Pr'^a'A"-'^)'
@ Dotar*.iT*s".ttco
-.-ftcorcraftovrs
cde
Oe
sl|@
*O aBtutr'"ul
lelo+l:'t:
crroroit) pt*t
gpt(2fiole
'I{6 {on dn
Disrrib.,recl
-Ihe DisrnbLradT)' trncroEd
Io pbaret,
Po- 'pBslto
Loill Seel' pr.rmis5lcrr =:
* Ia@
ccwr'';'1+(a
Tl
'oittbe
. ..n.*,on tbe Dsn*q+r.t
S
b*
oPto{
Ijn ghsea.,, iFotl Dbslcl]s
'rollbccck '
u'tlt be s'
fn
ottc'cdse $e o'*t'*'
the Tx,
@insel ) r
dlo} to! -r
./otacl.
&-
"r" 9
.13 u fo
(ptr.s"z)
Dishiurrtd
t".4
rf
-,,
0Ua-!al)
I(ortn;t-l
-an
)e5 u
tPhare!
iabxcomlt Tr')
rmrcr6ed
{-
,t- ^^.t,rr>.-\
1_l
cat
1"")
trboSg
eS Q can-)
?bsez')
lt"sasf"
rrudetS
TyAngc.clon HOde I
NeCEd
,.'\
rPc're
FairS
A,calrozht......-
3,rrygm<-
tr&ngfruion
The
tscaltse ,
flocei
6ri
crs
d;verr Cpanoo
Ftot
frar't3aora
ho,
n T;t 3(,
or't
.4
\.,
rolted,beq< iP cne o.
futrcadl
rnDd4
q
mo;n
cnte.1
.i4rYnet ti.xet
fran6 ECficln
Joornet
h-d4ets
bb"$ ogxaltdos
AYe
no+ at'Eila6t\,
(o\LI be
nt"
'
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
ftah'tattlo\
tur' s oirh rlesr<A
'rhat
d'PPn
q
6fco
to
hlhtn * oboL to&r plon is Siuen
ho+
jottt n eY fi c^L4tl aJr(
ofl'o^r
o,
l"l
fut one
ttc u,.rr.r1 X.uct, crrirl re fcmff'rrneJ e*nln Lt
1:cla*- kx4nX
jcrzr
nerJ
ar}\
-Ianraot{ d\ mAd
cr,uai tabte . b,ecarue in Nelrci
-Ihi_-ies^z fi't fwws.ot &':Pn
I
NeSRd
lx I
fub txl
frnin
taB,
&!blx
t.,or"
*b4e'l
,sfmrf '!"fx'd1'6 Fl&l1x
Irz..,notr,:atrl donor
s)a-t
lr,ibe
'ncqfiicxu
bwl''
s+P<T
a1
\esrcct
7:
tood4
{ n.f I
1;<-t
i41r
b<roHq
J
=
g.lb T'(
3
--r
troo cmrl 5
y{t
n"'o'*'
otlc"''5 io
Appl;
t'
-.
'
Sr-'t
'(;m
-on
^
rnrml 'S'rvicc
^ -,,,* b.-dd
'
Apr""h
-:::;::f;:,{ftj'Jil
.
lnatr(, a) *el n
- - loli&
pJ' 4 p-*trctre
rn5m* on Jrg
a-<-
'----rio.1c/ol'e -fiamarlron
-fiamsc.alq
d;fe P"ar oF
'-'*
CWU Co;rt
qc"%d'
O Ut g-."Ttt satronflcunnu
--r
J0 emble
b6te
ogrnb an idua 1t"t;tunce
O l+u'*.t"T*r, atttaoYbqa
---)'t0
ercble
-faT
"r ^
-To
t5*
ploa'kb'n"tt
--,
TD encDle
f,i
ngtnf
JDOP'^'ttnte
-U
Y'*lsxnce
Lo6\t
o" frrtn3
lrr6;c
S.,rrMa"t*
o?Pn t$ us'tfl
dnd erc.'-'
.,.
h.ik'c"r
|tk'*J.
c^Yl'rc1u
@ Jf^T**"crr
SCn0
no,.n
OPJ1
ohl
Jr
service-
-lio'nsoorro"llattt* oU b fr r b*e
o$'crr-
, ,9 f*
nf,"t
re9e,r
Dao
oao@
Trctosa4ff anTemd
oF
- '{trid
cltt
class grwides
oue'rcome
*,^: pr,utcm
rbe
, b,rmuoT
ln ep?
"n*
Jic,ftlee.iiE)
in
pvoyvayct]tl
"S*t
&\
a?pD
-nh
P.6*rxUf cTrt-
fuofl, exel{}e
Tn gqrcrnortc
cotrh
lZrua-.rl*l
-IX
nro Tionqolrl
in4cater
ary'ro eLL)
tte
B."tl".*
$,.'
ftclrPrr"ilx
ctrotbea
'Y\e
o4rae
baaruc
fu.-ol'.Ti
i-
t6tt'
tn6rtf
or:
tamqe""
rte*f<*satuo"'
Leg^,.te irr,nlep_r tle [r6"a.ar ft
Aeq,J bar"e
resourc tb
sa-aiilott
(c,r) vclrUacen4
rhr
'liavrsac-ttor).
r {ttt
-Jransc.rrloo
pnflrama}ic Jrqmnrflarr
fl
fie 1lcXcno's tt
U4
-.-a
br6<d
rnod.r.te
w*X
*r6.nt
drer.-'t g#ttv-
pr"ryrt*,.& .-
-tri
,-tr} ,nn-t
DedoxoHLr
-la'u'"u*t
,,m
lt4fl"l
ilu'rwwos B'*'l'dr
&nvzttn
s.*i,e
03r
;tselfQ e'r ner-fi *stis 3fuurrczl ia b'ni.tpd
cl;crf
ril
ro
Sl-d,rdttd/'1}
Tx'
, ; ;;;;
',,r-,
Itm,rr""e^ice rd'r
&src"t'rtrod
; ;t.;
,**'flh
**" l'd'+
*"*.h"
crnrare::6
)v''r8Lo
o"'.,ilfr*'u
6l
rr:edhsr
orr
\/
busloas vtrtad
'
6 n a#nu,'tcs
r) rqP:td
-ihe
r) wryArdneo
a) cqoo/rs (deh*lt)
a) Nor s4ur''tct
4 tP^a'ru1
()
rucuor
c09:-
rDKi
rE4dJYe
Jroneo4lo6Teraplore cE{sS
Ie?dYcd
.--
Qseb
Ji
Tx.
Dor nEiYd
-Tx
crierLt fuPPtrad
coitl
roh)e
ig
clicr*
be skJdt{d io tba
B'
oPPn
rrerhod
coirb
'
rg+rfYecl
bYnrt
.,
(EdYes nro:-
ifflPg$ue
s'methad
derlr+*/ clicQr catls
bro,t )
erieru A?P
s
L
,^*
[*"
---
l-STnr
nr'
ne.oT
(rrs")
()
3
I
oofr
S&?p(Xtg
i-
The garc
6* ,"ttt @)rb
brnrC)
CIiENT APP
NO
umr
y;3:^i:t&a
T,}
t7::-
/.'t
l
:--; J*""
()
_l
TTA
fu
oTx
tlryn
ru.rS 1pifi6(lt T{
ivverpeuh'w
coecrhex 61;g.1.
Nbf 9r00on<i
bYnr
clienlAPP
brnr(
ft".f"r,t:thrn
NOTX
TTA
t)
The otict'd-aPPn
N}(J
51 Crrf
rbe
0 'rntrh
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
u.sed Tx
{lE oePaut+ Tx arhdhrc
m0st
PoFratlS
iS
$r?P ctrr
rl
......--.
cl coirh T)
ttre
EFFecxof
lx a*trttrres :cLient'6
Beon
Trc.oscLfl cfi!
Tg
rDne
Qeqlrire d
5 -Traosacfi
Tl
Tl
Tz
Te
DTOC
Tt
|tcrndofor1
'-->
Jit**-Pt'gF*1&-
,retuns
fioxX oQllr
on
c-oh;th
Tr
6 eoobied
advas.t :
i5 li*e Pinr.'*
a'*&ttt
r\-=.
'--- a6'a?'{ronsorrlon ' ilcr eprur ' Nlo*}1tr"rt "roll- Afi
9'1k^^ aa"< '
4
ot lhtbned'o'rt.d
+ta+ol7-T).,,"sc'il1cn ar$tutt
be Cornrn''t
Ldll
crn
v-> rn OecloYc'fiue -Iirnsocfioo ma,,egtfi enj $g Trr'ngogl
rhe
orlcPr,coira
rhe salncr* rrradocl.
in
\5
rdsed
t,rhn no exc,crrron
Servlce
L-
fvonsrr*icro tdll
Pr, o ri
meErrtPd on
be
volled
b<'c-lr
,^.,.rTronseo-*ro.
l-bf,t l-ocoJTronse(}lort
on
Dectctratrw
ct{Pn
..- @ f- exam0tc
$e pc.Snoo )lo {ret
afrn9 c+
refd
nq
rr%^"ftJ
o'-
__-a
ftctcrolive
-Ix rtgmt
bg
us'nX
onmrcr'h'cns
il*.*, joto
i1&rodgecrD
a) odd
b)
atd
/iOemo,xmt
a) rnust
imQc,fr
or$ 'SF
@Tranrc,*t'n
bs
ge1',rrra
"l'
'
annof&tton ''
oD .' annof&ttoh
tnLru<'ctffioD
tttt"x
rtttos
ul'r moetfu Frruatog
*)/
tt'e/^d
, .fpED
On bm.,() t'
't
)
'
s- llofitqcn r'"r ' QE6[J
orkn == ?ror.qail*r'
bc.se indodl't
-*-ET^
*"
art'lur,rc
sod"$-ry:Y '
,Vtn$-o"oot'"*'
',
ClrcruAPP'jav(
t-
sG-t
Jd-fIU-
as
rhe
ct,q$nrh
spn5.ic'v,
cuerLt
o{PD'3o\,^
cf
:-
ao*r*,
to,16lo6
"la'r
(sp"6"'s
lnSzr>o''
envl- -
lal
>"iaVqc *'Jcdq
)ic,.ra
Ctie{wAPP
ur'rh '@1ic'socJ''<ttnt o
tm'tr4nrtr
tplute
?T&a*'Bneucee
dh\hatcs
Oh* Jx
.- NE\^r'
P;";;;
P'ops"rr<'o'
,
.+
P*P6"ff4n" l-\kNDAT0lLl
-,
'Nor-SufuRr
(*'en*'"r'*Tt
NF\lETr, $'g5"rr- N esrgo
fra6,n"o. SuP{'tars,
topcrtr<,raon'
rp'
P'op'6crHon
")
nloll*''
4 )Ltr-'
on
\n [o + I t-c15
porris "n
oP /^u o:*^n"*"
-T":::"*;:^o*o*n*,
u*i:'t
oppn\
16,
w*<hce
tro..t,,
ffr^an lalorl^ts
\!
ir'$
)?
|glo,-rlroL3
irnPlemento-tlorr.
:
i'rplenenAt
16 6ilranaacrlonl'lc'rr'3w
Ana
gpdal
dr-ive16
idbc
Akornik'g g.p\ie'
j
'add Disrracrrca Tx rrrnt St4pc'n- on sP"og oPPnS '
t0
\--,
u9bstti '
Ltlo@ ' orort'iKos 'com
ftresrYces
--)
q1orcd
o Con doonload
fransPtx
need cDtobcl
rr,6ne{ og^r&tlcm blo lrm d^?P alcs oP tt-,:o d;P?*'"Ve
Tiansc,l*loq Suprlo/r'
.--,--+ w(drq)Oe
Aanlrr'::?.
alr.,t
(au
I
I
r*re)
qooo
oxode DB 6lLo
,Yecu.ir:|
kwttrt [au t.,-lte ,l
u"'*'' ;
bdl
accno
:::-:: h.ldet"r.-e
Qgng lndr"na.ns bJ
tOt
tqjc,
n'"1
- ----a ule Deed DlswiLurcd ft t\mI s4'P/aYr la pLtkxro ttcorse<,t
'-/
OtcE'LnlE " ' '
OJrrre t;g,O
@;ardvi
101
the
rn'rnt_ oo
6ooO
qx'raJao'ts <n
-tri.ar,'ponrrrJnqJ
orrd Dl6tflLg}iedTx
in ls[oVf>ot: b*a"t+
OP,arron tPftn appn (BlLencm) arli@bte
.!-
* clrrtij
crn
Decrc,ro.tiw
X
Sgcl'r-',hd
1.
N et@
or
?'
11
Appri(*lcrn lr.rxJ Se(rlyi
F Laue I
f;'""rot's a.d
\t
!
AmrirgAr,n !&El
D--
*ns6;zr*lon
"
"
''-,
Pmtr..mYners 'rYg
or$al
zarto"
-Y A',6o'
re6rxm6i
btc {"r
t{"s
og"aH o"*
tfr.ie
rtrr"c''-$
.--a Che,u'ng
-+
->
$re
Cheo&log Ih
rdeft};
oP
Accers
Pe,.
USe'. is
rn isstan a
CaSteA
&
o'
tht
O t"
"
trA
oe Oan ure
deqoxo-ulue
excrmp\e
mo4c
afPn
og
crn
6r
fi."
O1y.n
cfn Ye&r.dcet
goalYitb Sewlce
Aud1en61crjl<ro
s 6\
is
CaU e
/1
fluntril1;2e.Hc/
\-/
&4lj.h'q cln
Plo
'aJtr"
he"a''b/Le
$'^t c{?ns.
atPeaiJ profircmrr3
2olo+lzot't
re-Bc.l-
6,e.
alPas Xn'eoi o
r2
i
Ta rrnle $e
@ Aof*a "-"-n
l6peJ.J Annotottoo 5
-)
_-@Porn G.t
ao Pqnt fD B'"rrbods
d;;*"ri
----
6O*O'-"1"0u
------'
*#;
*o
HiL*'*
T rna[e i:
-To
rhe 'pnr*dna as -fhrde ^o"Jt'-'-
-ro
@A,oc,-a
Advlce elc4s
,,,a\< rbe
as
iarn w+-d
^*:.:H^*iH:*,"u
t*;'1
exawra.-
6 g.*:,:::T.T. riu
^=
,m
"ff &T,=ii
'ltstBclro ' iar,a
/ trgmr,'t
1.,or,-
o.g
'
'J*"
*P*ti
'
lang ^
anooturtao'
@A.p".t
hgletctlp.'blic. cr(rrg hg
'*'
" ''*'
'
ktct+
L(d,?o,ntrnu
(''e"o*rr* (* 141:"rcr
?ubt;c vord t,..t'*,ort)t
3.."1-
xz t\ '\ t
,',mrcur
'*("))')3*"r*
J rT
,
te'dn3
*,
\ *,
\
I
|
('
6 on**'"'4
f
s.o
;^,elo."
L,eP,nt aduite"
)l
+ rr""d
g.,,,.rtots4Jd"0B",, $c g''"atats
alr
3fl'lt8 rm]
J
tesb;n-tc'{uFL
gnft,".
a.e.,"('r.,u.,rcnOrtj')
..
,.)
kp-cY\cr6oa(
void
fl*ri c
.tt
I
-".'.-.'
"".-.
zit'
-Fllt -rlr.
,.1-11]t_."r1^i.:
_'
incttde ,e""s
-- incwde
id:"idr"
s.i4$ -aDP -.
^,a',>
,,v<an id =";d2"
Iz
ad"to
))
",,*.0*, 1?:1i::: ;l
:;tl*Y":l*
-,-- \ 7""-
t tl
to *flil
ra'{ 1'""1",,s
Neb
6irnpli
Promecocfl
ftea rbe
J5F
--------------;
5trt1t{5
dipf
i-
Rom
open $lmphong
not
blo)
mvc/s1rt trxt
6hrcrt5
1"r
Ptoo:
AP: dcPcodcn
e Orkr rbq,
uJ
in victo
btrnt
,,
is
16
drry,
io
rcru*;n3 bl(o
og5
&.rv
de'rr'Paas
Portr dasses
firro$ram i
let
ord
-laqtzmT;"rana
qtdn8nvc
3Prin8 rovc
6ltdi 6 -i 'x
Dispor.r.n&*ter
Acttuoe{\det
Ca;rnr,raotl class
furn9ean
Gnnrmod &nftDlter
Aalao ctc':s
l-Dl5Rl,.tler5fr\'lcrlSicrlrarne 2
ZOog hleoar0e>'lro\
qrt krrllev
4a66,5PNocLrdJ
Qoarrr
8e!',1+' xm)
Acfionl-\a4e;o3
(to canBSrr.
cl'acS
ModetlrgVierr oklp.r
e!/t Jc,l:q
sl
penb,.
5?dir5 4'A
l3
re$cu(ce rL"u*z
@ uses 5(,$n1r5 &-dlt-io
e-...--
&rnrrotle
,--
Lo'X crr
R'rmbeanS
Ter mi oo I
TermrnolqS
d'
Prom inrcrft'ccan
O *t*..*;bt
@ th,r** ptu6io
brrse
ies and
SrnlDg Yovc
"
l-tz]Ltw
tahro\oX
$rarndo6ies
c.rchi
jsp
C(ff 6eYvt$/
cc're)
eto4.deb arc
does
fuoH5 [arcrre
dn
.t
e 4rn&.rf
o1x,,ct'r
p16sn
Nhril ib rhe
"f
-----------) Prcrir
____-_-___-_,
Lc"Xer
oP delt'lbpin3 nVc[,
Pmaess
fuioj
glt,> s
Sntrf
Nekaort
Vie!) Qcidvc'rs
o"Ses
ar.{
Vk"rs
'
Flur: oP ereornn
in
etoc,f,
:laleb
terver
ApplicanooSe'
v<e
!dabdpfn
rrart
\@ra:
ro
*8.,
: [-----l
L--------J
ontrlmrcC,- -,
I--=l
+'d
':'---6t%1c)
[r^r*ion
rbe diog.tc,rn i-
lrs
D;urc,r.1",
&*q..
rz.ur"6
B[i!+lz#tt4h== .-
<Dser.t*crss'rrc+lo6nanaroe
-ou
tfisfroic+t
\J
T'rmm ff ;,'ffi"-;ff::,
ell.sr
+o
'.o(D
\elrtat'
odt"-'
G-*,,'A
'LQa
'E*rtAn-^
Q D:ryd^o.Q*4 .o.ltz* lhe' *'"'t,.A
@ ,rr^^
K'nd"a
ot-
G"*-tt'n "L"tl
G,''r,*^)
-anl
etu'ns floJqA'rVt-
r&
p*y*c),or Q'aiet
'
p;,l""tt''nrQ,,0\er-
Qupar:.J''qQ*Ler
fie
ytXa flre
GvWae
Viulflesolve^<
t6
q)
eA* G^fiq"t
U
Beru\tPaee '
@ Ylr
ft
iin
sir"n6
\J
"l*
afu
o4lettt:
fio r
&.r.r
5*^nc':tl'A{lut.
,ri
->
' -.
'- '-.
clc6s k
ComFr.od
Ovnrnr,n
PbJb c1(1s.5,,...
d c)&t5 pyDtxrlias
not tD
..,ed
67ftk b
uelrb Fitmcznf**,rt*
4ornes
'
the
&rn9,gurafio. Pre oF
oor;og
SpinX lJebrn\l
o v;*
Vieco
ccmrrDller/ ctc.sses
ctasses
r*r*
lbrs
conprxuro$o.}
A..O9O
ha,re
csr1
Ont*
ioe
{ieao
Le.. te lp...'x?tto
r5csY'es
Lclcx
oe
teehn
1;a6
1a
s'eth
*tt
*"
::t"t: ctlrsncrme
\r*gj' ltrrs \'rlt-oQest'Uen
name
vie(oklotve'{ cl4ss
T&hnologl
'
J6P
-
"*'tvet
'Yie1tr
Vic'ol?eolver
' 1646a[[2cscirrce
(deft"rr
lelocrrg
P'errcovu
tlres
e!'s?'c'tb '
;;
sertt<t v;at
'
^"" i;'t;;;';#^j
.L.sp{ reporr6
016
hLes'
ur] :,'a
,15rt (x,',ssrstrclLcrns<tse
t
Urrt-landtcrg :
elcrrses.
Qusolve.rs.
Qp561vg-{'-
\crvies
( G.-*nl
'
cfus'
agt) 6{ttutn5 $s frro{oi"'3
@ Urt haoarcr s
cc'trmllu
( r0 linx iretti:rromin3 rcqrsts rpirb Carn'nnd
(D G-.*na
ruJ
. Lo,,."J
victtt .
_, gadtet
o./urer -' uic{t
(P'Lx-'zlt '
;,{oningqP*:,'
ant!,
G'vrnud
g"ew+;;
h^rtu*. g&*r*Z-pk
h^tlu*'
C"-a@
*mps
onct
G*nrttat
O,.c,r
,^,^-C,m"l';:?,,
L!, Hdnfld,.llo?pr,'d :- This clcrss
n,ur*presE;dns fu linr
fu
fir-
olJ.*L)s
oir.*os
to
Loontds,ka.
u,,Loontds'kae
u*
urts(reluesta''ts)oorrfr
G^*J
clctre es '
* n'r*'=-r
j'n - ?N::'ur'fu1:Y|-1": :,##,ffi,:,l*
ctoq'r'
rrrff G.o" i
r
+"tt
C*ot
ioi
tl'
o@.,
qr rs
co^r'"ila'
'
'ftiL'e 15 a
G*tprs ".'
Go,rrnnd
r1p"s oP
C-s^.^dCsrtrott, .LanE.
S'mptE'- G^t.nrpr i- useR^r to banale sing)? srbmit vt*n %'ow'ne, W thp R'mpa?t ..frurr t( )atrp<-}r qnder *t Cd'.t'dloroP Co-nrroUc^ &rr/tf . 6tw.s anG-r.ar";fG,-,.t')weina 76
Ptt{8 rbe Ye?levr
q.<f &rg. edt4'hv. ' AUr*+['t-Grt"f ,v y I
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^
(} org.+.*u.
O
fu e'i.lti d.Wr*nt
Frssibiltr$
servrf .rovc.
'--.,/
.f .t*.g,,ul+.mvc' G*l,oat.E t
@ ,X"a.G^,e
C-l
+6 Pro.eJ(
ile ^c4tLr*
G^U, .r 8//',,c *
Csa,,"6
9,'v1eT)*rCo*-tto't
W aLoV*.ele4 \--,
$n 6db"k^("ererA").
\?
matilarrlor, FtrrrA.rroG^t}"tt""':- n
hit b,nos /'r^"n,
o q..g *".gn)1f.ryrvc.4c n'r;ple -qnr C';7 %- 4n niltsple 9
l4kAkhaib
&,ne 6*iors
-*"
-t
'
Pnfle (,,]irr
ur6en
coirr
be
clc*g
'tu6
LrT
czJo+l"t:s
"A6'
gef3
class
clAss
C:rnnandGmr'otte'l
thls cf&e bclsed
"''
&trn
"*
^Wu
,.
,,^, al'*"Pi*"--=
9'*"fui91-Y
lr.^,^rneA,
lauocne d '
etr
- "
c;:ltr
processed and resrtt
be
gcrnctctrf
ca-n'x'oA
a)
&"sionF
u) f'.N1,."
----------+
-.--.-------
I e*no\/,'*
'
to
syer$
ro
ae"\ $t
fo
sfr<;ej
loe
&or,
ebss
ohJ
Jr"-W1e.
the xu*ffie
'
t"4'*
dc'*S )"d.
c^nAda*s
G-nanl
e)cr-nrlM^e -------2 la t?'hrLe GcbN
e\ aTo1rntC)aur ---------r -1" sP)fu &e G'-t"z^a
d,nd
elt'
'
@ N",r-,
tnt>' e
dt6grary1
gzn/c,fes
enVr
"rlrrhod
bct
se
impllo
r4/ue
;J
&nP"i
* pos{
' mer{rod
** ff::;qr:ffi"T;# sr#'
:"''"--
@F-^,-.a" 6cr.re,ard
"'u'*
dorA
"bcrmes
G""^'njGnrnlit"
cotrl'
eyt*tt^Ib to ltroceYt fie
av\& Ltrr{ $t
t\eG^na,r*G,,trdk".;
\\-
dildrt
"tr1Ferr-
--
E*r:r"le
fil.t;caUo.t
o@@
'.:l|P
(wtttnoc ma.
Nab
Plsnar=1*"
1i+:fum!!
afpo
*,an
rr.ge=
oo&,a'11q-ll
rl
id:
Oorrf,:
t..t't,.ln "'''
t--_--- i
ol],ae'.
Errrsh
... ldr
iP proArr+
it
gooo
asrt
Disga*cl,e'r
- @ so-. o,
t'i
qr.-e
as
_ 6 :"_, ^
. Q) Ed*.
'
.
anA
'h:s
st
pl
sl")
oq
9r\o+looE Dr"Xte'b)
sr+s oQ z,\o+r>.rs
).
i"#*s
.w*h,"
::lh'fT
Gi
tTff;it*tntt*
Tnde'isp
*a1',,sr'mt,"'barecLEd{nu')
6t"'z't
ny^[q"#]*'l*'^U
i-fl'an
D'rpat t ovSi,.utef
Fr
(:_/
-rt'e S'-ortW'Ut'rJtf1"o;ot
'tag
qprst
r"qlrrst
.._..
ltnrs rbe
c"or
c-or
rh
rn
'^
L.l:alr.nn6\ "
gts;,"#ml'*ff
Q
il,
.relT,norwethocl
D;sg"ra^.x
Gvrer
(rop,"ire)*- **'
I,X ;n*K
Dopont"'G*rc+-'(n?: t+'l\2611 )
(,.+t*ttr;
anJ Gtrt;a 4+ o47ur
&rrfo,r o.
--@ *r,0, BrLg.,frtne
r'14er (reto-eros)
Duwrc\pt},'v+ ia4s anA 1ov'z fl'e
: O
- b eote c's @
f ^ t, o,.t..n*.-^t-rrr,r ) koo',no *oh
tl.'e
e?'eljJJe
'?*;t;;*t;
Y*'*,
ta'lc"* ?un' l-'*kt
gl*3
the \eerft;r (*t:-',\ -trt4s
Jaues
a,,J
an''
*rr,ns
?,""ondCa',wrc,r..,^
'- *
o'.I]-.*u.
is
P$r
^
+zntJ"J- o? &.,.',
yul,
+o
+"
p**
da
q1*t k<""*
&.*'o"J
ffi,
,v,ar))
(D prga&n9*rzt c.Ilr
@
o"S.rr"rr
e,-, ,-)
rrt*ro
rrrft4 4 G-r*A
one,*n;tG,-,-,-;
cl
nla.
os f'lodaA't
n
@ D,nu+- 9.*rr* y*u {'e Ctnt-Ie
-,
--2 In f,t'tut'
Ft
ictc.
a5i
pt
'i'p
{ha-fn"e*at
4 rbe
Eyltl
ddlct
/- l;r{aJcru ploq.
ur Lrse \Vo
, \'I io
Crpplicad.n5
nt'1
Gyn"ll""ct^rx oL.1"
(zttt-:rtt't)
io
' j.s
,12
C*tuiFrye
Grreg
(or{)
"
tr-fl,*r
Lrtt/& \krti
n
dctk"/ -Io g" t<'rn1
.--'s[,nr[l'1vc&wn3grcresscfltTfo-'!fzvo-lVatidcdonsiolitt-lebitGropiex'drdrrot
frYDtr arnffre.t
&;cndl g
Forrn Val
1'
in
idan'on5
cticr*a; de
r,nlu omarrrrncrfic
Plsib'le u\;nt
kt
veraioo)
a.
-- a.l5
\FlaScYl
6ervc{6 i
Pt
de
liYofr&mcd\
n
c +{ Fl vt'ltdo+tt"s ure
for:Jale
-)
r.0t
{.,
'ul
ft;.,q
dne gtcex
e4 V;at'ta\n u c\w
a $ 4^' Va1'rda-tlcr
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'.
kn*t
9qr* 4
@
:-
to
lcrve c.
duolop
jan
6ttpl
"
(t) .rJ
V*a.H-(J*rs
-r,-rs+
\Al;ao+66;
\h-Udo
't"rgleraa"ttc.
trrrovictc
v,aa?.""{ u-tcco/r
14
{ak i{e
'
.-
crcdj
of Q^e'steE^ W,n^
$;'6mu, aa'n V*,7 rh. $tr*
ime'lernenlia, Ord . sF.VolHofi. ,!*a*on(f) onJ inpiernant rbe
rhe
clasS
Er."Vrldc.rtcn lgrc
lcfu
V,r.t'*.n
L1..rJr.2 io6i<
n.'ug
ioni< ;n
In
P,ocn&,"
gtE-r
Va-ct'l.n
P.oa.rct\fu.ia"ror'.1avo' ftre
c\a'6
5ie,jfu ftr( alr,
.x6s enrr{tr
Comrrund
oP
ft,"n
hollf-4
)CErs
Con
f;6qrcr-tlcT r
"of
Splrrn ConF;3woll-
4tu'
u( ga,.ni ^' Q)
uLt 't f'3'@
odoa! n rfi< rJe og 2tl+ lo
bn
rk
ln
l%i'
Fa^
Yle
"9Kn-D| 1il61g furoroing
nddq
*ku
rolq,@tnr,fi;
'1), *
LtiT
r"* *'
' "i"2
.ff;
+"
-. &jia3'd
t) :l'
4
(o',ohd
tt+JLT""::J,"i*'
rne
cro'
- r"*'ST)
Zst)rtT: rf 55.{c
4t\,
Lltikt,b"n>
llu\7
zlsp"tg I bo"B;"dFrrs
rcnr
at ;s f6'eaLb
l,JoP so'
6)e
dn e
Vq&'&-t'c4 erfors
d:rpla.ra.{
a+lo'rlPr:
oP
- O @Coer"orr e''
- @@?qpatflagprnX-
sPrirnmvcft'* 6
rrf,tl5
gPnng3
-----'--------r
KrePs
fie
in
&
gt'an.et<"
Via-ohc"
^"u"''i,;
as d:mrnnd
ar'I- coitb
,nsPS $e ior'ire$lesr
use
=@
J /> ---'
f e'aefo.,'1flest3e
>
imprtenr cnmrch0n6
@ @HoderAr*,b,rt
"$
=
6l'reo
@nfrle/r
GtnrndGr'rl//
b rrer6o4 b
#r
clc.ss '
l'1oder4rr-"u'rre
'
io
t^tlo
Yso
tlYce
fT
ts
'
:-
os
i'-"'::';*,"'",
n",i
&"W'"d
\.-
Relor,rs \n
fne
&n".
tf
.-@ {*Ihe
ro
v' 6h
*e''\"-ra.
sw\eF'viet'
'
Se
.:"x';';J,J.[: "'*
tleot'N*
Y ::ffi;
gihmgl cLj.Ph
a*.@o?fie
onrbe 6!o.a disu'rttc,.n.hc
*.*''spffi
6it-&a'on*
tb( sttaarx"
' "r -"tl:--*:*.J11*:"#
band le lD(
tr'bandle
rrvc tr'
tr.r16 fcnc-fa*ro llu" "nl
I_ -er*rgrrvc
," er*rg
-+ Jn
elals & +ye"
dGar-l
pc'Xe Loe mrtst use tbe G-rtno
ftrrrr
aoe Sboc'rd
also us(
'
@
.p.n
le'v
rhample &?pn
6n
roitb
lrrrr*lrrrcrnGrr'crt<'l
rrrr?rde
"? Con"anaG''nt,oua
o+ltllal*r: h"d"+
9P"9-NeUse'ni(cs
-+
It
prortdee the
ong
Crnlr^;ne't
qryons
-t
Lrb5wodlcn
ir Set?
bget
a1
provides erNi
l+L'e;s no ned oP
inx-ppc
(Dnfffnt +o excu"t-c
fu.t"t"
-to
Co,sume
Ld'bwvi&
'
Cldts ObJ@ra-t
%*
ce
G^7'oe"t' tht
uzbsenrtn'
Camgt'net* and
lt:tllkr^)ica
as
Qxpose iavacta'l
&tC\
k-r-bg3'rDi
proceeS rh e
&*rtthett.r
U){bkwice &mpontnt.
u,nL*'2 h&nwne
?"",P'o^'fi$n&."n
rat"'*-cntL- ttmrt6..io,os ' &\ls
W'*"'#:#,;"*
bos'r
$n,uut*,"
dtuatr"D
^ *W#
I would try to update our site JavaEra.com everyday with various interesting
facts, scenarios and interview questions. Keep visiting regularly.....
Thanks and I wish all the readers all the best in the interviews.
www.JavaEra.com
A Perfect Place for All Java Resources