站内搜索: 请输入搜索关键词

当前页面: 开发资料首页J2EE 专题扬扬的J2EE学习笔记(二)J2EE的客户端/服务器

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

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

每周学一些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)
◆简单、可伸缩的安全模型



↑返回目录
前一篇: 基于 J2EE 的企业应用系统 - 工具一览表
后一篇: J2EE架构的6个最佳实践