The difference between WebLogic and Tomcat

Source: Internet
Author: User
Tags jboss

The development of the Java EE is primarily a structure of interaction between the browser and the server. The logic is processed in the background, and then the results are transferred back to the browser. You can see that the server is very important in this architecture.

These days to contact two Java Web server, do the project with Tomcat, watching the video look at the WebLogic Server (WLS), are Web servers, what is the difference and contact?

(a) A brief introduction to these two types of servers.

WebLogic is a application server produced by BEA, which is a Java EE-based architecture, and the latest version WebLogic server 9.0 is the most outstanding BEA Application Server released to date. BEA WebLogic is a Java application server for developing, integrating, deploying, and managing large-scale distributed web applications, Web applications, and database applications. Introduce the dynamic capabilities of Java and the security of Java Enterprise standards into the development, integration, deployment, and management of large-scale network applications. Fully follow the Java EE 1.4 specification.

The Tomcat server is a free open source Web application server, a core project in the Apache Software Foundation's Jakarta Project, developed by Apache, Sun, and other companies and individuals. Because of its advanced technology, stable performance, small system resources, good scalability, support for load balancing and mail service development and application systems commonly used functions, and it is important that she is free, and therefore deeply loved by Java enthusiasts and by some software developers recognized, Become the most popular Web application server now. And because of open source, it is constantly improving and perfecting, and any interested programmer can change it or add new features to it.

(b) The same point:

Both WebLogic and Tomcat are Java-based infrastructures to meet real-time processing needs, and different versions are compatible and different from JDK versions, because they all have to interact with the foreground, so they're all based on the Sun's servlet.

(c) different points:

functionality :

WebLogic more powerful. WebLogic is the Java EE Application Server (application server), including EJB, JSP,SERVLET,JMS and so on, all-round. Is the first container in commercial software (JSP, servlet, EJB, etc.), and provides other tools such as Java editing, is a comprehensive development and operating environment.

WebLogic should be the Java EE Container (Web Container + EJB Container + XXX specification)!

Tomcat can only be counted as a Web Container, an officially designated Jsp&servlet container. Only implement the relevant specifications of Jsp/servlet, not support EJB (mishap AH)! But Tomcat with JBoss and Apache can implement the Java EE application Server function

Generally consider stucts and other architectures such as Tomcat, but if you consider EJB, WebLogic is a better choice.

Scalability:

Running standard Java with WebLogic may not be the best way to support something in WebLogic, which is developed on a purely Java basis, but not in any other tool. With its excellent clustering technology, WebLogic server has the performance, scalability, and high availability required to handle critical Web application issues.

WebLogic server implements both a Web page cluster and an EJB component cluster, and does not require any specialized hardware or operating system support. A Web page cluster enables transparent replication, load balancing, and representing content fault tolerance.

Whether it is a Web cluster or a component cluster, it is critical to the scalability and availability required for e-commerce solutions. Shared client/server and database connections, as well as data caching and EJBS, enhance performance. This is what other Web applications don't have.

So WebLogic is far beyond Tomcat in terms of extensibility.

on the cost:

Tomcat Open source is free.

WebLogic not open source is not free.

In short, WLS is a lot better than Tomcat in terms of power and scalability and usability, but that doesn't make it clear that WLS is suitable for every aspect, and the use of Tomcat shows that Tomcat is a very popular, albeit limited, feature. Actually the key to see what you want to do.

Tomcat is a free open source Jsp,servlet engine, an entry-level Web server, and just getting started it people are easy to use with Tomcat. And it is a lightweight application server, the most important is that it is free, so in small and medium-sized systems and concurrent access users are not a lot of occasions are widely used, is the first choice to develop and debug JSP programs. Tomcat is relatively lightweight and consumes less resources. Of course, when the project is big, WLS is certainly more suitable, and Tomcat can not meet too much demand, but the cost of WLS is not to be underestimated.

In short, the key to see what you do, weigh the pros and cons to make choices.

         In addition, there are other Java EE application servers, such as IBM WebSphere, Sun GlassFish, Resin and so on. Apache is the most widely used HTTP server in the world, free of charge. The same open source free JBoss, domestic manufacturers are also produced like the Tongweb, Kingdee apusic application Server and so on. are more widely used.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.