Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Tomcat 6.0.16 a web server/ App server

 
Anuradha Prasanna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to develope persistent entity beans using EJB 3.0
Iam new to tomcat.
Can i use Apache Tomcat 6.0.16 to develop stateful session beans and entity beans ?
does tomcat support annotations and ejb 3?

I also want to know if Apache Tomcat 6.0.16 supports the functionalities provided by app servers like Weblogic , Websphere etc.?

 
Pavel Kubal
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anuradha,

Tomcat alone is only Servlet container. It needs EJB container, but there is possibility to install embedded JBoss into Tomcat. Please refer to seam documentation

http://docs.jboss.com/seam/latest/reference/en-US/html/configuration.html#config.install.embedded
 
Karthik Shiraly
Bartender
Posts: 1208
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Another option is to use OpenEJB inside Tomcat.
Is there a good reason you want to use only Tomcat? If you're looking for free JavaEE app servers, there're many - JBoss, Sun Glassfish, Apache Geronimo,...
 
Anuradha Prasanna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one of the interviews i was asked,

"Give an example of using Apache Tomcat and Jboss in a Java application. What are the purposes of each of them?"

I was not able to answer it properly.
Can anyone please provide an answer or insight into this question?
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anuradha Prasanna wrote:In one of the interviews i was asked,
"Give an example of using Apache Tomcat and Jboss in a Java application. What are the purposes of each of them?"
I was not able to answer it properly. Can anyone please provide an answer or insight into this question?


I didn't get the question, it is phrased badly. Anyway, what was your answer?
 
Anuradha Prasanna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I answered,

tomcat wil be acting as web server for the web tier,
and jboss as app server for ejb tier.

is that correct?

But i think, since jboss supports servlets and ejbs, why use tomcat? It sounded to me like a invalid question.
or is there any specific use for using tomcat and jboss together?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18218
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss embeds a copy of Tomcat within itself to handle servlets and JSPs. You don't have to install a separate Tomcat - it comes as part of JBoss.

It used to be that JBoss had 2 choices of servlet/JSP engine: Tomcat and jetty, but I talked to one of the JBoss people several months ago and he said jetty support has been dropped for the newer versions of JBoss.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic