Is Apache Tomcat a Web server or an application server - java

Is Apache Tomcat a web server or an application server?

Appache tomcat is only servlet container (as jetty). Real application server is Glassfish, Jboss...

Apache Tomcat is webserver with a servlet container. It is not full fledged application server like jboss or websphere. However, latest versions like tomcat 7 are more than the webserver. it is webcontainer.

Related

Openfire Server running in Tomcat

I need to host an Openfire XMPP Server in a Tomcat servlet container. Openfire itself uses an embedded Jetty Server. Is there any way to launch Openfire in a J2EE container to start it using Tomcat or any other way to accomplish that?

What is the relationship between Apache Tomcat and Apache Axis2 in the context of RESTful API and WSO2

I know I want to build a RESTful api and use Angular on client side. I am choosing between server technologies. Apache Tomcat can do RESTful web services and could do for years now. I was wondering if Axis2 is meant to be replacement for Tomcat. Also I have been encouraged to incorporate WSO2 middleware which uses Axis2. Ideally I'd like to use REST on Axis2 and then WSO2 middleware.
What is the relationship between Apache Tomcat and Apache Axis2 in the context of RESTful API and WSO2? Does Axis2 run within Tomcat?
Apache tomcat is an application server whereas Axis 2 is a Web Services engine.
So no, Axis2 is not meant to be replacement for Tomcat. An application built with Axis2 can be deployed on Tomcat or any other compatible Application Server(AS).
So yes, Axis 2 can run within Tomcat.
WSO2 is irrelevant to your question. Middleware includes Web servers, application servers, content management systems, and similar tools that support application development and delivery.
For a quick description Apache Tomcat is a web server and more precisely a servlet container that allows you to handle HTTP resquest inside servlet.
Apache Axis 2 is a librairy that can handle web services (SOAP and RESTFull), it can run on a server such as Tomcat.
For REST API you can use WSO2 ESB or WSO2 API Management...also if you want to build a restful service you can create a webapp with JAX-RS and deploy it in WSO2 Application Server. As WSO2 Application server use Apache Tomcat you donĀ“t require an Apache Tomcat Server.

Tomcat + CxF ready for Production?

Our new project has Apache CXF based Producer SOAP web services.Now we are planning to move the Web Services to production.We are looking for a suitable Open Source container(Web Server or App Server) for deploying CXF Based Java Web Service.First option came to mind was Tomcat 7 .Just needed expert advice on
1. Whether combination of CXF and Tomcat based WebServices are currently used in production for other projects ?And is this solution scalable & Reliable ?
2. Are there other options to deploy CXF based webServices other than Tomcat in production ?
Thanks!
1 . Whether combination of CXF and Tomcat based WebServices are currently used in production for other projects ? And is this solution scalable & Reliable
It shouldn't give you any issue since it is compatible with a wide variety of application server. We are using Tomcat7 and Tomcat6 to deploy our CXF web services and they are in production for quite some time now without any issue.
2 . Are there other options to deploy CXF based webServices other than Tomcat in production ?
There are multiple options to deploy cxf based web-services
From the docs
Lightweight containers: deploy services in Jetty, Tomcat or Spring-based containers
JBI integration: deploy as a service engine in a JBI container such as ServiceMix, OpenESB or Petals
Java EE integration: deploy services in Java EE application servers such as Apache Geronimo, JOnAS, Redhat JBoss, OC4J, Oracle WebLogic,
and IBM WebSphere
Standalone Java client/server

How jetty server can be integrated with apache server?

I am developing an web application where some existing part is written already in php and for that apache server is being used. But now i have to complete rest of module in Java using jetty web server. Is there any way to integrate jetty webserver with existing apache webserver so that i can simply deploy as war file?
Yes, of course. Jetty is a servlet container similar to tomcat. There are instructions here:
http://wiki.eclipse.org/Jetty/Tutorial/Apache#Configuring_Apache

Configuring JBoss Web Server to connect to JBoss AS

I am trying to configure JBoss Web Server to connect to JBoss AS. We have a JBoss Web Server installed and configured on one machine, and JBoss AS installed and configured on another machine. How do i configure my JBoss Web Server so that when i call some url mapped to web server, it will redirect me to actual application deployed on JBoss AS. I tried to search on the web for the same, but couldn't find the specifics. This might be a very simple scenario, but i am novice in configuring it. Can somebody help me over here?
Depends on kind of application you have on your JBoss AS server: EJB or web application.
If this is EJB application then create EJB client in your Servlet or JSP page or Servlet Filter or whatever else is used on JBoss Web Server. That client would call EJB component on JBoss AS.
If on JBoss AS server you have also web application, then simply redirect request to the JBoss AS or

Categories