Reputation: 1959
I have developed a java web application using JSF 2.0(Facelets) on GlassFish 3.1.1 with a MySql 5 DB, its more of a company website offering their services online.
I tried to go for the Bulidng my own server hosting, but the company refused and preferred to go for online hosting.
So now am going for online hosting and my questions is this:-
Does JSF (or any other java EE framework) need their own type of servers, or if a server can host jsp/servlets is capable of hosting JSF apps ?
and does applications developed using Glassfish work on TomCat servers or JBOSS or any other?
Upvotes: 2
Views: 2048
Reputation: 112
Does JSF (or any other java EE framework) need their own type of servers, or if a server can host jsp/servlets is capable of hosting JSF apps ?
If a server can run jsp/servlets, it can run JSF (JSf behind the scenes is using servlets). You just need to bundle the jsf implementation library (example: Mojarra jar file) with your webapp.
Does applications developed using Glassfish work on TomCat servers or JBOSS or any other?
Tomcat is a servlet container, it is not a standard Java EE application server. In other words, Tomcat doesn't have an EJB container or CDI (Context and Dependency Injection) container. So if you used any EJBs or CDI in your application developed using JBoss or Glassfish, it wouldn't work on Tomcat.
Glassfish and Jboss have full support for Java EE applications. So, anything developed using Glassfish can technically work on JBoss. You might have to do little tweaks such as pre-pending the JNDI names etc.
Hope that helps.
Upvotes: 1
Reputation: 37061
You need to do some google
for terms like glassfish vs tomcat , tomcat vs jboss and so on... in order to get the general idea and in order to see the pros and cons
INMO , in general they are the more or less the same , it also depends on the kind of support you want to get in the future.. some are free some cost hundreds of $$$ and even more
Regarding the migrating from one web server to another : If you write your app tomcat and want to migrate to glassfish it will be doable.. but you probably will have to do some googling in order to do the needed fine tuning and placing the missing jars that the new web server require...
Upvotes: 0