1. Trang chủ
  2. » Công Nghệ Thông Tin

mastering enterprise javabeans, 3rd ed 2005

841 1.5K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • 1681.pdf

  • 842.pdf

  • 843.pdf

  • 844.pdf

  • 845.pdf

  • 846.pdf

  • 847.pdf

  • 848.pdf

  • 849.pdf

  • 850.pdf

  • 851.pdf

  • 852.pdf

  • 853.pdf

  • 854.pdf

  • 855.pdf

  • 856.pdf

  • 857.pdf

  • 858.pdf

  • 859.pdf

  • 860.pdf

  • 861.pdf

  • 862.pdf

  • 863.pdf

  • 864.pdf

  • 865.pdf

  • 866.pdf

  • 867.pdf

  • 868.pdf

  • 869.pdf

  • 870.pdf

  • 871.pdf

  • 872.pdf

  • 873.pdf

  • 874.pdf

  • 875.pdf

  • 876.pdf

  • 877.pdf

  • 878.pdf

  • 879.pdf

  • 880.pdf

  • 881.pdf

  • 882.pdf

  • 883.pdf

  • 884.pdf

  • 885.pdf

  • 886.pdf

  • 887.pdf

  • 888.pdf

  • 889.pdf

  • 890.pdf

  • 891.pdf

  • 892.pdf

  • 893.pdf

  • 894.pdf

  • 895.pdf

  • 896.pdf

  • 897.pdf

  • 898.pdf

  • 899.pdf

  • 900.pdf

  • 901.pdf

  • 902.pdf

  • 903.pdf

  • 904.pdf

  • 905.pdf

  • 906.pdf

  • 907.pdf

  • 908.pdf

  • 909.pdf

  • 910.pdf

  • 911.pdf

  • 912.pdf

  • 913.pdf

  • 914.pdf

  • 915.pdf

  • 916.pdf

  • 917.pdf

  • 918.pdf

  • 919.pdf

  • 920.pdf

  • 921.pdf

  • 922.pdf

  • 923.pdf

  • 924.pdf

  • 925.pdf

  • 926.pdf

  • 927.pdf

  • 928.pdf

  • 929.pdf

  • 930.pdf

  • 931.pdf

  • 932.pdf

  • 933.pdf

  • 934.pdf

  • 935.pdf

  • 936.pdf

  • 937.pdf

  • 938.pdf

  • 939.pdf

  • 940.pdf

  • 941.pdf

  • 942.pdf

  • 943.pdf

  • 944.pdf

  • 945.pdf

  • 946.pdf

  • 947.pdf

  • 948.pdf

  • 949.pdf

  • 950.pdf

  • 951.pdf

  • 952.pdf

  • 953.pdf

  • 954.pdf

  • 955.pdf

  • 956.pdf

  • 957.pdf

  • 958.pdf

  • 959.pdf

  • 960.pdf

  • 961.pdf

  • 962.pdf

  • 963.pdf

  • 964.pdf

  • 965.pdf

  • 966.pdf

  • 967.pdf

  • 968.pdf

  • 969.pdf

  • 970.pdf

  • 971.pdf

  • 972.pdf

  • 973.pdf

  • 974.pdf

  • 975.pdf

  • 976.pdf

  • 977.pdf

  • 978.pdf

  • 979.pdf

  • 980.pdf

  • 981.pdf

  • 982.pdf

  • 983.pdf

  • 984.pdf

  • 985.pdf

  • 986.pdf

  • 987.pdf

  • 988.pdf

  • 989.pdf

  • 990.pdf

  • 991.pdf

  • 992.pdf

  • 993.pdf

  • 994.pdf

  • 995.pdf

  • 996.pdf

  • 997.pdf

  • 998.pdf

  • 999.pdf

  • 1000.pdf

  • 1001.pdf

  • 1002.pdf

  • 1003.pdf

  • 1004.pdf

  • 1005.pdf

  • 1006.pdf

  • 1007.pdf

  • 1008.pdf

  • 1009.pdf

  • 1010.pdf

  • 1011.pdf

  • 1012.pdf

  • 1013.pdf

  • 1014.pdf

  • 1015.pdf

  • 1016.pdf

  • 1017.pdf

  • 1018.pdf

  • 1019.pdf

  • 1020.pdf

  • 1021.pdf

  • 1022.pdf

  • 1023.pdf

  • 1024.pdf

  • 1025.pdf

  • 1026.pdf

  • 1027.pdf

  • 1028.pdf

  • 1029.pdf

  • 1030.pdf

  • 1031.pdf

  • 1032.pdf

  • 1033.pdf

  • 1034.pdf

  • 1035.pdf

  • 1036.pdf

  • 1037.pdf

  • 1038.pdf

  • 1039.pdf

  • 1040.pdf

  • 1041.pdf

  • 1042.pdf

  • 1043.pdf

  • 1044.pdf

  • 1045.pdf

  • 1046.pdf

  • 1047.pdf

  • 1048.pdf

  • 1049.pdf

  • 1050.pdf

  • 1051.pdf

  • 1052.pdf

  • 1053.pdf

  • 1054.pdf

  • 1055.pdf

  • 1056.pdf

  • 1057.pdf

  • 1058.pdf

  • 1059.pdf

  • 1060.pdf

  • 1061.pdf

  • 1062.pdf

  • 1063.pdf

  • 1064.pdf

  • 1065.pdf

  • 1066.pdf

  • 1067.pdf

  • 1068.pdf

  • 1069.pdf

  • 1070.pdf

  • 1071.pdf

  • 1072.pdf

  • 1073.pdf

  • 1074.pdf

  • 1075.pdf

  • 1076.pdf

  • 1077.pdf

  • 1078.pdf

  • 1079.pdf

  • 1080.pdf

  • 1081.pdf

  • 1082.pdf

  • 1083.pdf

  • 1084.pdf

  • 1085.pdf

  • 1086.pdf

  • 1087.pdf

  • 1088.pdf

  • 1089.pdf

  • 1090.pdf

  • 1091.pdf

  • 1092.pdf

  • 1093.pdf

  • 1094.pdf

  • 1095.pdf

  • 1096.pdf

  • 1097.pdf

  • 1098.pdf

  • 1099.pdf

  • 1100.pdf

  • 1101.pdf

  • 1102.pdf

  • 1103.pdf

  • 1104.pdf

  • 1105.pdf

  • 1106.pdf

  • 1107.pdf

  • 1108.pdf

  • 1109.pdf

  • 1110.pdf

  • 1111.pdf

  • 1112.pdf

  • 1113.pdf

  • 1114.pdf

  • 1115.pdf

  • 1116.pdf

  • 1117.pdf

  • 1118.pdf

  • 1119.pdf

  • 1120.pdf

  • 1121.pdf

  • 1122.pdf

  • 1123.pdf

  • 1124.pdf

  • 1125.pdf

  • 1126.pdf

  • 1127.pdf

  • 1128.pdf

  • 1129.pdf

  • 1130.pdf

  • 1131.pdf

  • 1132.pdf

  • 1133.pdf

  • 1134.pdf

  • 1135.pdf

  • 1136.pdf

  • 1137.pdf

  • 1138.pdf

  • 1139.pdf

  • 1140.pdf

  • 1141.pdf

  • 1142.pdf

  • 1143.pdf

  • 1144.pdf

  • 1145.pdf

  • 1146.pdf

  • 1147.pdf

  • 1148.pdf

  • 1149.pdf

  • 1150.pdf

  • 1151.pdf

  • 1152.pdf

  • 1153.pdf

  • 1154.pdf

  • 1155.pdf

  • 1156.pdf

  • 1157.pdf

  • 1158.pdf

  • 1159.pdf

  • 1160.pdf

  • 1161.pdf

  • 1162.pdf

  • 1163.pdf

  • 1164.pdf

  • 1165.pdf

  • 1166.pdf

  • 1167.pdf

  • 1168.pdf

  • 1169.pdf

  • 1170.pdf

  • 1171.pdf

  • 1172.pdf

  • 1173.pdf

  • 1174.pdf

  • 1175.pdf

  • 1176.pdf

  • 1177.pdf

  • 1178.pdf

  • 1179.pdf

  • 1180.pdf

  • 1181.pdf

  • 1182.pdf

  • 1183.pdf

  • 1184.pdf

  • 1185.pdf

  • 1186.pdf

  • 1187.pdf

  • 1188.pdf

  • 1189.pdf

  • 1190.pdf

  • 1191.pdf

  • 1192.pdf

  • 1193.pdf

  • 1194.pdf

  • 1195.pdf

  • 1196.pdf

  • 1197.pdf

  • 1198.pdf

  • 1199.pdf

  • 1200.pdf

  • 1201.pdf

  • 1202.pdf

  • 1203.pdf

  • 1204.pdf

  • 1205.pdf

  • 1206.pdf

  • 1207.pdf

  • 1208.pdf

  • 1209.pdf

  • 1210.pdf

  • 1211.pdf

  • 1212.pdf

  • 1213.pdf

  • 1214.pdf

  • 1215.pdf

  • 1216.pdf

  • 1217.pdf

  • 1218.pdf

  • 1219.pdf

  • 1220.pdf

  • 1221.pdf

  • 1222.pdf

  • 1223.pdf

  • 1224.pdf

  • 1225.pdf

  • 1226.pdf

  • 1227.pdf

  • 1228.pdf

  • 1229.pdf

  • 1230.pdf

  • 1231.pdf

  • 1232.pdf

  • 1233.pdf

  • 1234.pdf

  • 1235.pdf

  • 1236.pdf

  • 1237.pdf

  • 1238.pdf

  • 1239.pdf

  • 1240.pdf

  • 1241.pdf

  • 1242.pdf

  • 1243.pdf

  • 1244.pdf

  • 1245.pdf

  • 1246.pdf

  • 1247.pdf

  • 1248.pdf

  • 1249.pdf

  • 1250.pdf

  • 1251.pdf

  • 1252.pdf

  • 1253.pdf

  • 1254.pdf

  • 1255.pdf

  • 1256.pdf

  • 1257.pdf

  • 1258.pdf

  • 1259.pdf

  • 1260.pdf

  • 1261.pdf

  • 1262.pdf

  • 1263.pdf

  • 1264.pdf

  • 1265.pdf

  • 1266.pdf

  • 1267.pdf

  • 1268.pdf

  • 1269.pdf

  • 1270.pdf

  • 1271.pdf

  • 1272.pdf

  • 1273.pdf

  • 1274.pdf

  • 1275.pdf

  • 1276.pdf

  • 1277.pdf

  • 1278.pdf

  • 1279.pdf

  • 1280.pdf

  • 1281.pdf

  • 1282.pdf

  • 1283.pdf

  • 1284.pdf

  • 1285.pdf

  • 1286.pdf

  • 1287.pdf

  • 1288.pdf

  • 1289.pdf

  • 1290.pdf

  • 1291.pdf

  • 1292.pdf

  • 1293.pdf

  • 1294.pdf

  • 1295.pdf

  • 1296.pdf

  • 1297.pdf

  • 1298.pdf

  • 1299.pdf

  • 1300.pdf

  • 1301.pdf

  • 1302.pdf

  • 1303.pdf

  • 1304.pdf

  • 1305.pdf

  • 1306.pdf

  • 1307.pdf

  • 1308.pdf

  • 1309.pdf

  • 1310.pdf

  • 1311.pdf

  • 1312.pdf

  • 1313.pdf

  • 1314.pdf

  • 1315.pdf

  • 1316.pdf

  • 1317.pdf

  • 1318.pdf

  • 1319.pdf

  • 1320.pdf

  • 1321.pdf

  • 1322.pdf

  • 1323.pdf

  • 1324.pdf

  • 1325.pdf

  • 1326.pdf

  • 1327.pdf

  • 1328.pdf

  • 1329.pdf

  • 1330.pdf

  • 1331.pdf

  • 1332.pdf

  • 1333.pdf

  • 1334.pdf

  • 1335.pdf

  • 1336.pdf

  • 1337.pdf

  • 1338.pdf

  • 1339.pdf

  • 1340.pdf

  • 1341.pdf

  • 1342.pdf

  • 1343.pdf

  • 1344.pdf

  • 1345.pdf

  • 1346.pdf

  • 1347.pdf

  • 1348.pdf

  • 1349.pdf

  • 1350.pdf

  • 1351.pdf

  • 1352.pdf

  • 1353.pdf

  • 1354.pdf

  • 1355.pdf

  • 1356.pdf

  • 1357.pdf

  • 1358.pdf

  • 1359.pdf

  • 1360.pdf

  • 1361.pdf

  • 1362.pdf

  • 1363.pdf

  • 1364.pdf

  • 1365.pdf

  • 1366.pdf

  • 1367.pdf

  • 1368.pdf

  • 1369.pdf

  • 1370.pdf

  • 1371.pdf

  • 1372.pdf

  • 1373.pdf

  • 1374.pdf

  • 1375.pdf

  • 1376.pdf

  • 1377.pdf

  • 1378.pdf

  • 1379.pdf

  • 1380.pdf

  • 1381.pdf

  • 1382.pdf

  • 1383.pdf

  • 1384.pdf

  • 1385.pdf

  • 1386.pdf

  • 1387.pdf

  • 1388.pdf

  • 1389.pdf

  • 1390.pdf

  • 1391.pdf

  • 1392.pdf

  • 1393.pdf

  • 1394.pdf

  • 1395.pdf

  • 1396.pdf

  • 1397.pdf

  • 1398.pdf

  • 1399.pdf

  • 1400.pdf

  • 1401.pdf

  • 1402.pdf

  • 1403.pdf

  • 1404.pdf

  • 1405.pdf

  • 1406.pdf

  • 1407.pdf

  • 1408.pdf

  • 1409.pdf

  • 1410.pdf

  • 1411.pdf

  • 1412.pdf

  • 1413.pdf

  • 1414.pdf

  • 1415.pdf

  • 1416.pdf

  • 1417.pdf

  • 1418.pdf

  • 1419.pdf

  • 1420.pdf

  • 1421.pdf

  • 1422.pdf

  • 1423.pdf

  • 1424.pdf

  • 1425.pdf

  • 1426.pdf

  • 1427.pdf

  • 1428.pdf

  • 1429.pdf

  • 1430.pdf

  • 1431.pdf

  • 1432.pdf

  • 1433.pdf

  • 1434.pdf

  • 1435.pdf

  • 1436.pdf

  • 1437.pdf

  • 1438.pdf

  • 1439.pdf

  • 1440.pdf

  • 1441.pdf

  • 1442.pdf

  • 1443.pdf

  • 1444.pdf

  • 1445.pdf

  • 1446.pdf

  • 1447.pdf

  • 1448.pdf

  • 1449.pdf

  • 1450.pdf

  • 1451.pdf

  • 1452.pdf

  • 1453.pdf

  • 1454.pdf

  • 1455.pdf

  • 1456.pdf

  • 1457.pdf

  • 1458.pdf

  • 1459.pdf

  • 1460.pdf

  • 1461.pdf

  • 1462.pdf

  • 1463.pdf

  • 1464.pdf

  • 1465.pdf

  • 1466.pdf

  • 1467.pdf

  • 1468.pdf

  • 1469.pdf

  • 1470.pdf

  • 1471.pdf

  • 1472.pdf

  • 1473.pdf

  • 1474.pdf

  • 1475.pdf

  • 1476.pdf

  • 1477.pdf

  • 1478.pdf

  • 1479.pdf

  • 1480.pdf

  • 1481.pdf

  • 1482.pdf

  • 1483.pdf

  • 1484.pdf

  • 1485.pdf

  • 1486.pdf

  • 1487.pdf

  • 1488.pdf

  • 1489.pdf

  • 1490.pdf

  • 1491.pdf

  • 1492.pdf

  • 1493.pdf

  • 1494.pdf

  • 1495.pdf

  • 1496.pdf

  • 1497.pdf

  • 1498.pdf

  • 1499.pdf

  • 1500.pdf

  • 1501.pdf

  • 1502.pdf

  • 1503.pdf

  • 1504.pdf

  • 1505.pdf

  • 1506.pdf

  • 1507.pdf

  • 1508.pdf

  • 1509.pdf

  • 1510.pdf

  • 1511.pdf

  • 1512.pdf

  • 1513.pdf

  • 1514.pdf

  • 1515.pdf

  • 1516.pdf

  • 1517.pdf

  • 1518.pdf

  • 1519.pdf

  • 1520.pdf

  • 1521.pdf

  • 1522.pdf

  • 1523.pdf

  • 1524.pdf

  • 1525.pdf

  • 1526.pdf

  • 1527.pdf

  • 1528.pdf

  • 1529.pdf

  • 1530.pdf

  • 1531.pdf

  • 1532.pdf

  • 1533.pdf

  • 1534.pdf

  • 1535.pdf

  • 1536.pdf

  • 1537.pdf

  • 1538.pdf

  • 1539.pdf

  • 1540.pdf

  • 1541.pdf

  • 1542.pdf

  • 1543.pdf

  • 1544.pdf

  • 1545.pdf

  • 1546.pdf

  • 1547.pdf

  • 1548.pdf

  • 1549.pdf

  • 1550.pdf

  • 1551.pdf

  • 1552.pdf

  • 1553.pdf

  • 1554.pdf

  • 1555.pdf

  • 1556.pdf

  • 1557.pdf

  • 1558.pdf

  • 1559.pdf

  • 1560.pdf

  • 1561.pdf

  • 1562.pdf

  • 1563.pdf

  • 1564.pdf

  • 1565.pdf

  • 1566.pdf

  • 1567.pdf

  • 1568.pdf

  • 1569.pdf

  • 1570.pdf

  • 1571.pdf

  • 1572.pdf

  • 1573.pdf

  • 1574.pdf

  • 1575.pdf

  • 1576.pdf

  • 1577.pdf

  • 1578.pdf

  • 1579.pdf

  • 1580.pdf

  • 1581.pdf

  • 1582.pdf

  • 1583.pdf

  • 1584.pdf

  • 1585.pdf

  • 1586.pdf

  • 1587.pdf

  • 1588.pdf

  • 1589.pdf

  • 1590.pdf

  • 1591.pdf

  • 1592.pdf

  • 1593.pdf

  • 1594.pdf

  • 1595.pdf

  • 1596.pdf

  • 1597.pdf

  • 1598.pdf

  • 1599.pdf

  • 1600.pdf

  • 1601.pdf

  • 1602.pdf

  • 1603.pdf

  • 1604.pdf

  • 1605.pdf

  • 1606.pdf

  • 1607.pdf

  • 1608.pdf

  • 1609.pdf

  • 1610.pdf

  • 1611.pdf

  • 1612.pdf

  • 1613.pdf

  • 1614.pdf

  • 1615.pdf

  • 1616.pdf

  • 1617.pdf

  • 1618.pdf

  • 1619.pdf

  • 1620.pdf

  • 1621.pdf

  • 1622.pdf

  • 1623.pdf

  • 1624.pdf

  • 1625.pdf

  • 1626.pdf

  • 1627.pdf

  • 1628.pdf

  • 1629.pdf

  • 1630.pdf

  • 1631.pdf

  • 1632.pdf

  • 1633.pdf

  • 1634.pdf

  • 1635.pdf

  • 1636.pdf

  • 1637.pdf

  • 1638.pdf

  • 1639.pdf

  • 1640.pdf

  • 1641.pdf

  • 1642.pdf

  • 1643.pdf

  • 1644.pdf

  • 1645.pdf

  • 1646.pdf

  • 1647.pdf

  • 1648.pdf

  • 1649.pdf

  • 1650.pdf

  • 1651.pdf

  • 1652.pdf

  • 1653.pdf

  • 1654.pdf

  • 1655.pdf

  • 1656.pdf

  • 1657.pdf

  • 1658.pdf

  • 1659.pdf

  • 1660.pdf

  • 1661.pdf

  • 1662.pdf

  • 1663.pdf

  • 1664.pdf

  • 1665.pdf

  • 1666.pdf

  • 1667.pdf

  • 1668.pdf

  • 1669.pdf

  • 1670.pdf

  • 1671.pdf

  • 1672.pdf

  • 1673.pdf

  • 1674.pdf

  • 1675.pdf

  • 1676.pdf

  • 1677.pdf

  • 1678.pdf

  • 1679.pdf

  • 1680.pdf

  • 1682.pdf

