j2ee6 tutorials 学习笔记
2012-02-22 11:03
288 查看
1.迎合分布式、交互式、提高速度、安全度和可靠性的服务器端技术的需要
2.J2EE目标是提供给开发者一个API的集合,用来减少开发时间和开发复杂度,提高程序性能
3.dependency injection能够施加于任何需要模块的代码中,
4.javaEE的组件:
应用客户端和小程序在客户端组件
javaservlet,javaserverfaces jsp组件在服务器端
enterprisejavabean组件时服务器端的企业组件
5.编写和编译中j2se和j2ee是一样的,与j2se不同的是j2ee被装配成j2ee程序
6. Client-tier components run on the client machine.
Web-tier components run on the Java EE server.
Business-tier components run on the Java EE server.
Enterprise information system (EIS)-tier software runs on the EIS server.
7.j2ee架构是基于组件和不依赖平台的,因为j2ee的业务逻辑是被组织成可复用的组件,因此j2ee程序是很容易编写的。j2ee以容器的形式为所有的组件类型提供潜在的服务。
8.xml是一个跨平台的,可扩展的,以文本为基础的表示数据的标准
9.Simple Object Access Protocol (SOAP);
http是一个在internet发送信息的请求应答协议,soap是一个遵循http请求应答模式的xml基础的协议。
The SOAP portion of a transported messagehandles the following:
Defines an XML-based envelope to describe what is in the message and howto process the message
Includes XML-based encoding rules to express instances ofapplication-defined data types within the message
Defines an XML-based convention for representing the request to theremote service and the resulting response
10.The Web Services Description Language(WSDL)是一个描述网络服务的标准化的xml格式
11.j2ee程序打包成一个或者多个标准化的单位在j2ee平台上发布,每个单位包括功能性的组件和描述性的组件两部分
12.j2ee程序在一个enterprise archive(ear)文件中传递,扩展名.ear。一个ear文件包括j2ee模块和发布描述。发布描述符是一个xml文件用来描述一些发布的配置。发布描述包括j2ee发布描述符和运行时发布描述符。j2ee模块包括四种:ejb模块、web模块、应用程序客户端模块、资源适配器模块。
13.开始和结束glassfish:
asadmin start-domain --verbose domain1
asadmin stop-domain domain1
glassfish控制台:
open a browser at http://localhost:4848/asadmin/.
On Windows, from the Start menu, choose:
Programs → Sun Microsystems → ApplicationServer PE 9 → Application Server
14.JSF:
JavaServer Faces (JSF) 是一种用于构建Java Web 应用程序的标准框架(是Java Community Process 规定的JSR-127标准)。它提供了一种以组件为中心的用户界面(UI)构建方法,从而简化了Java服务器端应用程序的开发。由于由Java CommunityProcess (JCP) 推动,属于Java EE 5中的技术规范,而受到了厂商的广泛支持。
15.web应用程序有两种
presentation-oriented:生成多种标记语言的交互式页面和动态的内容
Service-oriented:网络服务的终端
16.packaging applications:
一个java ee程序被装载成jar(java archive)文件或war(web archive)文件,或者ear(enterprise archive)文件
17.JavaServerTM Faces Technology
jsf最大的优点是为行为和描述提供了一个明显的分离
18.Facelets是一个强有力的但是轻量级的页面声明语言,使用HTML模型来构建jsf视图并且构建组件树,特点有:XHTML构建web页面、除了jsf标签和jstl标签还支持faccelets标签、支持统一标示语言、组件和页面模板。
19.expression language:${customer.name} #{customer.name} ${customer}
20.Using Annotations<p201>
The @ManagedBean annotation in a classautomatically registers that class as a managed beanclass with the serverruntime. Such a registered managed bean does not need<managed-bean>configuration entries in the application configurationresource file.
21.导航配置
<navigation-rule>
<from-view-id>/logon.jsp</from-view-id>
<navigation-case>
<from-action>#{LogonForm.logon}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/storefront.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{LogonForm.logon}</from-action>
<from-outcome>failure</from-outcome>
<to-view-id>/logon.jsp</to-view-id>
</navigation-case>
</navigation-rule>
22.SOAP:简单对象访问协议
23.enterprise bean p281
enterprise bean 是实现enterprise java bean技术的java ee组件,在ejb容器中运行,enterprise bean是一个服务器端的组件,用java语言将逻辑方法组装成一个应用程序。
EB包括session和message-driven两种类型
stateful session bean:跟客户端一对一的,一直保持到客户端断开连接。
stateless session bean:跟调用是一对一的,一直保持到某个调用的结束。相对来说,相同数目时,statelesssession bean能支持更多的客户端的访问需求。
message-driven bean 可以让java ee程序异步地处理消息,能够通过java ee组件、jms程序来发送,能够处理jms消息和其他种类的消息。
session和message-driven两者最明显的区别是客户端不会使用用户界面来调用message-driven bean,一个message-bean只有一个bean文件。客户端可以通过jms发送信息调用message-driven bean,当这个message-driven bean是一个messageListener。
P351
2.J2EE目标是提供给开发者一个API的集合,用来减少开发时间和开发复杂度,提高程序性能
3.dependency injection能够施加于任何需要模块的代码中,
4.javaEE的组件:
应用客户端和小程序在客户端组件
javaservlet,javaserverfaces jsp组件在服务器端
enterprisejavabean组件时服务器端的企业组件
5.编写和编译中j2se和j2ee是一样的,与j2se不同的是j2ee被装配成j2ee程序
6. Client-tier components run on the client machine.
Web-tier components run on the Java EE server.
Business-tier components run on the Java EE server.
Enterprise information system (EIS)-tier software runs on the EIS server.
7.j2ee架构是基于组件和不依赖平台的,因为j2ee的业务逻辑是被组织成可复用的组件,因此j2ee程序是很容易编写的。j2ee以容器的形式为所有的组件类型提供潜在的服务。
8.xml是一个跨平台的,可扩展的,以文本为基础的表示数据的标准
9.Simple Object Access Protocol (SOAP);
http是一个在internet发送信息的请求应答协议,soap是一个遵循http请求应答模式的xml基础的协议。
The SOAP portion of a transported messagehandles the following:
Defines an XML-based envelope to describe what is in the message and howto process the message
Includes XML-based encoding rules to express instances ofapplication-defined data types within the message
Defines an XML-based convention for representing the request to theremote service and the resulting response
10.The Web Services Description Language(WSDL)是一个描述网络服务的标准化的xml格式
11.j2ee程序打包成一个或者多个标准化的单位在j2ee平台上发布,每个单位包括功能性的组件和描述性的组件两部分
12.j2ee程序在一个enterprise archive(ear)文件中传递,扩展名.ear。一个ear文件包括j2ee模块和发布描述。发布描述符是一个xml文件用来描述一些发布的配置。发布描述包括j2ee发布描述符和运行时发布描述符。j2ee模块包括四种:ejb模块、web模块、应用程序客户端模块、资源适配器模块。
13.开始和结束glassfish:
asadmin start-domain --verbose domain1
asadmin stop-domain domain1
glassfish控制台:
open a browser at http://localhost:4848/asadmin/.
On Windows, from the Start menu, choose:
Programs → Sun Microsystems → ApplicationServer PE 9 → Application Server
14.JSF:
JavaServer Faces (JSF) 是一种用于构建Java Web 应用程序的标准框架(是Java Community Process 规定的JSR-127标准)。它提供了一种以组件为中心的用户界面(UI)构建方法,从而简化了Java服务器端应用程序的开发。由于由Java CommunityProcess (JCP) 推动,属于Java EE 5中的技术规范,而受到了厂商的广泛支持。
15.web应用程序有两种
presentation-oriented:生成多种标记语言的交互式页面和动态的内容
Service-oriented:网络服务的终端
16.packaging applications:
一个java ee程序被装载成jar(java archive)文件或war(web archive)文件,或者ear(enterprise archive)文件
17.JavaServerTM Faces Technology
jsf最大的优点是为行为和描述提供了一个明显的分离
18.Facelets是一个强有力的但是轻量级的页面声明语言,使用HTML模型来构建jsf视图并且构建组件树,特点有:XHTML构建web页面、除了jsf标签和jstl标签还支持faccelets标签、支持统一标示语言、组件和页面模板。
19.expression language:${customer.name} #{customer.name} ${customer}
20.Using Annotations<p201>
The @ManagedBean annotation in a classautomatically registers that class as a managed beanclass with the serverruntime. Such a registered managed bean does not need<managed-bean>configuration entries in the application configurationresource file.
21.导航配置
<navigation-rule>
<from-view-id>/logon.jsp</from-view-id>
<navigation-case>
<from-action>#{LogonForm.logon}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/storefront.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{LogonForm.logon}</from-action>
<from-outcome>failure</from-outcome>
<to-view-id>/logon.jsp</to-view-id>
</navigation-case>
</navigation-rule>
22.SOAP:简单对象访问协议
23.enterprise bean p281
enterprise bean 是实现enterprise java bean技术的java ee组件,在ejb容器中运行,enterprise bean是一个服务器端的组件,用java语言将逻辑方法组装成一个应用程序。
EB包括session和message-driven两种类型
stateful session bean:跟客户端一对一的,一直保持到客户端断开连接。
stateless session bean:跟调用是一对一的,一直保持到某个调用的结束。相对来说,相同数目时,statelesssession bean能支持更多的客户端的访问需求。
message-driven bean 可以让java ee程序异步地处理消息,能够通过java ee组件、jms程序来发送,能够处理jms消息和其他种类的消息。
session和message-driven两者最明显的区别是客户端不会使用用户界面来调用message-driven bean,一个message-bean只有一个bean文件。客户端可以通过jms发送信息调用message-driven bean,当这个message-driven bean是一个messageListener。
P351
相关文章推荐
- 【JAVA学习笔记】总结学习J2EE中一些值得研究的开源项目(转)
- J2EE学习(2)--何謂容器【良葛格学习笔记搬】
- 【J2EE核心开发学习笔记 011】Struts2常用开发技能
- J2EE系列之MyBatis学习笔记(四)-- mybatis关系映射(一对一映射)
- J2EE学习笔记--request对象
- J2EE学习笔记:安装ZIP版tomcat(转)
- J2EE学习笔记——MVC模式的用户管理系统(一)
- Oracle 10g JDeveloper与J2EE实战演练(学习笔记)
- J2EE学习笔记--Tomcat知识点
- 【J2EE核心开发学习笔记001】通过JDBC进行简单的增删改查(以MySQL为例)
- J2EE Servlet 学习笔记
- J2EE学习笔记(三)
- 扬扬的J2EE学习笔记(四)Platform Services平台服务
- 【J2EE核心开发学习笔记 012】Struts2文件的上传与下载
- J2EE与中间件 学习笔记2 Web组件 Servlet过滤器 监听器
- J2EE与中间件 学习笔记1 JDBC Session Servlet
- J2EE jboss lomboz 学习笔记
- J2EE系列之MyBatis学习笔记(九)-- 杂项
- 学习第一个J2EE项目笔记-1
- J2EE轻量级框架--3.24学习笔记