Nicht aus der Schweiz? Besuchen Sie lehmanns.de

Pro Spring 2.5 (eBook)

eBook Download: PDF
2008 | 1st ed.
920 Seiten
Apress (Verlag)
978-1-4302-0506-7 (ISBN)

Lese- und Medienproben

Pro Spring 2.5 - Anirvan Chakraborty, Jessica Ditt, Aleksa Vukotic, Jan Machacek
Systemvoraussetzungen
46,00 inkl. MwSt
(CHF 44,90)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

Pro Spring 2 is the perfect, simple answer for your lightweight, alternative Java EE development needs! Put simply, this book brings J2EE/Java EE 'down to earth.' Without the hassles of using the EJB 3 specification and similar, you can build lighter, better-performing agile enterprise Java-based applications using Spring Framework 2. The Spring framework can also integrate other noteworthy and hot open source tools like Apache Struts, Hibernate, OpenJPA, GlassFish, and many more. You'll work through a real, scalable enterprise application and build it from the ground up with Spring, using all the multiple web views and frameworks.



Anirvan Chakraborty is a developer at Cake Solutions Limited. Since becoming a member of the Cake team in 2006, Anirvan has worked on the more complex projects, including the U.K. government knowledge management system. Anirvan is a contributor to Lucene integration in the Spring Modules project. Prior to joining Cake, Anirvan completed his master's degree in Internet software systems at the School of Computer Science, University of Birmingham, United Kingdom. When not programming, Anirvan enjoys following sports like Cricket and Formula One. He also enjoys reading detective novels and watching movies.
The move from so-called heavyweight architectures, such as Enterprise JavaBeans, toward lightweight frameworks, like Spring, has not stopped since Pro Spring was published by Rob Harrop and Jan Machacek in 2005; in fact, it's picked up pace. The Spring Framework remains the leader in this move and provides a platform on which you can build your own applications and services. Pro Spring 2.5 covers the new features of Spring 2.5, but moreover, it is focused on the best practices and core standards of contemporary Spring development. As members of the Spring development team at Cake Solutions, the author team brings extensive practical experience gained from working with Spring since version 1.0 and delivering successful systems on top of it. Learn the approaches that really matter in a professional, enterprise level environment, so you can apply them to your projects today, safe in the knowledge that they just work.

Anirvan Chakraborty is a developer at Cake Solutions Limited. Since becoming a member of the Cake team in 2006, Anirvan has worked on the more complex projects, including the U.K. government knowledge management system. Anirvan is a contributor to Lucene integration in the Spring Modules project. Prior to joining Cake, Anirvan completed his master's degree in Internet software systems at the School of Computer Science, University of Birmingham, United Kingdom. When not programming, Anirvan enjoys following sports like Cricket and Formula One. He also enjoys reading detective novels and watching movies.

