正在加载图片...
CONTENTS 1.4 Renaissance of EJB 23 d of depl POJO components 29.EJB 5 and Spring 50 1.5 Summary 32 A first taste of EJB 33 2.1 New features:simplifying EJB 35 ing dependency injection 40 2.2 Introducing the ActionBazaar application 41 Starting with the architecture 42.An E[B 3-based solution 43 2.3 Building business logic with session beans 45 Using stateless beans 45The stateless bean client 47 Using stateful beans 50"A stateful bean client 54 2.4 Messaging with message-driven beans 56 Producing a billing message 57.Using the order billing message processor MDB 59 2.5 Persisting data with EJB 3 JPA 61 2.6 Summary 67 PART 2 BUILDING BUSINESS LOGIC WTTH EJB 3..................69 3 Building business logic with session beans 71 3.1 Getting to know session beans 72 Why use session beans?73.Session beans:the basics 75 Understanding the programming rules 78.Conversational state and session bean types 79.Bean lifecycle callbacks 79 3.2 Stateless session beans 83 The BidManagerBean example 84.Using x CONTENTS 1.4 Renaissance of EJB 23 HelloUser Example 24 ■ Simplified programming model 25 ■ Annotations instead of deployment descriptors 26 ■ Dependency injection vs. JNDI lookup 27 ■ Simplified persistence API 27 ■ Unit-testable POJO components 29 ■ EJB 3 and Spring 30 1.5 Summary 32 2 A first taste of EJB 33 2.1 New features: simplifying EJB 35 Replacing deployment descriptors with annotations 35 ■ Introducing dependency injection 40 2.2 Introducing the ActionBazaar application 41 Starting with the architecture 42 ■ An EJB 3–based solution 43 2.3 Building business logic with session beans 45 Using stateless beans 45 ■ The stateless bean client 47 Using stateful beans 50 ■ A stateful bean client 54 2.4 Messaging with message-driven beans 56 Producing a billing message 57 ■ Using the order billing message processor MDB 59 2.5 Persisting data with EJB 3 JPA 61 Working with the Java Persistence API 62 ■ Using the EntityManager 65 2.6 Summary 67 PART 2 BUILDING BUSINESS LOGIC WITH EJB 3.................. 69 3 Building business logic with session beans 71 3.1 Getting to know session beans 72 Why use session beans? 73 ■ Session beans: the basics 75 Understanding the programming rules 78 ■ Conversational state and session bean types 79 ■ Bean lifecycle callbacks 79 3.2 Stateless session beans 83 The BidManagerBean example 84 ■ Using the @Stateless annotation 86 ■ Specifying bean business interfaces 87 ■ Using bean lifecycle callbacks 90
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有