Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 77 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
77
Dung lượng
1,05 MB
Nội dung
[...]... 5 51 5 51 553 554 563 564 566 597 599 599 60 0 60 0 60 1 60 1 60 2 60 6 61 0 61 0 61 0 61 1 61 9 61 9 61 9 62 1 62 3 Contents Chapter 13 : Java Security Java Cryptography Architecture and Java Cryptography Extension (JCA/JCE) 62 5 62 5 JCA Design and Architecture Java Cryptography Extension 62 6 65 6 Program Security Using JAAS 66 6 User Identification Executing Code with Security Checks Authorization Summary Chapter 14 :... Enterprise JavaBeans Inspecting Enterprise Archives The EAR Descriptor File Deployment Scenario Jumping into Java Web Start Examining the TicTacToe Example Summarizing Java Web Start Using Ant with Web Archives Installing Ant Building Projects with Ant 66 7 66 8 67 2 67 3 67 5 67 5 68 0 68 1 68 1 68 4 68 5 68 6 69 0 69 1 69 1 69 2 69 3 69 4 69 4 69 5 69 6 69 8 69 9 700 700 702 702 709 709 709 710 Summary 713 Index 715 xiii... Summary Chapter 10 : EJB 3 and the Java Persistence API New Features Java Persistence API (JPA) Entities Query Language EntityManager What Are Session Beans? The Demise of Entity Beans? Interceptors EJB 3 and Java Persistence API Web Component Examples Summary 432 432 432 4 36 442 449 4 51 455 460 460 4 61 4 71 473 474 475 475 475 4 76 480 4 81 485 517 xi Contents Chapter 11 : Communicating between Java Components... 3 36 3 41 354 355 3 56 357 365 366 370 3 76 3 81 3 91 393 393 393 395 3 96 397 399 Contents Extending the Framework to Support Hibernate Preventing the Hanging Session Defining Your Domain Model Implementing Your Use Cases with Actions Developing Your Views Configuring Your Application Adapting to Changes Summary Chapter 9: Interacting with C/C++ Using Java Native Interface 402 403 405 412 415 422 424 4 26. .. derbytools.jar contains the ij tool itself: c:\Program Files \Java\ jdk1 .6. 0\db\lib\derby.jar c:\Program Files \Java\ jdk1 .6. 0\db\lib\derbytools.jar After your classpath is configured, start the tool and connect to the example database (toursdb) included with Derby: c:\ >java org.apache.derby.tools.ij ij version 10 .2 ij> connect ‘jdbc:derby:c:\Program Files \Java\ jdk1 .6. 0\db\demo\databases\toursdb’; ij> Don’t forget... real Java solutions using Java APIs and open source tools Professional Java JDK 6 Edition leaves the reader with a well-rounded survey of the professional Java development landscape, without losing focus in exhaustive coverage of individual APIs This book is the bridge between Java language texts, methodology books, and specialized Java API books For example, once you have mastered the basics of the Java. .. professional programming in Java Introducing Derby New to Java 6 is a lightweight database called Derby, a product of the Apache Database project Derby is a transactional, relational database and provides a small footprint on disk As of the July 13 , 20 06 release of the Java 6 JDK, Derby is installed (by default) in C:\Program Files \Java\ jdk1 .6. 0\db and includes the core libraries, demonstration programs,...Contents Annotating Existing Java Classes for Use with JAXB When to Use JAXB Where JAXB Fits in the JDK Summary Chapter 6: Persisting Your Application Using Databases 290 307 308 308 311 JDBC API Overview Setting Up Your Environment JDBC API Usage in the Real World 312 313 313 Understanding the Two-Tier Model Understanding the Three-Tier Model 313 314 Effectively Using JDBC 4.0 315 Overview Managing Connections... following compiler warnings: UncheckedExample .java: 16 : warning: unchecked assignment: java. util.Vector to java. util.Vector intVector = oldVector; // This causes an unchecked warning UncheckedExample .java: 18 : warning: unchecked method invocation: processIntVector (java. util.Vector ) in UncheckedExample is applied to (java. util.Vector) ue.processIntVector(oldVector);... Statements Utilizing Result Sets Advanced Concepts 315 3 16 318 328 333 Hibernate Hibernate Components Hibernate Example Summary Chapter 7: Developing Web Applications Using the Model 1 Architecture What Is Model 1? Why Use It? JSP 2.0 Overview Integrated Expression Language (EL) JSTL 1. 1 Overview Developing Your Web Application Visualizations with JSTL 1. 1 Developing Your Web Application Visualizations . Interface 12 9 Creating an Inheritance Loop 12 9 Important Java Patterns 13 1 Adapter 13 1 Model-View-Controller 13 4 Command 14 2 Strategy 1 46 Composite 15 0 Summary 15 4 02_77 71 06 ftoc.qxp 11 /28/ 06 10 :35. Integration Patterns 61 9 Processing Chain 61 9 Request-Reply 61 9 Split-Aggregate 62 1 Summary 62 3 02_77 71 06 ftoc.qxp 11 /28/ 06 10 :35 PM Page xii xiii Contents Chapter 13 : Java Security 62 5 Java Cryptography. index. ISBN -13 : 978-0-4 71- 77 710 -6 (paper/website) ISBN -10 : 0-4 71- 77 710 -2 (paper/website) 1. Java (Computer program language) I. Richardson, W. Clay, 19 76- QA 76. 73.J38P 762 3 2007 005 .13 ’3—dc22 20 060 32740 Trademarks: