您的位置:首页 > 其它

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

2005-04-07 18:38 537 查看
每周学一些J2EE,作点笔记。


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


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







图3 J2EE情景模式
图三里须注意的是:

1、Tier integration is the center of the J2EE programming model.
J2EE编程模式的中心思想是多层集成。
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)
◆简单、可伸缩的安全模式
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: