very newbie plz look here

hello friends,

i am like a infant to this technology but i have done some work on jsp,

my first question is:

when we use .jar files from webapps lib directory in our jsp (i means some beans or custom actions) in case of using beans , could i call that bean as a EJB or ejb is different from them.

plz give a explanation.

[351 byte] By [johnray31a] at [2007-10-2 10:18:03]
# 1

my second question is in J2EE application architecture

is tomcat works as both EJB container and web server or we can seprate

application server(i.e EJB container )on different machine, and call it from web server or is it true that most server contain integration of web server+application server

johnray31a at 2007-7-13 1:44:46 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

First of all, your terminology is incorrect. Let me get taht straight.

1. A J2EE app server implements the J2EE APIs specified by sun. It may implement some or all of the APIs. The typcial APIs implemented are: EJB, Servelet and JSP, JDBC, JNDI, JMS, JTA, ....

2. Tomcat is not a web server (dunno if they have included web server, but when i worked on Tomcat, I didnt see it). It is just a servlet container and is generally used for deploying your JSPs and Servlets.

3. Dont confuse app server with EJB container. An EJB container is contained within an app server. Ditto for servlet container- it is contained by app server

4. From your JSPs/Servlets, you can call an EJB running on any container (it may be running on the same app server, or on another app server on the same network).

Thus if your JSP/servlet is running on Tomcat, you may call an EJB that is running elsewhere. For this, you must have a client jar of the EJB. This jar contains the remote and home interfaces of EJB. Keep this jar in the lib directory of Web apps.

hope that answers your questions

regards

s. giri

parsifala at 2007-7-13 1:44:46 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

hello frnds,

> 2. Tomcat is not a web server (dunno if they have

> included web server, but when i worked on Tomcat, I

> didnt see it). It is just a servlet container and is

> generally used for deploying your JSPs and Servlets.

thn would you explain what a web server application is, if tomcat does not contain web server thn how it handle html,.htm , files , in my point of view

any server side technology(like asp,jsp,php,coldfusion etc..) are served by web server and the application that they called from their codes are served by application server.

what do you think plz explain little bit

johnray31a at 2007-7-13 1:44:46 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...