Re: Differnce between Java Bean and Enterprise Java Bean

From: Tom Cole (tcole6_at_earthlink.net)
Date: 01/21/04


Date: Wed, 21 Jan 2004 03:06:21 GMT


"Markku Salminen" <markku.salminen@pp.inet.fi> wrote in message
news:PEgPb.2935$L05.669@read3.inet.fi...
>
> > I am a new user of Java. Please ans the followings. I would really
> > appriciate.
> >
> > 1. Is there any difference between Java Bean and Enterprise Java
Bean(EJB),
> > if so, what is/are those?
>
> They are totally different. Bean is just a class with private
> attributes handled with get and set methods. EJB's are
> server components.

No correlation at all. Enterprise Java Bean was probably not the best name
for those, seeing the JavaBean came first...

>
> > 2. As a programmer point of view, is there any difference between tomcat
and
> > WebSphere or JBoss?
>
> It depends what are you doing? If you want to learn how to develope
> the enterprise applications then JBoss is good choise. WebSphere is
> commercial product.
>

Tomcat is a Servlet container. It serves Servlets and JSP content. It does
not server EJBs.

JBoss is an application server, it serves EJBs. It does not serve Servlets
or JSPs. (At least I don't believe it does. Never tried it. They provide a
pre-wired version with Tomcat or Jetty as the servlet container).

The typical web application environment would utilize both Tomcat (or Jetty
or other Servlet container) and JBoss (or JoNaS, or Enhydra or other
application server) as well as an http server like Apache or IIS, each piece
doing it's thing: Apache/IIS --> static content; Tomcat --> Servlets & JSP;
JBoss --> EJBs.

> --
> Markku
>



Relevant Pages

  • Eclipse/Lomboz/JBoss | Unable to deploy a bean to a running server
    ... Due to the newer releases of JBoss + ... Eclipse i downloaded lomboz-211. ... When i deploy my bean, ... In the console i only see, that the server ...
    (comp.lang.java.softwaretools)
  • Eclipse/Lomboz/JBoss | Unable to deploy a bean to a running server
    ... Due to the newer releases of JBoss + ... Eclipse i downloaded lomboz-211. ... When i deploy my bean, ... In the console i only see, that the server ...
    (comp.lang.java.programmer)
  • Re: JBoss versus Tomcat ?
    ... does it mean: Application Server? ... >> Is JBoss based totally on Tomcat, so I need both Tomcat and extra JBoss ... > But JBoss does ship with a servlet container, ...
    (comp.lang.java.help)
  • JBoss Websphere Admin
    ... JBoss Websphere Admin ... Installation and patches to the JVM 1.5 ... Extensions management Security Management of real server resource use ... this person must be able to install and configure Java ...
    (comp.lang.java.beans)
  • Maybe this is good for VMS, maybe not
    ... JBoss Alliance In Anti-IBM Move ... announce broad-based support for the popular MySQL database and JBoss ... open-source model and profitability need not be mutually exclusive. ... database and the JBoss open-source application server on its servers, ...
    (comp.os.vms)