This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Beginner questions about tools Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Beginner questions about tools" Watch "Beginner questions about tools" New topic
Forums: Tomcat JBoss/WildFly
Author

Beginner questions about tools

Johnny Ekstrom
Greenhorn

Joined: May 20, 2014
Posts: 3
Is it worth trying Tomcat? What advantage does it have over JBoss?
Is spring an application container in itself, or is it typically installed on
top of Tomcat or JBoss?
I am using eclipse from windows 7 to write the code but then I copy the source
files manually to a remote VPS, using winSCP, and compile on a remote shell,
so I can test my web app.
Is there a tool to make eclipse automatically copy the files to the
remote VPS, to the right locations?
Tim Cooke
Bartender

Joined: Mar 28, 2008
Posts: 841
    
  41

Johnny Ekstrom wrote:Is it worth trying Tomcat? What advantage does it have over JBoss?

Tomcat is much simpler, and it's free. Unless you really need a feature of JBoss (unlikely unless you're building a full on enterprise app) then don't bother.
Johnny Ekstrom wrote:Is spring an application container in itself, or is it typically installed on top of Tomcat or JBoss?

Spring is not an application container, it's a library so you don't install it.
Johnny Ekstrom wrote:I am using eclipse from windows 7 to write the code but then I copy the source files manually to a remote VPS, using winSCP, and compile on a remote shell, so I can test my web app. Is there a tool to make eclipse automatically copy the files to the remote VPS, to the right locations?

Why not install Tomcat locally on your Windows box and test your application there?


Tim Driven Development
Tim Cooke
Bartender

Joined: Mar 28, 2008
Posts: 841
    
  41

And welcome to the Ranch Johnny
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
Welcome again
That is too hard a question for us in “beginning” so I shall move it.
Anindya Roy
Ranch Hand

Joined: May 11, 2014
Posts: 70
Tomcat is not fully JEE server whereas JBoss is fully JEE server.
Tomcat has only servlet container whereas JBoss has more that servlet container like EJB container.
So you can run only web based application in Tomcat but if you want to run Enterprise Application then you have to use servers like JBoss, Weblogic, WebSphere etc.


For Spring, you just need the jars in the project's classpath and you can run it without any JEE server


http://www.webtuts.in
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

Tomcat is not fully JEE server whereas JBoss is fully JEE server.


In other words, Tomcat is not a "full stack" server. However, many, many webapps only really need the server to supply servlet/jsp support, so Tomcat is often the preferred choice for enterprise webapp hosting. It's faster to start and stop and uses fewer resources overall. Tomcat's utility within its limitations are so good that in fact JBoss uses an embedded copy of Tomcat as its servlet/jsp engine.

As Tim Cooke notes, Spring isn't a server itself, but Spring libraries are often included in J2EE webapps. I use it extensively in Tomcat-hosted apps.

There are ways to cause automatic deployment of webapps into Tomcat, but if you install Tomcat on your local machine, you can also build the WAR in Eclipse and have Tomcat run it from there. I recommend installing the sysdeo Tomcat plugin, however. WTP comes pre-installed with the J2EE spin of Eclipse, but what it does to webapps is horrible.


Customer surveys are for companies who didn't pay proper attention to begin with.
Johnny Ekstrom
Greenhorn

Joined: May 20, 2014
Posts: 3
Thank you all.
I don't want to install Tomcat on windows, because then I have also to install the database (Postgres or MySQL) on windows to test the webapp.
It's a bit of an hassle.
On the other hand development would be faster. I have to think about it.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
One great advantage for developers is that you can get the source code to Tomcat and it is generally well commented so you can see what is going on.

Bill
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

Johnny Ekstrom wrote:Thank you all.
I don't want to install Tomcat on windows, because then I have also to install the database (Postgres or MySQL) on windows to test the webapp.
It's a bit of an hassle.
On the other hand development would be faster. I have to think about it.


Not on Tomcat's account, you don't. Tomcat doesn't have any database dependencies. Tomcat webapps can use whatever databases they want, no matter what machine they're on, as long as they have a JDBC network connection capability. Or a Tomcat webapp may use no database at all. The sample apps that come with Tomcat don't.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
Johnny Ekstrom wrote:I don't want to install Tomcat on windows, because then I have also to install the database (Postgres or MySQL) on windows to test the webapp.

The location of the server and the location of the DB are not dependent on one another, so the "because then" part isn't accurate.


Ping & DNS - my free Android networking tools app
Johnny Ekstrom
Greenhorn

Joined: May 20, 2014
Posts: 3
You are all correct. I don't have to connect to localhost. I have always developed apps where I connect to the localhost mysql, so I forgot it could be remote.
But there are still configurations changes on the mysql server side, my current server does not allow remote connections.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
But you'd have that regardless of which app server you use.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beginner questions about tools
 
Similar Threads
NullPointerException while establishing the JBOSS
Jboss is not starting from eclipse
JBoss Witn Eclipse
JNDI in eclipse
JBoss Tools 3 | Eclipse 3.4 - Mess build output