扬扬的J2EE学习笔记(二)J2EE的客户端/服务器

王朝网络·java/jsp·作者佚名  2006-01-09
宽屏版  字体: |||超大  

每周学一些J2EE,作点笔记。

目标:能熟练使用Websphere做J2EE的开发工作。

加油!加油!!加油!!!

图3 J2EE场景

图三里须注意的是:

1、Tier integration is the center of the J2EE programming model.

2、用户使用Browser方式访问:

1) Browser:使用HTML,HTTP,XML。可能经过防火墙

2) Web container:使用JSP,Servelet,XML,JavaMail

3) EJB container:使用Back-end Enterprise Beans,JMS,JTA,JDBC(or connectors)

4) EIS Resources

3、用户使用Stand-alone Client方式访问:

1) Stand-alone Client使用J2SE HTML HTTP XML访问Web Container,可通过Web Container访问EJB Container,再访问EIS Resources

2) Stand-alone Client可直接访问EJB Container;也可直接访问EIS Resources

3) Stand-alone client may be written in another language.stand-alone client是可以用其它语言编写的。

4) Consider three types of stand-alone clients可以有三种类型的Stand-alone Client:

※ EJB client interacting directly with an EJB server EJB客户端直接与EJB服务器交互

※ Stand-alone Java application clients accessing enterprise information system(EIS) resources directly(may using JDBC or connectors) Stand-alone Java程序客户端直接访问企业信息系统(EIS),可能使用JDBC及连接器

※ Visual Basic clients consuming dynamic web content 使用动态web内容的VB客户端

◎ In the form of XML data messages 以XML数据的形式

图4 以WEB为中心

图四里须注意的是:

1、以WEB为中心的结构下,此时没有EJB Container

2、Browser可使用技术与图三类似;但Web Container使用技术比图三少了个JavaMail

3、WEB容器可使用JDBC直接访问EIS,以后也可能如图三般使用连接器connectors访问EIS

图5 Model-View-Controller Process

Summary总结:

◆Java 2 Platform

◆Set of standards that streamline

●Developent

●Deployment

●Management of enterprise application

◆Application written for the J2EE platform will run on any J2EE-compatible server

◆ J2EE的优点:

◆简易的开发模型

◆兼容性好

◆可支持已有的系统

◆服务器多样性

◆开发工具多样性

◆元件多样性(components)

◆简单、可伸缩的安全模型

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有