Nội dung

TeAM YYePG Digitally signed by TeAM YYePG DN: cn=TeAM YYePG, c=US, o=TeAM YYePG, ou=TeAM YYePG, email=yyepg@msn.com Reason: I attest to the accuracy and integrity of this document Date: 2005.02.23 21:38:31 +08'00' Ed Roman Rima Patel Sriganesh Gerald Brose Mastering Enterprise JavaBeans ™ Third Edition 01_576828 ffirs.qxd 11/3/04 11:36 AM Page i Mastering Enterprise JavaBeans™, Third Edition Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2005 by Ed Roman, Gerald Brose, and Rima Patel Sriganesh Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 0-7645-7682-8 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 3B/RX/RR/QU/IN No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, e-mail: brandreview@wiley.com. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specif- ically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other profes- sional services. If professional assistance is required, the services of a competent professional per- son should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Website is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Website may provide or recommendations it may make. Further, readers should be aware that Internet Websites listed in this work may have changed or disap- peared between when this work was written and when it is read. IN NO EVENT SHALL THE AUTHOR OR PUBLISHER BE LIABLE TO ANY PERSON FOR ANY INCIDENTAL, INDIRECT, SPECIAL OR CONSEQUENTIALDAMAGES, INCLUDING WITHOUT LIMITATION TO, LOSS OF PROFITS, LOSS OF DATA, BUSINESS INTERRUPTION OR ANY AND ALL OTHER SIMILAR DAMAGES OR LOSS, EVEN IF AUTHOR OR PUBLISHER OR THEIR SUP- PLIERS OR THEIR AGENTS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at (800) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Control Number: 2004114268 Trademarks: Wiley, the Wiley Publishing logo and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Enterprise JavaBeans is a trademark of Sun Microsystems, Inc. in the U.S. or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. 01_576828 ffirs.qxd 11/3/04 11:36 AM Page ii To my wonderful wife, Christine, and to our boys, Johannes and Julius. Rima wishes to dedicate this book to her dearest and loving husband Sriganesh, and her most wonderful parents. 01_576828 ffirs.qxd 11/3/04 11:36 AM Page iii Credits iv Acquisitions Editor Robert M. Elliott Development Editor Sydney Jones Technical Editor Floyd Marinescu Copy Editor Michael Koch Editorial Manager Kathryn Malm Bourgoine Vice President & Executive Group Publisher Richard Swadley Vice President and Publisher Joseph B. Wikert Project Coordinator Erin Smith Graphics and Production Specialists Sean Decker Kelly Emkow Jennifer Heleine Quality Control Technician Brian H. Walls Proofreading and Indexing TECHBOOKS Production Services 01_576828 ffirs.qxd 11/3/04 11:36 AM Page iv Acknowledgments xvi Introduction xvii Part One Overview 1 Chapter 1 Overview 3 The Motivation for Enterprise JavaBeans 4 Component Architectures 7 Service-Oriented Architectures 8 Divide and Conquer to the Extreme with Reusable Services 9 Introducing Enterprise JavaBeans 11 Why Java? 12 EJB as a Business Tier Component 13 The EJB Ecosystem 15 The Bean Provider 16 The Application Assembler 16 The EJB Deployer 17 The System Administrator 17 The Container and Server Provider 18 The Tool Vendors 18 Summary of Roles 19 The Java 2 Platform, Enterprise Edition (J2EE) 21 The J2EE Technologies 22 Summary 26 Chapter 2 EJB Fundamentals 27 Enterprise Beans 27 Types of Beans 28 Distributed Objects: The Foundation for EJB 30 Distributed Objects and Middleware 32 Contents v 02_576828 ftoc.qxd 11/3/04 11:36 AM Page v Explicit Middleware 33 Implicit Middleware 34 What Constitutes an Enterprise Bean? 36 The Enterprise Bean Class 36 The EJB Object 37 The Home Object 42 The Local Interfaces 44 Deployment Descriptors 48 Vendor-Specific Files 49 Ejb-jar File 49 Summary of Terms 50 Summary 52 Chapter 3 Writing Your First Bean 53 How to Develop an EJB Component 54 The Remote Interface 55 The Local Interface 56 The Home Interface 57 The Local Home Interface 59 The Bean Class 61 The Deployment Descriptor 64 The Vendor-Specific Files 65 The Ejb-jar File 65 Deploying the Bean 66 The Optional EJB Client JAR File 67 Understanding How to Call Beans 68 Looking up a Home Object 68 Running the System 72 The Server-Side Output 73 The Client-Side Output 73 Implementing Component Interfaces 73 A Solution 74 Summary 75 Part Two The Triad of Beans 77 Chapter 4 Introduction to Session Beans 79 Session Bean Lifetime 79 Session Bean Subtypes 80 Stateful Session Beans 80 Stateless Session Beans 81 Special Characteristics of Stateful Session Beans 83 Achieving the Effect of Pooling with Stateful Beans 83 The Rules Governing Conversational State 84 Activation and Passivation Callbacks 85 Method Implementation Summary 88 A Simple Stateful Session Bean 88 Life Cycle Diagrams for Session Beans 98 Summary 102 vi Contents 02_576828 ftoc.qxd 11/3/04 11:36 AM Page vi Chapter 5 Writing Session Bean Web Services 103 Web Services Concepts 103 Web Services Standards 106 XML Artifacts and Platform Independence 109 Implementing a Web Service 110 The JAX-RPC Service Endpoint Interface 111 WSDL and the XML/Java Mapping 113 Packaging and Deploying a Web Service Session Bean 113 Implementing a Web Service Client 114 Summary 117 Chapter 6 Introduction to Entity Beans 119 Persistence Concepts 119 Object-Relational Mapping 120 What Is an Entity Bean? 122 About the Files That Make Up an Entity Bean 124 Features of Entity Beans 125 Entity Beans Survive Failures 125 Entity Bean Instances Are a View into a Database 126 Several Entity Bean Instances May Represent the Same Underlying Data 127 Entity Bean Instances Can Be Pooled 128 There Are Two Ways to Persist Entity Beans 131 Creation and Removal of Entity Beans 132 Entity Beans Can Be Found 136 You Can Modify Entity Bean Data without Using EJB 136 Entity Contexts 137 getEJBLocalObject() / getEJBObject() 138 getPrimaryKey() 138 Summary 139 Chapter 7 Writing Bean-Managed Persistent Entity Beans 141 Entity Bean Coding Basics 141 Finding Existing Entity Beans: Finder Methods 143 Bean-Managed Persistence Example: A Bank Account 150 Account.java 151 AccountLocal.java 152 AccountHome.java 153 AccountLocalHome.java 155 AccountPK.java 156 AccountBean.java 158 AccountException.java 170 Client.java 171 The Deployment Descriptor 173 The Container-Specific Deployment Descriptor 175 Setting up the Database 175 Running the Client Program 175 Server-Side Output 175 Client-Side Output 177 Contents vii 02_576828 ftoc.qxd 11/3/04 11:36 AM Page vii Putting It All Together: Walking through a BMP Entity Bean’s Life Cycle 177 Summary 180 Chapter 8 Writing Container-Managed Persistent Entity Beans 181 Features of CMP Entity Beans 181 CMP Entity Beans Are Subclassed 181 CMP Entity Beans Have No Declared Persistent Fields 182 CMP Get/Set Methods Are Defined in the Subclass 184 CMP Entity Beans Have an Abstract Persistence Schema 186 CMP Entity Beans Have a Query Language 187 CMP Entity Beans Can Have ejbSelect() Methods 189 Implementation Guidelines for Container-Managed Persistence 191 Container-Managed Persistence Example: A Product Line 196 Product.java 197 ProductLocal.java 198 ProductHome.java 198 ProductLocalHome.java 200 ProductPK.java 201 ProductBean.java 203 The Deployment Descriptor 207 The Container-Specific Deployment Descriptor 210 Client.java 212 Running the Client Program 214 The Life Cycle of a CMP Entity Bean 214 Summary 216 Chapter 9 Introduction to Message-Driven Beans 217 Motivation to Use Message-Driven Beans 217 The Java Message Service 219 Messaging Domains 220 The JMS API 222 Integrating JMS with EJB 226 What Is a Message-Driven Bean? 227 Developing Message-Driven Beans 231 The Semantics 231 A Simple Example 234 Advanced Concepts 241 JMS Message-Driven Bean Gotchas 244 Message Ordering 245 Missed ejbRemove() Calls 245 Poison Messages 246 How to Return Results Back to Message Producers 249 The Future: Asynchronous Method Invocations 254 Summary 254 Chapter 10 Adding Functionality to Your Beans 255 Calling Beans from Other Beans 255 Default JNDI Lookups 256 Understanding EJB References 257 viii Contents 02_576828 ftoc.qxd 11/3/04 11:36 AM Page viii Resource Factories 259 Environment Properties 262 Understanding Handles 263 Home Handles 264 Summary 265 Part Three Advanced Enterprise JavaBeans Concepts 267 Chapter 11 EJB Best Practices 269 When to Use EJB 270 How to Choose a Web Application Framework to Work with EJB 272 Applying Model Driven Development in EJB Projects 275 Applying Extreme Programming in EJB Projects 277 Testing EJB 279 EJB Unit Testing 279 Use Frameworks for EJB Unit Testing 280 Implementing Client-Side Callback Functionality in EJB 282 JMS 282 Remote Method Invocation 283 Web Service 283 Choosing Between Servlets and Stateless Session Beans as Service Endpoints 284 Considering the Use of Aspect-Oriented Programming Techniques in EJB Projects 284 Aspect-Oriented Programming 285 When to Use AOP in EJB Applications 285 Reflection, Dynamic Proxy, and EJB 287 Deploying EJB Applications to Various Application Servers 288 Debugging EJB 290 Inheritance and Code Reuse in EJB 291 Writing Singletons in EJB 293 When to Use XML with EJB 293 When to Use Messaging Versus RMI-IIOP 294 Summary 297 Chapter 12 Transactions 299 Motivation for Transactions 300 Atomic Operations 300 Network or Machine Failure 301 Multiple Users Sharing Data 302 Benefits of Transactions 303 The ACID Properties 304 Transactional Models 306 Flat Transactions 306 Nested Transactions 308 Other Transactional Models 310 Enlisting in Transactions with Enterprise JavaBeans 310 Underlying Transaction System Abstraction 310 Declarative, Programmatic, and Client-Initiated Transactions 310 Choosing a Transaction Style 314 Contents ix 02_576828 ftoc.qxd 11/3/04 11:36 AM Page ix [...]... quickly into advanced topics We figured that the average developer has had enough of books that merely skim the surface We wanted to write a book that pushed beyond the basics Our approach when writing this book was always to err on the side of being advanced To achieve this, we did an immense amount of research We participated in the mailing lists, performed many real-world projects, attended conferences... gotten the logistics out of the way, let’s begin our exploration of Enterprise JavaBeans About the Authors Ed Roman is one of the world’s leading authorities on high-end middleware technologies He has been heavily involved with Sun Microsystems’ enterprise Java solutions from their inception and has designed, built, and deployed a variety of enterprise applications, including architecting and developing... construct server-side components in Java by leveraging a prewritten distributed infrastructure provided by the industry EJB is designed to support application portability and reusability across any vendor’s enterprise middleware services If you are new to enterprise computing, these concepts will be clarified shortly EJB is a complicated subject and thus deserves a thorough explanation In this chapter, we’ll... monitoring software that paged a system administrator if a catastrophe occurred ◆ Threading Now that you have many clients connecting to a server, that server is going to need the capability of processing multiple client requests simultaneously This means the server must be coded to be multithreaded ◆ Message-oriented middleware Certain types of requests should be message-based where the clients and servers... and servers are very loosely coupled You need infrastructure to accommodate messaging ◆ Object life cycle The objects that live within the server need to be cre- ated or destroyed when client traffic increases or decreases, respectively ◆ Resource pooling If a client is not currently using a server, that server’s precious resources can be returned to a pool to be reused when other clients connect This... books, we actually wanted to reduce the size of this book as much as possible So we’ve tightened things up and eliminated redundant examples This way, you can get to actually program with EJB, rather than read a book for months on end The irony of this story is that it was harder for us to write a shorter book than a long book! ■ ■ To be a book for developers This book is not intended for high-level businesspeople... nuggets of useful knowledge The following chapters are covered: ■■ ■■ Chapter 2 moves on to the fundamentals of building an EJB system, including the tricky concept of request interception We’ll also look at the various source code files that make up an enterprise bean ■■ ■ ■ Chapter 1 is a tour of enterprise computing We’ll talk about components, service-oriented architectures, distributed computing frameworks,... that needs to be addressed for serious server-side computing These services are needed in any business problem and in any vertical industry And each of these services requires a lot of thought and a lot of plumbing to resolve Together, these services are called middleware Overview Component Architectures It has been a number of years since the idea of multitier server-side deployments surfaced Since... servers have appeared on the market At first, each application server provided component services in a nonstandard, proprietary way This occurred because there was no agreed definition of what a component should be or how it should be provided with services or how should it interact with the application server The result? Once you bet on an application server, your code was locked into that vendor’s... architecture agreed-upon interfaces specified by component architecture 7 8 Chapter 1 Service-Oriented Architectures At the core of a service-oriented architecture lies the concept of service A simplistic definition of service is a group of related components that carry out a given business process function, for example transferring funds between banks or booking an itinerary A service-oriented architecture . +08'00' Ed Roman Rima Patel Sriganesh Gerald Brose Mastering Enterprise JavaBeans ™ Third Edition 01_576828 ffirs.qxd 11/3/04 11:36 AM Page i Mastering Enterprise JavaBeans™, Third Edition Published. 11/3/04 11:36 AM Page iii Credits iv Acquisitions Editor Robert M. Elliott Development Editor Sydney Jones Technical Editor Floyd Marinescu Copy Editor Michael Koch Editorial Manager Kathryn Malm. 46256 www.wiley.com Copyright © 2005 by Ed Roman, Gerald Brose, and Rima Patel Sriganesh Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 0-7645-7682-8 Manufactured in

Ngày đăng: 19/04/2014, 20:35

TỪ KHÓA LIÊN QUAN