Contents at a Glance 5
Contents 7
Foreword 20
About the Authors 21
About the Technical Reviewer 22
Acknowledgments 23
Introduction 24
Getting Started with Spring 25
Introducing Spring 26
What Is Spring? 26
The Spring Project 33
The Sample Code 35
Summary 35
Getting Started 36
Obtaining the Spring Framework 36
Hello, World 47
Putting Spring Into “ Hello, World” 50
Summary 53
Introducing Inversion of Control 54
IoC and DI 54
Types of IoC 55
IoC in Spring 62
DI with Spring 62
Summary 95
Beyond the Basics 96
Spring’s Impact on Application Portability 97
Bean Life Cycle Management 97
Making Your Beans Spring Aware 110
Using Method Injection 114
Using FactoryBean 123
The BeanFactoryPostProcessor 126
JavaBeans PropertyEditor 133
The BeanPostProcessor 141
The Spring ApplicationContext 148
Summary 168
Introducing Spring AOP 169
AOP Concepts 170
Types of AOP 171
AOP in Spring 171
Advisors and Pointcuts in Spring 191
All About Proxies 213
Summary 218
Advanced AOP 220
@ AspectJ 220
@ AspectJ Aspects in Detail 224
Framework Services for AOP 249
Which Style Should You Use? 261
Working with Spring AOP Proxies 262
AspectJ Integration 267
Load- Time Weaving 272
Practical Uses of AOP 275
Summary 278
Spring Schemas and Namespaces 280
Why the New Configuration? 280
Schemas Included in Spring 2.5 283
Behind the Schema Scenes 289
Custom Schemas 291
IDE Configuration 295
Summary 298
Spring Patterns 299
Directory Structure 299
Design Patterns Introduction 302
Spring Application Patterns 313
Summary 335
Data Access 336
JDBC Support 337
Key JDBC Concepts 337
Concepts in Spring Data Access Support 345
JDBC Data Access Support 346
Using the JdbcTemplate 347
RdbmsOperation Subclasses 360
Large Binary Objects 376
JdbcDaoSupport 379
Simple Spring JDBC 382
Summary 389
iBATIS Integration 390
What Is iBATIS? 390
Mapping Files 392
Selecting Data 397
Updating Data 408
Deleting Data 410
Inserting Data 411
What’s Missing from iBATIS? 414
Overall Performance 414
Summary 415
Hibernate Support 416
Hibernate Primer 416
Packaging 417
Introduction to Hibernate Support 418
Using Hibernate in Enterprise Applications 430
Summary 458
Enterprise Application Components 459
Job Scheduling with Spring 460
Scheduling Jobs Using JDK Timer 461
Scheduling Jobs Using OpenSymphony Quartz 470
Job Scheduling Considerations 485
Summary 490
Mail Support in Spring 491
The Spring Mail API Structure 493
Sending Simple E- mails 493
Summary 523
Dynamic Languages 524
Supported Languages Primer 524
Using Dynamic Languages As Spring Beans 528
Refreshable Beans 534
BeanShell Beans 536
JRuby Beans 538
Groovy Beans 539
Typical Usage for Dynamic Languages in Spring Applications 539
Summary 543
Java EE 5 544
Using Spring Remoting 545
Spring Remoting Architecture 547
Remote Method Invocation 547
Web Services with JAX- RPC 556
Using JAX- WS Web Services 568
Creating Web Services with HTTP Invoker 575
Choosing a Remoting Architecture 585
Summary 586
Transaction Management 587
Exploring the Spring Transaction Abstraction Layer 587
Analyzing Transaction Properties 588
Exploring a Transaction Management Sample 591
Programmatic Transaction Management 600
Declarative Transaction Management 603
AOP Transaction Management 606
Working with Transactions Over Multiple Transactional Resources 611
Implementing Your Own Transaction Synchronization 613
Summary 622
Web Applications with Spring MVC 623
MVC Architecture 623
Spring MVC 625
Using Handler Mappings 626
Spring Controllers 628
Interceptors 633
Views, Locales, and Themes 634
Command Controllers 645
Handling Exceptions 659
Spring and Other Web Technologies 662
Spring Conventions Over Configuration 713
Using Annotations for Controller Configuration 717
Summary 721
Spring Web Flow 723
Introducing Spring Web Flow 724
Hello, Web Flow! 731
Exploring States 735
Working with Transitions 737
Advanced Concepts 739
Spring Web Flow Behind the Scenes 750
Integration with Spring MVC 758
Securing Flows with Spring Security 759
Problem Solver 764
Testing Flow Definitions 765
Summary 766
Spring and AJAX 768
DWR 769
Installing DWR 769
Spring Configuration for DWR 769
About the Complete Example 771
Testing the DWR Configuration 775
Running the Complete Example 776
DWR Scripting Basics 777
engine. js 778
util. js 779
Security in DWR 779
Advantages and Disadvantages of DWR 781
Summary 781
JMX with Spring 782
JMX Refresher 782
Exposing Your Beans 783
Controlling Object Names 787
Controlling the Management Interface 788
Remoting with Spring JMX 796
Notifications in Spring JMX 798
Summary 803
Testing with Spring 804
Unit Testing 804
Unit Tests 806
Integration Tests 811
Spring TestContext Framework 830
Test Coverage 837
Summary 838
Spring Performance Tuning 839
Performance vs. Responsiveness 839
Exploring Enterprise Application Performance Issues 840
Measuring Java EE Application Performance 840
Using Caching 859
Performance Testing 861
Monitoring Application Health and Performance 863
More Resources on Performance Tuning 865
Summary 865
Index 866

Erscheint lt. Verlag 24.9.2008
Zusatzinfo 920 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Informatik Programmiersprachen / -werkzeuge Java
Mathematik / Informatik Informatik Web / Internet
Schlagworte Apache • CAKE • Control • Eclipse • Framework • Java • Java EE • JSP • Management • Performance • programming
ISBN-10 1-4302-0506-7 / 1430205067
ISBN-13 978-1-4302-0506-7 / 9781430205067
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 8,5 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Einführung, Ausbildung, Praxis

von Christian Ullenboom

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 36,55
Moderne GUIs für RIAs und Java-Applikationen

von Ralph Steyer

eBook Download (2022)
Springer Fachmedien Wiesbaden (Verlag)
CHF 41,95