I learned that Servlet reference implementation is included in the Java EE SDK. And Tomcat is a open source implementation of it.
Can I use Java EE SDK with Apache to render JSP pages instead of Tomcat? I think I can use Java EE SDK anywhere instead of JBoss or all Java EE complian开发者_StackOverflow社区t program. Is it right? Is it wrong when I use Java EE SDK?
Update here it says that both Java EE and Glassfish implements Servlet API. I can download Java EE SDK, it's not just the specification. I wonder if Java EE is superclass of Glassfish.
The Java EE is a series of specifications. You can see the list of specifications in Java EE 6 here.
All specifications, according to the JCP, must have a reference implementation. The reference implementation for Java EE is Glassfish and this is what you probably call Java EE SDK.
In fact, other implementers can follow the specifications and provide their own server implementations. And that is why we have other servers out there like: JBoss, JoNas, Apache Geronimo, IBM Websphere and Oracle Weblogic, among many others.
Now, coming back to the Apache issue. You could use Apache Web Server with mod_jk enabled and forward requests to your Tomcat Server.
Now, Tomcat does not implement the whole set of specifications for Java EE. Tomcat is the reference implementation for JSPs and Servlets, as far as I know.
You want to use Tomcat to render your jsp's. Look in the tomcat/webapps directory. You will see an examples directory with some jsp's. You can create a simple jsp of your own in that directory and view it in a browser. Tomcat normally runs on http://localhost:8080
精彩评论