• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

agoncal/agoncal-book-javaee7: Code of my Java EE 7 Book

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

agoncal/agoncal-book-javaee7

开源软件地址:

https://github.com/agoncal/agoncal-book-javaee7

开源编程语言:

Java 94.8%

开源软件介绍:

Beginning Java EE 7

![Build Status][travis-image]

Structure of the book

Section 1 - Introduction

  • Chapter 1 - Java EE 7 Environment

Section 2 - Cross concerns

  • Chapter 2 - Context & Dependency Injection
  • Chapter 3 - Bean Validation

Section 3 - Building a domain model

  • Chapter 4 - Persistence
  • Chapter 5 - Object-Relational Mapping
  • Chapter 6 - Managing Persistent Object

Section 4 - Implementing business logic

  • Chapter 7 - Enterprise Java Beans
  • Chapter 8 - Callback & Timer Service
  • Chapter 9 - Transactions

Section 5 - Adding a web & user interface

  • Chapter 10 - JavaServer Faces
  • Chapter 11 - Processing & Navigation

Section 6 - Interoperability

  • Chapter 12 - XML & JSON
  • Chapter 13 - Messaging
  • Chapter 14 - SOAP Web Services
  • Chapter 15 - RESTful Web Service

Structure of the code and Maven modules

The code used in the book is defined in the following sub-directories :

  • Chapter02 : Introduction to JPA 2.0
  • Chapter03 : JPA Mapping
  • Chapter04 : JPA Entity Manager and JPQL
  • Chapter05 : JPA Lifecycle and Listeners
  • Chapter06 : Introduction to EJB 3.1
  • Chapter07 : Session beans
  • Chapter08 : EJB Lifecycle and Interceptors
  • Chapter09 : Transactions and security
  • Chapter10 : Introduction to JSF 2.0
  • Chapter11 : JSF Pages and components
  • Chapter12 : Processing & JSF Navigation
  • Chapter19 : JMS Sender
  • Chapter19-MDB : JMS Message Driven Bean
  • Chapter21-Consumer : SOAP Web service consumer
  • Chapter21-Service : SOAP Web service
  • Chapter22-Resource : RESTful Web service

To compile, package and execute the code you need the following software :

Java EE 7 Specifications

Java Enterprise Edition Specification

Web Services Specifications

Web Specifications

Enterprise Specifications

Management, Security, and other specifications

Related Enterprise Technologies in Java SE 7

Licensing

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Book - Beginning Java EE 6 with Glassfish Antonio Goncalves

--

Other

The test clases of this chapter, by default, use the Embedded mode of Derby (JavaDB). That means that the persistence.xml file defines a persistent unit with the folowing JDBC Driver

<property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
<property name="javax.persistence.jdbc.url" value="jdbc:derby:chapter05DB;create=true"/>

Embedded mode is good for testing, but it means that no database is really created, so you can't browse its structure with a tool. If you can to be able to browse the database structure, you need to change the embedded mode to a client/server implementation that uses the Derby Network Server. For that, you'll have to do the following steps :

  1. Install Derby. You must download the distribution and extract the package (http://db.apache.org) into DERBY_HOME directory. Add %DERBY_HOME%\bin to your PATH and run the sysinfo command line to display information about your Java environment and your version of Derby.

  2. Start Derby server with the following command : java -jar %DERBY_HOME%\lib\derbyrun.jar server start (or startNetworkServer.bat)

  3. Change the JDBC driver and url in your persistence.xml file :

  4. Run the test with Maven : mvn clean test

  5. Once finished, shutdown the database with : java -jar %DERBY_HOME%\lib\derbyrun.jar server shutdown (or stopNetworkServer.bat)




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
oracle/helidon: Java libraries for writing microservices发布时间:2022-06-22
下一篇:
rovo89/XposedBridge: The Java part of the Xposed framework.发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap