• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache Tomcat 6.0.16 a web server/ App server

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.?

 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic