Difference between an application client and a stand-alone client

后端 未结 2 1399
故里飘歌
故里飘歌 2021-02-06 10:00

As the title suggests, this is in relation to Java EE and Glassfish in particular.

From what i\'ve learned the application client is executed in some application client

2条回答
  •  盖世英雄少女心
    2021-02-06 10:17

    An application client is actually run in a container and has full access to Java EE resources defined on your server in the same way that a Servlet or EJB does. This would typically be used for some type of admin client, not a user application. Here is one explanation.

    In addition to the Java EE Application Client, there is also the concept of a Thin Client, which allows access to some Java EE resources as well, but not as easily as the App Client. It usually involves using JNDI lookup with absolute names as JNDI references are not available. A typical case for this would be a standalone producer/consumer of JMS messages. It is basically a lighter weight option of the full App Client.

    If you are simply creating a user application, you will most likely want to either use a Thin Client model, or a plain old application that simply consumes services from your Java EE app via servlet or web service calls.

提交回复
热议问题