P R E F A C E
Table of Content
PREFACE .................................................................................................................................................................................................................................... 8
F
ORWARD
................................................................................................................................................................................................................................... 8
A
BOUT THE
A
UTHORS
............................................................................................................................................................................................................... 8
D
EDICATION
........................................................................................................................................................................................................................... 10
A
CKNOWLEDGMENTS
................................................................................................................................................................................................................. 10
1.
INTRODUCTION .......................................................................................................................................................................................................... 11
2.
FIRST STEPS: BRING JBOSS TO LIFE.......................................................................................................................................................... 15
B
INARY
D
OWNLOAD
................................................................................................................................................................................................................. 15
S
OURCE
C
ODE
D
OWNLOAD
...................................................................................................................................................................................................... 16
C
OMPILE AND
T
EST
JB
OSS
.................................................................................................................................................................................................. 17
S
TART
JB
OSS
........................................................................................................................................................................................................................ 17
JBoss Startup Options ........................................................................................................................................................................................ 18
JB
OSS AS
U
NIX
/ W
INDOWS
S
TARTUP
S
ERVICE
............................................................................................................................................................... 19
Install JBoss as Windows NT / W2K Service........................................................................................................................................ 19
Install JBoss as Unix Service..................................................................................................................................................................... 20
3.
SAMPLE PROJECT ..................................................................................................................................................................................................... 25
S
KELETON OF A
JB
OSS
P
ROJECT
........................................................................................................................................................................................ 25
B
UILD
S
YSTEM
....................................................................................................................................................................................................................... 25
E
NTERPRISE
J
AVA
B
EANS AND
J2EE R
ESOURCES
............................................................................................................................................................ 26
W
EB AND
O
THER
C
LIENTS
.................................................................................................................................................................................................... 27
T
ESTS
..................................................................................................................................................................................................................................... 28
T
EMPLATE
P
ROJECT
............................................................................................................................................................................................................... 28
H
OW TO
C
ODE IN THE
T
EMPLATE
......................................................................................................................................................................................... 30
Create EJBs ................................................................................................................................................................................................................ 30
Coding the clients ............................................................................................................................................................................................... 32
How to Run the Template ................................................................................................................................................................................... 32
4.
NAMING......................................................................................................................................................................................................................... 34
JNDI C
LIENT
C
ONFIGURATION
........................................................................................................................................................................................... 35
C
USTOMIZING EJB
JAR
.
XML AND WEB
.
XML
ENC E
LEMENTS
............................................................................................................................................. 36
5.
CLUSTERING............................................................................................................................................................................................................... 40
F
EATURES
............................................................................................................................................................................................................................... 40
G
ETTING
S
TARTED
................................................................................................................................................................................................................. 40
C
LUSTER
WIDE
JNDI ........................................................................................................................................................................................................... 41
F
ARMING
................................................................................................................................................................................................................................. 41
T
ROUBLE
S
HOOTING
............................................................................................................................................................................................................... 42
I
F ALL ELSE FAILS
........................................................................................................................................................................................................... 43
A
DVANCED
C
ONFIGURATIONS
................................................................................................................................................................................................. 43
6.
WRITE AND DEPLOY J2EE APPLICATIONS..................................................................................................................................................... 44
Page 2 of 139
2