ejb@glassfish.java.net

Re: Re: EJB and Client on Different Computers

From: Martin Renaud <pm.renaud_at_gmail.com>
Date: Fri, 21 Nov 2008 06:43:59 -0500

You should start with this: http://java.sun.com/javaee/5/docs/tutorial/doc/

On Fri, Nov 21, 2008 at 2:14 AM, Markus Karg <karg_at_quipsy.de> wrote:

> What is the part that you do not understand?
>
>
>
> *From:* Benjamin Lin [mailto:benjaminlin_at_rocketmail.com]
> *Sent:* Freitag, 21. November 2008 00:57
> *To:* ejb_at_glassfish.dev.java.net
> *Subject:* Re: EJB and Client on Different Computers
>
>
>
> Markus:
>
> Thank you for reply and instruction. But for my JEE beginner, I don't
> understand what it is. Could you give detailed and concrete instructions
> step by step?
>
> Thanks.
>
>
>
> Benjamin
>
>
>
>
>
> ------------------------------
>
> *From:* Markus Karg <karg_at_quipsy.de>
> *To:* ejb_at_glassfish.dev.java.net
> *Sent:* Wednesday, November 19, 2008 2:10:59 AM
> *Subject:* RE: EJB and Client on Different Computers
>
> It's pretty simple.
>
>
>
> (1) Web Start
>
>
>
> You can enable Web Start for your application (to be found in the admin
> GUI). Then, from your client's browser, click on the link shown in the
> browser. It will download the client container and the client and run it.
>
>
>
> To run it, just double click the link that it created.
>
>
>
> (2) Standalone Client Container
>
>
>
> Alternatively you can install client container and client on each remote
> machine manually. One way is: Use asadmin's --retrieve . option when
> deploying. It will load a JAR file containing the application client. The
> client container can be obtained by the command "package-appclient" (to be
> run on the server once). The result is a file "appclient.jar". You must
> unpack it on all remote client machines using jar -xf appclient.jar. Set
> JAVA_HOME to your JDK root on the client, and append %JAVA_HOME%\bin to
> PATH. Using your editor of choice edit the file appclient\config\asenv.bat:
> AS_INSTALL must point to the expanded appclient folder, and AS_JAVA must
> point to %JAVA_HOME%. Also check appclient/config/sun-acc.xml. The line
> <target-server> must point to the server's host name or IP address.
>
>
>
> To run it, do: appclient -client MyClientJar.jar
>
>
>
> HTH
>
> Markus
>
>
>
>
>
>
>
> *From:* Benjamin Lin [mailto:benjaminlin_at_rocketmail.com]
> *Sent:* Mittwoch, 19. November 2008 02:37
> *To:* ejb_at_glassfish.dev.java.net
> *Subject:* EJB and Client on Different Computers
>
>
>
> Hi,
>
> I am learning JEE. You gave an excellent EJB example on
> https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html. You showed
> application client and standalone java client in the same computer. If I
> want to put EJB and client on different computers, how can I run EJB and
> client on different computers? Could you please tell me how to modify it?
>
> Thanks.
>
>
>
> Ben
>
>
>
>
>



-- 
Martin Renaud