上篇文章对Java的基本概念作了简要总结(http://www.cnblogs.com/2018/archive/2011/04/05/1993163.html),本文把对java EE的学习过程总结一下。

基础

https://javaeetutorial.dev.java.net/files/documents/7232/141115/javaeetutorial6.zip

这个里面有介绍文档和例子代码,这些例子在netbeans可直接打开,参考文档部署和运行

这个文档介绍了整个Java EE的基本概念和示范例子,熟悉这个基本对Java EE的概念就比较了解了。

Java EE的基本概念

实际的开发中,只要理解了下面的几个图表和规范,只要针对具体的规范和标准进行学习即可。因为本身Java EE规范范围很大,我们实际中用的只是其中的部分。

【以下是做的一些图书资料记录,我认为很重要】

Java EE is based on standards.

Containers are Java EE runtime environments that provide certain services to the components they host such as life-cycle management, dependency injection, and so on. These components use well-defined contracts to communicate with the Java EE infrastructure and with the other components.

 

containers

Applet containers are provided by most web browsers to execute applet components. When you develop applets, you can concentrate on the visual aspect of the application while the container givesou a secure environment. The applet container uses a sandbox security model where code executed inhe “sandbox” is not allowed to “play outside the sandbox.” This means that the container prevents anyode downloaded to your local computer from accessing local system resources, such as processes oriles.

The application client container (ACC) includes a set of Java classes, libraries, and other files required to bring injection, security management, and naming service to Java SE applications (Swing,atch processing, or just a class with a main() method). ACC communicates with the EJB container usingRMI-IIOP and the web container with HTTP (e.g., for web services).

The web container provides the underlying services for managing and executing web componentsservlets, EJBs Lite, JSPs, filters, listeners, JSF pages, and web services). It is responsible for instantiating,nitializing, and invoking servlets and supporting the HTTP and HTTPS protocols. It is the containersed to feed web pages to client browsers.

The EJB container is responsible for managing the execution of the enterprise beans containing theusiness logic tier of your Java EE application. It creates new instances of EJBs, manages their life cycle, and provides services such as transaction, security, concurrency, distribution, naming service, or theossibility to be invoked asynchronously.

Services

Containers provide underlying services to their deployed components.

Java Transaction API (JTA): This service offers a transaction demarcation API usedby the container and the application. It also provides an interface between thetransaction manager and a resource manager at the Service Provider Interface(SPI) level.

Java Persistence API (JPA): Standard API for object-relational mapping (ORM). With its Java Persistence Query Language (JPQL), you can query objects stored in the underlying database.

Validation: Bean Validation provides a class level constraint declaration and validation facility.

Java Message Service (JMS): This allows components to communicate asynchronously through messages. It supports reliable point-to-point (P2P) messaging as well as the publish-subscribe (pub-sub) model.

Java Naming and Directory Interface (JNDI): This API, included in Java SE, is used to access naming and directory systems. Your application uses it to associate (bind) names to objects and then to find these objects (lookup) in a directory. You can look up datasources, JMS factories, EJBs, and other resources. Omnipresent in your code until J2EE 1.4, JNDI is used in a more transparent way through injection.

JavaMail: Many applications require the ability to send e-mails, which can be implemented through use of the JavaMail API.

JavaBeans Activation Framework (JAF): The JAF API, included in Java SE, provides a framework for handling data in different MIME types. It is used by JavaMail.

XML processing: Most Java EE components can be deployed with optional XML deployment descriptors, and applications often have to manipulate XML documents. The Java API for XML Processing (JAXP) provides support for parsing documents with SAX and DOM APIs, as well as for XSLT. The Streaming API for XML (StAX) provides a pull-parsing API for XML.

• Java EE Connector Architecture (JCA): Connectors allow you to access EIS from a Java EE component. These could be databases, mainframes, or Enterprise Resource Planning (ERP) programs.

• Security services: Java Authentication and Authorization Service (JAAS) enables services to authenticate and enforce access controls upon users. The Java Authorization Service Provider Contract for Containers (JACC) defines a contract between a Java EE application server and an authorization service provider, allowing custom authorization service providers to be plugged into any Java EE product.

• Web services: Java EE provides support for SOAP and RESTful web services. The Java API for XML Web Services (JAX-WS), replacing the Java API for XML-based RPC (JAX-RPC), provides support for web services using the SOAP/HTTP protocol. The Java API for RESTful Web Services (JAX-RS) provides support for web services using the REST style.

• Dependency injection: Since Java EE 5, some resources (datasources, JMS factories, persistence units, EJBs…) can be injected in managed components. Java EE 6 goes further by using CDI (Context and Dependency Injection) as well as the DI (Dependency Injection for Java) specifications.

• Management: Java EE defines APIs for managing containers and servers using a special management enterprise bean. The Java Management Extensions (JMX) API is also used to provide some management support.

• Deployment: The Java EE Deployment Specification defines a contract between deployment tools and Java EE products to standardize application deployment.

参考资料

Java EE 6规范中文版.chm

Java+EE+6+API+Specifications.CHM

javadocee6.zip

servlet-2_3-fcs-docs.zip

javaeetutorial6.zip[The Java EE 6Tutorial]

The Java EE 6 Tutorial Basic Concepts, 4th Edition

Beginning Java EE 6 with GlassFish 3, 2nd Edition

这些资料在网上都可以找到

例子实战

http://netbeans.org/kb/docs/javaee/ecommerce/design.html

很实用的一个例子,覆盖了多个方面的内容,理解了这个基本对如何实施一个Java EE的项目就有一个比较清晰的概念了。

