Has anybody found a way to run a Java web application within IIS? It seems to me it should be entirely possible to write an ISAPI plugin (is that the right word?) that integrates Jetty or a custom servlet container with IIS. The benefit of this is that a lot of great high end Java applications like Jira require separate infrastructure for an otherwise all Microsoft shop.
I think you will find of use the following two articles
Use Microsoft's Internet Information
Server as a Java servlet engine
Java + ISAPI + Jetty = JSP on IIS
Running JVM inside IIS worker process currently is a bad idea. I suggest you to use solution from this article instead: Deploying Java Servlet applications on Windows with IIS
Microsoft has recently released (2015 Q1) HttpPlatformHandler module for IIS 8+ that lets you host java (or node/ruby applications etc), on IIS.
http://azure.microsoft.com/blog/2015/02/04/announcing-the-release-of-the-httpplatformhandler-module-for-iis-8/
AFAIK Java EE cannot be hosted in IIS. To host Java EE Application you need at least Servlet container or a full Java EE container which is not supported by IIS. Although, some plugin might be able to do so.
As for your reference, below link is Java EE compatibility by oracle:
http://www.oracle.com/technetwork/java/javaee/overview/compatibility-jsp-136984.html
Related
I know that Tomcat is a web server but why it is not an application server?
Any server needs to follow some specification. What is that spec?
Is it possible for apache to make the tomcat application server?
Also I have read in a blog that the tomcat do not have some lib to act as an application server. What are those libs?
Thanks
I've heard once the following explanation I tend to agree with:
There is a spec of JEE (Java enterprise edition).
Formally you can think about it as a bunch of pdf-s describing the behavior of various technologies that comprise the JEE stack (for example: JMS, EJB, JPA, JPA, JSF, CDI and so on and so forth) as well as deployment models (EARs for example).
Implementors of Application servers have to implement all those technologies and offer interfaces that can be used by the application developers. So teams that stand behind WildFly (former JBoss), Geronimo, WebSphere, WebLogic and so on have read these specs and implemented everything in there.
Now, Tomcat didn't do that, they've only concentrated on (primarily) Servlets/JSPs. These are web technologies, so Tomcat can't be considered as an Application server that implements the whole JEE stack.
In general Tomcat (as well as Jetty, incidentally) should be more lightweight than full JEE compliant Application servers, it should start-up faster and it memory footprint should be smaller. So Tomcat/Jetty call themselves web servers.
I understand that this answer can be considered as speculation, but for me it makes a lot of sense.
Bellow is my perceive:
know that Tomcat is a web server but why it is not an application server?
Here, Application Server is specially for Java EE Server,Java EE is a huge specific collections for Enterprice Application Development,So Application Server should implement most specifics of these, while Tomcat(or Jetty) is only a Web Server(More accurately,Servlet Container),they only implements the specific about Web(such as Servlet Spec(JSR340), JSP(JSR245)). Therefore,Application Server is stronger than Web Server,but Web Server is more lightweight and enough to satisfy most web applications.
Any server needs to follow some specification. What is that spec?
Of course,it depends on that your Server want to provide what services(functions),these specifications can view here.
Is it possible for apache to make the tomcat application server?
I don't think apache will make tomcat to be an application server. Now, there are some popular Java EE Server: Jboss,WebLogic, etc. Not all enterprices need a heavyweight Application Server, on the contrary, most only need a lightweight Web Server。
Also I have read in a blog that the tomcat do not have some lib to act as an application server. What are those libs?
Tomcat only need care the specs about Web,and implements them.
Hope for your help.
Can I deploy a Spring java application on all (or at least most) of JavaEE servers ? like Weblogic, JBoss, Webshpere, Tomcat, Jettty etc.
And is there is preferred Java EE server for Spring ?
Yes you can. And no - there isn´t. Errata: you can take a look at the SpringSource dm Server. Be aware that spring is not a java EE implementation. Read this post here.
Yes, you can deploy it on any server, and you can use it on standalone applications and even on mobile applications. It is in no way restricted to web deployment. It is not even restricted to java, there is Spring.NET and even a Python version. However, java and web servers are a common if not the most common use for it.
Currently recommended web server by VMWare/Pivotal (current owner of Spring) is VFabric tcServer, which is a Tomcat fork containing some extra tools and functionality. But server in itself does not matter, Spring is container agnostic.
There is no preferred EE server. VFabric tcServer is a servlet container, not an EE server. It contains "enterprise capabilities" instead, but that's not the same thing. As said however, you can use whichever EE server you want.
Has anybody found a way to run a Java web application within IIS? It seems to me it should be entirely possible to write an ISAPI plugin (is that the right word?) that integrates Jetty or a custom servlet container with IIS. The benefit of this is that a lot of great high end Java applications like Jira require separate infrastructure for an otherwise all Microsoft shop.
I think you will find of use the following two articles
Use Microsoft's Internet Information
Server as a Java servlet engine
Java + ISAPI + Jetty = JSP on IIS
Running JVM inside IIS worker process currently is a bad idea. I suggest you to use solution from this article instead: Deploying Java Servlet applications on Windows with IIS
Microsoft has recently released (2015 Q1) HttpPlatformHandler module for IIS 8+ that lets you host java (or node/ruby applications etc), on IIS.
http://azure.microsoft.com/blog/2015/02/04/announcing-the-release-of-the-httpplatformhandler-module-for-iis-8/
AFAIK Java EE cannot be hosted in IIS. To host Java EE Application you need at least Servlet container or a full Java EE container which is not supported by IIS. Although, some plugin might be able to do so.
As for your reference, below link is Java EE compatibility by oracle:
http://www.oracle.com/technetwork/java/javaee/overview/compatibility-jsp-136984.html
Can we host a Java EE web application on IIS 5.1 server on windows XP?
You can forward your requests from IIS to another local tomcat or other java application server.
You can install your Application Server into the same machine as the IIS server. Then use AJP to connect IIS to your Java APPServer.
But I don't think you will be able to run Java Applications directly from IIS only.
AFAIK Java EE cannot be hosted in IIS. To host Java EE Application you need at least Servlet container or a full Java EE container which is not supported by IIS. Although, some plugin might be able to do so.
As for your reference, below link is Java EE compatibility by oracle:
http://www.oracle.com/technetwork/java/javaee/overview/compatibility-jsp-136984.html
IIS can never Java web-applications directly. But with a plugin we can do it..
You can refer this page.
Absolutely you can. If you need further info you'll have to provide more info about the type of Java application you wish to use, and the version of IIS.
I am currently developing an application for some researchers in my university.It's a small java program that you can use by command line. The next step is to package that program and deploy it to an application server. Some clients program will submit requests to the server who will call the tool that I wrote. Lately, we will add more tools to the server and he has to dispatch the requests to the right tool.
Which application server fits my needs ? I have looked for Tomcat, Jetty and Glassfish but it seems that they are only used for web application.
Is it possible to use those servers in some context different from web context? Which package archive should i use (jar, war) ?
Any advice?
Some clients program will submit requests to the server who will call the tool that I wrote.
The big question is what server-side technology and what communication protocol can you use between the clients and the server. You basically have two major options: HTTP and web services (in that case, consider using either JAX-WS or JAX-RS) or RMI-IIOP and EJBs (in that case, you'll have to use a Java EE compliant server like GlassFish).
I have looked for Tomcat, Jetty and Glassfish but it seems that they are only used for web application.
Not really. As I said, they can also be used for web services oriented applications. And GlassFish can be used for EJBs applications.
Which package archive should i use (jar, war)
The packaging will depend on the type of application you'll write, it's not something that you choose upfront, it's just a consequence. EJBs are packaged in an EJB JAR and typically deployed inside an EAR; Servlet based web services are deployed inside a WAR.
You really need to think about what technology to use first (with the current level of detail, I can't provide more guidance).
Do you even need an application server? There's nothing stopping you from adding the necessary network bindings and deploying it on its own.
Of the servers you mention, you've got 2 different categories: servlet containers and full-stack Java EE servers
Tomcat and Jetty are servlet containers. That doesn't mean that you can only do web stuff with them and you could manually add the required libraries to get a full Java EE server.
Glassfish is a full-stack Java EE server and can be compared with JBoss (both are open source) or the commercial rivals Weblogic and Websphere.
Sometimes this question is simple as the environment you are working in mandates a particular flavour of app server. You should check this first.
If you're not forced to use an app server, I'd ask why you think you need to use an app server?
I don't see why you would want to use tomcat, glassfish or jetty for a command line program.
If it's command-line based, and you want it to run server-side, you could write a little program that allows users to, for instance, telnet to your server, which in turn starts the CLI-application in question, and relays input / output to the client.
You may also want to look into Java Webstart, which makes deployment of new versions a breeze.
Actually we can't answer with so few elements.
- What are you planning to do
- With what technologies
- Where are you planning to host your application (have you got budget?)
- In which language are written the clients (even the future ones)?
- Could clients be on mobile phones (add some technlogy constraints...)
....
It would also be great to know what kind of request the clients will do, and what kind of response the server will provide...
Actually with what you tell us, all those application servers can do what you want...
I have looked for Tomcat, Jetty and
Glassfish but it seems that they are
only used for web application
You could even make a webapplication (servlet) and on the clientside use a httpclient to call that servlet... there are so many options :)
vive Paris!