ejb@glassfish.java.net

Re: CMIS 440 -- JAVA EE course

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Mon, 04 Dec 2006 10:37:40 -0500

Irena Bojanova wrote:

> Dear Sir or Madam,
>
> I am teaching a class on Java EE at the UMUC and would like to ask
> some questions on the Sful <examples/Sful.html> A simple EJB 3.0
> Stateful Session Bean example, provided at:
>
> https://glassfish.dev.java.net/javaee5/ejb/examples/Sful.html
>
> I have deployed the provided EJB on a remote UMUC Sun Application
> server and have successfully run the provided Java client from my home
> machine using:
>
> java -Dorg.omg.CORBA.ORBInitialHost=/remoteHostName/
> ejb30/SfulJavaClient
>
> Now, I am trying to run from my home Sun Application server the
> provided Application Client. I know that I have to use something like:
>
> appclient -client Sfulappclient.jar
>
> However, I am definitely missing where and how to specify the remote host.
>
> Could you please help me with this?

Hi Irena,

The appclient command has an optional -xml <config_file> parameter which
allows
you to pass in a appclient container .xml configuration file conforming to
$APS_HOME/lib/dtds/sun-application-client-container_1_2.dtd.

There is a target-server element which can be set to the target host/port.

You can find a default
version of this file in $APS_HOME/domains/domain1/config/sun-acc.xml.

>
> Sincerely,
> Irena