Java EE发展了十几年,相关的资料和开源框架等浩如烟海,我们只要把握这些基础的概念,然后结合相应的实例学习和开发改造,在项目中就可以顺利应用了。

转载于:https://www.cnblogs.com/2018/archive/2011/04/06/1993157.html

.net人员用Java 之Java EE相关推荐

  1. JAVA SE、EE、ME,JRE、JDK,基本数据类型,访问修饰符、函数、封装的概念、UML类图、构造方法、this关键字、static关键字、方法重载、方法重写、包(packahe)

    运行第一个JAVA程序: 这里使用的开发环境是eclipse,新建一个java工程,然后可以看到src这个是存放java代码的地方,然后在src文件右击新建一个class(类),然后可以看到下图,同样 ...

  2. java与java ee_Java EE 8怎么了?

    java与java ee Java EE 8的工作进展顺利. 是时候赶上了! 无需费力就可以潜入- 不要忘记Java EE 7-.. 围绕三个重要主题 HTML 5对齐–用于WebSocket的Jav ...

  3. java与java ee_RxJava + Java8 + Java EE 7 + Arquillian =幸福

    java与java ee 微服务是一种体系结构样式,其中每个服务都实现为一个独立的系统. 他们可以使用自己的持久性系统(尽管不是强制性的),部署,语言等. 由于系统由一个以上的服务组成,因此每个服务将 ...

  4. java与java ee_Java EE 7社区调查结果!

    java与java ee 在JSR 342下可以继续进行Java EE 7的工作.一切都在顺利进行,Java EE 7现在处于早期草稿审查阶段. 在11月初, Oracle发布了一个有关即将推出的Ja ...

  5. java 开发人员工具_每个Java开发人员都应该知道的10个基本工具

    java 开发人员工具 大家好,我们已经到了2019年的第二个月,我相信你们所有人都已经制定了关于2019年学习以及如何实现这些目标的目标. 我一直在撰写一系列文章,为您提供一些知识,使您可以学习和改 ...

  6. java与java ee_Java EE MVC:处理表单验证

    java与java ee 在本文中,我们将介绍Java EE MVC中的表单验证. Java EE MVC与Java Bean验证API( JSR 303 )集成在一起,这使得添加验证约束变得非常容易 ...

  7. java与java ee_Java EE 8 MVC:全局异常处理

    java与java ee 在之前的先前文章中,我们了解了在Java EE MVC中访问请求信息(例如查询或路径参数 )的各种方法. 这篇文章显示了如何将全局异常处理应用于MVC应用程序. 假设我们有一 ...

  8. java与java ee_Java EE拦截器

    java与java ee 历史 我认为重要的是要看一下Java EE中Interceptor的发展,因为它是从EJB特定的项目开始的,后来又演变成一个单独的规范,现在可供其他Java EE规范扩展,这 ...

  9. java与java ee_计划Java EE 7批处理作业

    java与java ee Java EE 7添加了使用JSR 352以标准方式执行批处理作业的功能. <job id="myJob" xmlns="http://x ...

  10. java与java ee_使用Java EE的ManagedExecutorService异步执行事务

    java与java ee 自Java EE 7规范发布以来已经过去了一年. 现在,Wildfly 8 Final已发布,现在是时候仔细看看这些新功能了. 自Java EE诞生以来,缺少的一件事就是能够 ...

最新文章

  1. 端口镜像 流量过滤_技术盛宴 | 流量可视化之ERSPAN的前世今生
  2. 下图为双总线结构机器的数据通路_PDPS机器人虚拟调试 弧焊仿真 第一课 弧焊项目创建...
  3. 安装后添加没有class library_《没有秘密的你》:戚薇曝光手机号,粉丝急忙添加后却甜哭了?...
  4. [Leedcode][JAVA][第470题][Ran7()实现Rand10()]
  5. 苹果6s强制删除id锁_苹果手机丢了怎么找回?
  6. eclipse+java+selenium+testNG搭建自动化测试框架
  7. c/c++ 中文件路径的表示
  8. Java中SimpleDateFormat用法详解
  9. 开机未发现nvidia控制面板_电脑没有NVIDIA控制面板怎么办
  10. ArcGIS地图制图教程——超详细
  11. cannot set options after executing query
  12. vue使用甘特图(实现树形结构/一条数据显示双时间轴)
  13. 提高电脑运行速度WIN7
  14. Linux 简介 ------ 带你简单了解Linux
  15. 核磁共振设备工作过程人体温度监控中应用的光纤温度传感器
  16. 图扑软件数字孪生汽车生产线,赋能智慧工厂科学运维
  17. zmud之潜能武学技能计算器。
  18. ACM比赛中如何加速c++的输入输出
  19. c语言累加和校验_循环冗余校验(CRC)算法入门
  20. JavaScript小项目之BMI值计算

热门文章

  1. R语言︱R社区的简单解析(CRAN、CRAN Task View)
  2. WINDOWS平台上扩展SGA,把你的内存用起来吧
  3. 一款超级实用的SuperLayout
  4. Service Mesh-Linkerd安装与使用
  5. 浅谈php之设计模式基础
  6. 关于【cocos2dx-3.0beta-制作flappybird】教程在3.2project中出现找不到CCMenuItem.h的解决方法...
  7. 出现( linker command failed with exit code 1)错误总结
  8. Ubuntu12.04安装配置Nginx Tomcat环境
  9. 开源.NET(C#、VB.NET、J#等)脚本执行引擎(利用CodeDOM)
  10. Android 学习资源收集