client in ejbs

explain the term client in ejbs ? where do we install a client on the server? If the client is a standalone program how i user like me can use the client? explain briefly where this client is used in enterprise applications? I got the doubt because a standalone program is compiled into a class file. As a user how i know what is there in client program?

I am the student learning j2ee Please help me in this regard

Thank You

[445 byte] By [kiran_ginnuria] at [2007-9-24]
# 1

A client is a standalone program or a web interface that connects to the

server your business logic (written using the EJB technology) runs. Take a

web shop for instance. The web interface is the client. When you order

something, the web interface connects to the server, passes the data,

waits for the result to be returned and displays the result (e.g. one more

item in the cart, higher total and so on).

When you want a web client, you have to deploy a WAR file that contains all

the stuff that is needed (JSPs, Beans, deployment descriptor, ...).

If it is a standalone program, you use it like every other program. You start

it using java -jar client.jar. This program contains some libraries that

enables it to connect the server if needed.

You as a user know that there is a client as you just use it. You may not now

that there is an EJB backend.

HTH

-Danny

dan-ba at 2007-7-15 > top of java,Enterprise & Remote Computing,Enterprise Technologies...