Author(s): Greg Nyberg; Richard Monson-Haefel
Edition: 1st O'Reilly ed
Publisher: O'Reilly
Year: 2002
Language: English
Pages: 254
City: Sebastopol, CA
Series Titles Available......Page 2
Table of Figures......Page 13
Contents of This Book......Page 17
On-Line Resources......Page 18
Conventions Used in This Book......Page 19
Acknowledgements......Page 20
Installing on NT/Win2K Machines......Page 21
Installing on SunOS Machines......Page 25
Final Installation Steps......Page 27
Enabling EJB 2.0 Capability in WebLogic......Page 28
SunOS......Page 29
Booting the Examples Server – SunOS:......Page 30
Opening the WebLogic Management Console......Page 31
Changing the Logging Severity Threshold......Page 32
Configuring the JDBC Connection Pools......Page 33
Configuring the JDBC pools for alternate JDBC drivers/databases:......Page 34
DB/2 UDB JDBC Driver......Page 35
Building the EJB 2.0 examples:......Page 36
Testing the EJB20 Examples......Page 39
Building the Workbook Database......Page 41
Creating Cloudscape Database using Cloudview......Page 42
Creating Cloudscape Database using ij Utility......Page 45
Option #2 – Build Empty Database, Create All Tabl......Page 47
Creating Workbook Tables using Cloudview......Page 48
Creating Workbook Tables using ij Utility......Page 49
Creating an Empty EJBBook Domain......Page 50
Configuring EJBBook Domain......Page 52
Step 2 – Configure ejbbook domain root directory......Page 53
SunOS......Page 54
Win2K/NT or SunOS......Page 55
Step 3 – Create a JDBC pool and datasource in ejb......Page 56
Configuring TitanApp Application in EJBBook Domain......Page 59
web.xml......Page 61
application.xml......Page 62
Exercise Code Setup and Configuration......Page 63
common.properties – SunOS......Page 64
Exercises for Chapter 4......Page 67
Download and Build the Example Programs......Page 68
Examine the WebLogic-Specific Files/Components......Page 69
weblogic-ejb-jar.xml......Page 70
weblogic-cmp-rdbms-jar.xml......Page 71
Deploy the EJB Components to WebLogic......Page 73
Client_41.java......Page 76
Examine and Run the Client JSP Pages......Page 79
Examine the WebLogic-Specific Files/Components......Page 81
weblogic-ejb-jar.xml......Page 82
Deploy the EJB Components to WebLogic......Page 83
Examine and Run the Client Applications......Page 84
TravelAgentBean.java......Page 85
Examine and Run the Client JSP Pages......Page 86
Exercises for Chapter 5......Page 87
Examine and Run the Client Applications......Page 88
Examine and Run the Client JSP Pages......Page 89
Examine and Run the Client Applications......Page 90
Client_54.java......Page 91
Examine and Run the Client JSP Pages......Page 92
Examine the Standard EJB Descriptor File......Page 93
Examine the WebLogic-Specific Files/Components......Page 94
Examine and Run the Client Applications......Page 95
Examine and Run the Client JSP Pages......Page 96
Exercises for Chapter 6......Page 97
Examine the Standard EJB Descriptor File......Page 98
Examine the WebLogic-Specific Files/Components......Page 99
Client_61.java......Page 100
Examine and Run the Client JSP Pages......Page 102
Download and Build the Example Programs......Page 103
CustomerBean.java......Page 104
Client_62.java......Page 105
Examine and Run the Client JSP Pages......Page 106
AddressBean.java......Page 108
AddressHomeLocal.java......Page 109
CustomerRemote.java......Page 110
CustomerBean.java......Page 111
Create the Required Database Objects......Page 112
Examine the Standard EJB Descriptor File......Page 114
Examine the WebLogic-Specific Files/Components......Page 115
Examine and Run the Client Applications......Page 117
Client_63.java......Page 118
Examine and Run the Client JSP Pages......Page 119
Exercises for Chapter 7......Page 121
Download and Build the Example Programs......Page 122
Create the Required Database Objects......Page 123
Examine the Standard EJB Descriptor File......Page 124
Examine the WebLogic-Specific Files/Components......Page 128
Client_71.jsp......Page 130
Client_73.jsp......Page 132
Create the Required Database Objects......Page 136
Many-to-One Unidirectional (Cruise-Ship)......Page 137
One-to-Many Bidirectional (Cruise-Reservation)......Page 138
Many-to-Many Bidirectional (Customer-Reservation)......Page 139
Many-to-Many Unidirectional (Cabin-Reservation)......Page 141
One-to-Many Bidirectional (Cruise-Reservation)......Page 142
Many-to-Many Bidirectional (Customer-Reservation)......Page 143
Many-to-Many Unidirectional (Cabin-Reservation)......Page 145
Examine and Run the Client JSP Pages......Page 146
Client_76a.jsp......Page 147
Client_76b.jsp......Page 148
Client_77b.jsp......Page 149
Client_77c.jsp......Page 151
Client_77d.jsp......Page 153
Optional Additional Tasks......Page 155
Examine the Standard EJB Descriptor File......Page 156
Examine and Run the Client JSP Pages......Page 157
Exercises for Chapter 8......Page 159
Examine the Standard EJB Descriptor File......Page 160
CustomerHomeLocal.java......Page 162
AddressBean.java......Page 164
CruiseHomeLocal.java......Page 165
CabinHomeLocal.java......Page 166
Examine and Run the Client JSP Pages......Page 167
Client_82.jsp......Page 168
Client_84a.jsp......Page 169
Client_84c.jsp......Page 170
Examine the Standard EJB Descriptor File......Page 172
Deploy the EJB Components to WebLogic......Page 177
Client_85.jsp......Page 178
Client_86b.jsp......Page 179
Client_88.jsp......Page 180
Client_89.jsp......Page 181
Exercise for Chapter 10......Page 183
Create the Required Database Objects......Page 184
Examine the Standard EJB Descriptor File......Page 185
Deploy the EJB Components to WebLogic......Page 187
Examine and Run the Client Applications......Page 188
Examine and Run the Client JSP Pages......Page 190
Exercises for Chapter 12......Page 191
ProcessPaymentRemote.java......Page 192
Create the Required Database Objects......Page 193
Examine the Standard EJB Descriptor File......Page 194
weblogic-ejb-jar.xml......Page 195
Client_122.java......Page 196
Examine and Run the Client JSP Pages......Page 198
Download and Build the Example Programs......Page 199
Create the Required Database Objects......Page 202
Examine the Standard EJB Descriptor File......Page 205
CustomerHomeRemote.java......Page 207
CustomerRemote.java......Page 208
CustomerLocal.java......Page 209
Examine the WebLogic-Specific Files/Components......Page 211
ejb-jar.xml......Page 212
weblogic-ejb-jar.xml......Page 213
Deploy the EJB Components to WebLogic......Page 215
Client_125.java......Page 216
Client_126.java......Page 217
Client_127.java......Page 219
Examine and Run the Client JSP Pages......Page 220
Exercises for Chapter 13......Page 221
TravelAgentBean.java......Page 222
Configure the Required JMS Components......Page 223
Examine the Standard EJB Descriptor File......Page 227
Deploy the EJB Components to WebLogic......Page 228
Examine and Run the Client Applications......Page 229
Examine and Run the Client JSP Pages......Page 232
Exercise 13.2:The Message-Driven Bean......Page 233
ReservationProcessorBean.java......Page 234
Configure the Required JMS Components......Page 236
Examine the Standard EJB Descriptor File......Page 242
Examine the WebLogic-Specific Files/Components......Page 244
JmsClient_ReservationProducer.java......Page 246
JmsClient_TicketConsumer.java......Page 248
Examine and Run the Client JSP Pages......Page 252
Colophon......Page 254