Connecting FROM STAND ALONE CLIENT TO AN EJB Container in different server

I am trying to connect to My app server (sun web app 9.0_01)

form a STAND ALONE CLIENT.

i've tried using the jndi.properties file using:

org.omg.CORBA.ORBInitialHost=200.1.1.220

org.omg.CORBA.ORBInitialPort=3700

and i get the error:

Apr 22, 2007 7:01:12 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>

WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"

org.omg.CORBA.COMM_FAILURE:vmcid: SUN minor code: 201 completed: No . . .

i've tried setting the jvmarg values, you know, the:

"-Dorg.omg.CORBA.ORBInitialHost=200.1.1.220"

"-Dorg.omg.CORBA.ORBInitialPort=3700"

and i get the error:

Apr 22, 2007 7:21:00 PM com.sun.enterprise.util.ORBManager initORB

SEVERE: UTIL6009:Unexcpected Exception in createORB.

java.lang.IllegalArgumentException

at com.sun.corba.ee.impl.orb.DataCollectorBase.setProperty(DataCollectorBase.java:266)

at com.sun.corba.ee.impl.orb.DataCollectorBase.findPropertiesFromArgs(DataCollectorBase.java:151)

at com.sun.corba.ee.impl.orb.NormalDataCollector.collect(NormalDataCollector.java:32)

at com.sun.corba.ee.impl.orb.DataCollectorBase.setParser(DataCollectorBase.java:88)

at com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:53) . . . yada yada

this happens at the ic = new InitialContext();

i've gone through the forums with no success

i've followed links back to the "Instructions" for remote client access . .

and i'm STUCK on this ONE problem.

Can someone please help?

p.s. i'm using Netbeans 5 and the EJB 3.0 implmntn

i've included my original source code below:

package worldbeta4;

import com.andymarvinj.Session.PersonFacadeRemote;

import java.util.Properties;

import javax.ejb.EJB;

import javax.naming.InitialContext;

import javax.naming.NamingException;

/**

*

* @author Andy

*/

public class Main {

@EJB

private static PersonFacadeRemote personFacade;

/** Creates a new instance of Main */

public Main() {

}

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

InitialContext ic = null;

try {

ic = new InitialContext();

} catch (NamingException ex) {

ex.printStackTrace();

}

try {

System.out.println(ic.getNameInNamespace());

personFacade = (PersonFacadeRemote) ic.lookup("ejb/PersonFacade");

} catch (NamingException ex) {

ex.printStackTrace();

}

personFacade.findAll();

// TODO code application logic here

}

}

[2790 byte] By [andymarvinj1a] at [2007-11-27 1:55:48]
# 1
remember to customize the file SUNWappserver/domains/domain1/config/sun-acc.xml for the environment in client machine
gustavoriveraa at 2007-7-12 1:29:21 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...