楼主: justforregister

Is Tomcat enterprise ready?

[复制链接]
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
11#
 楼主| 发表于 2009-2-24 23:58 | 只看该作者
n a Java EE environment, specialized containers are designated to handle component isolation and resource sharing. These containers are, in turn, managed by the application server. Containers provide an isolated context wherein Java EE components are deployed and execute. Containers provide an abstraction layer between the components, ensuring that they seldom interact directly. Instead, components can use the protocols and APIs of the container to interface with each other and with other application services. This layer of abstraction enables containers to provide ancillary services required by the component, such as pooling, transaction management, and state management.

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
12#
 楼主| 发表于 2009-2-24 23:58 | 只看该作者
Web applications vs. enterprise applications                     Forsome, the confusion over Tomcat's definition points to the deeperquestion of what differentiates an enterprise application from a Webapplication. Traditionally, a Java enterprise application is defined asa combination of the following components and technologies:
                     
  • EAR files
  • Java Servlets
  • JavaServer Pages or JavaServer Faces
  • Enterprise JavaBeans (EJB)
  • Java Authentication and Authorization Service (JAAS)
  • J2EE Connector Architecture
  • JavaBeans Activation Framework (JAF)
  • JavaMail
  • Java Message Service (JMS)
  • Java Persistence API (JPA)
  • Java Transaction API (JTA)
  • The Java Management Extensions (JMX) API
  • Java API for XML Processing (JAXP)
  • The Java API for XML-based RPC (JAX-RPC)
  • The Java Architecture for XML Binding (JAXB)
  • The SOAP with Attachments API for Java (SAAJ)
  • Java Database Connectivity (JDBC) framework

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
13#
 楼主| 发表于 2009-2-24 23:59 | 只看该作者
A Java Web application, meanwhile, is said to combine a subset of Java enterprise application components and technologies, namely:                     
                     
  • WAR files
  • Java Servlets
  • JavaServer Faces or JavaServer Pages
  • Java Database Connectivity (JDBC) framework
                     Popularframeworks such as Apache Struts, Spring, Hibernate, and others haveobscured the traditional distinctions between Java enterprise and JavaWeb applications. Each new framework offers a slightly different viewof how to accomplish the same tasks. Each framework attempts to solve agiven set of challenges in a more efficient manner, possibly using adifferent set of underlying technologies.
                     Perhaps, this obscurity might be cleared up by observing the behavior of components deployed within different scenarios for                        a typical Java-based enterprise/Web application. These scenarios are discussed next.

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
14#
 楼主| 发表于 2009-2-24 23:59 | 只看该作者
Java EE application scenarios                     In atypical Java EE Web application, an HTML client posts a request to aserver where the request is handled by the Web container of theapplication server. The Web container invokes the servlet that isconfigured to handle the specific context of the request.
                     The initial HTML client request is illustrated in Figure 3.
                     
                     Figure 3. Initial HTML client request

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
15#
 楼主| 发表于 2009-2-24 23:59 | 只看该作者
Once the servlet has received the initial request, some form of request dispatching ensues in order to perform the necessary                        business logic for completing the request.                     
                     One or more business services or components are then invoked to perform business logic, as illustrated in Figure 4.
                     
                     Figure 4. Business services or components in the JEE architecture                     Mostbusiness services or components require access to some form of datastorage or information system. Oftentimes an abstraction layer betweenthe business service and the data store is provided in order to protectagainst future changes in the data store. DAOs (data access objects)are often employed as data abstraction components in this situation, asshown in Figure 5.

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
16#
 楼主| 发表于 2009-2-25 00:00 | 只看该作者
Figure 5.                                          
                     Figure 5. DAOs are invoked to perform business logic (click to enlarge)                     Whenthe DAO invocation step is complete, the response data is passed backup the chain of command, usually as one or more Java beans. The Javabeans are then passed to some type of state machine and/or view managerin order to organize and format the markup response.

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
17#
 楼主| 发表于 2009-2-25 00:00 | 只看该作者
When processing is complete for a given request, a formatted response is passed back to the HTML client, as illustrated in                        Figure 6.                     
                     
                     Figure 6. A response is passed back to the HTML client (click to enlarge)                     Thescenario depicted in Figure 6 can be implemented using a very limitedset of Java EE technologies, including servlets, JDBC, and JSP oranother view technology. Tomcat or any Web server providing a servletengine and JSP engine could be used as the app server in this scenario.

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
18#
 楼主| 发表于 2009-2-25 00:00 | 只看该作者
Scaling into complexity                     Now, supposewe add a requirement to the application for asynchronous messagingbetween business service components. In a Java-based system, this wouldtypically be handled using the Java Message Service (JMS), as shown inFigure 7.
                     
                     Figure 7. JMS handles asynchronous messaging between business service components (click to enlarge)                     MostWeb servers do not offer JMS as a standard feature, but it is simpleenough to add a JMS implementation to a Web server environment. So,once again, the application scenario depicted in Figure 7 could behandled quite easily with just a Web server providing a servlet engineand JSP engine.

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
19#
 楼主| 发表于 2009-2-25 00:00 | 只看该作者
Next, suppose we add the requirement for connectivity betweenbusiness services and disparate enterprise information systems. Java EEoffers the Java Connector Architecture as a common standard to meetthis challenge. Using the Java Connector Architecture, the applicationarchitecture evolves to something similar to what you see in Figure 8.
                     
                     Figure 8. JCA handles connectivity between business services and EISs (click to enlarge)                     Thearchitecture is now approaching a complexity that is arguably bettersuited for a Java EE application server. A Web server such as Tomcatcould possibly be used in combination with other frameworks to meet therequirements, but system management and monitoring complications mightmake the server/framework mix impractical.

使用道具 举报

回复
论坛徽章:
131
乌索普
日期:2017-09-26 13:06:30马上加薪
日期:2014-11-22 01:34:242014年世界杯参赛球队: 尼日利亚
日期:2014-06-17 15:23:23马上有对象
日期:2014-05-11 19:35:172014年新春福章
日期:2014-04-04 16:16:58马上有对象
日期:2014-03-08 16:50:54马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
20#
 楼主| 发表于 2009-2-25 00:01 | 只看该作者
Finally, Figure 9 presents a moderately complex, Java-based, service-oriented architecture employing all of the technologies                        discussed so far, along with communication between multiple WAR deployments, EJBs, and Web services.                     
                     
                     Figure 9. A moderately complex service-oriented architecture (click to enlarge)                     The architecture in Figure 9 has entered the realm of complexity that requires a tested, scalable, manageable Java EE enterprise                        application server. Once again, a development team with the proper skill level coulduse Tomcat for the Web tier and piece together technologies andframeworks to support the business and data tiers. Whether that effortwould be well spent is questionable, particularly given the option touse a full-fledged application server.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表