Difference between Application Client and Java Client

Hi,

I went through https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html page to understand the difference between application client and java client. Still I don't seem to understand how is it different. It's not being deployed in Application server then it means we run this as stand alone program. So what's so different and good about it ?

Is the difference that we include vendor specific jar files in the application client's package or just add the jndi.properties file ?. glassfish page doesn't give non-netbean related example.

[562 byte] By [mohitanchliaa] at [2007-11-27 10:33:30]
# 1

An Application Client is written according to the rules of the Application Client component defined by

the Java EE specification -- just like the Servlet spec defines how to write servlets and the EJB spec

defines how to write EJB components.An Application Client can have an associated application-client.xml deployment descriptor. It is also packaged into an application client.jar, just like EJBs are packaged into an ejb-jar, and can be placed within an .ear as well. An Application Client can use Java EE environment annotations and injection. The Application Client container automatically performs authentication on behalf of the client.An Application Client is executed by running it within an Application Client container.

None of these steps apply to stand-alone java clients, but the tradeoff is that the Application Client is

portable and the stand-alone client is not. You can see the difference between the two approaches

in this simple Hello, World EJB 3.0 program :

https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html

ksaksa at 2007-7-28 18:23:09 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...