I want to connect my Netbeans Platform Application to the Glassfish EBJ
container which will ALWAYS be on a remote server.
I have followed the directions @ Application Development Guide Chapter 10,
"Developing clients without the ACC" (
https://glassfish.java.net/docs/4.0/application-development-guide.pdf#G18.1007906
).
Nothing I have tried works. I have placed the properties in the
project.properties file per directions at the Platform Developer FAQ:
run.args.extra=-Dorg.omg.CORBA.ORBInitialHost=192.168.3.93
-Dorg.omg.CORBA.ORBInitialPort=3700. The class where I'm creating the
InitialContext object is named ClientConstants. I'm getting the following
results:
Ignored unknown option: -Dorg.omg.CORBA.ORBInitialHost=192.168.3.93
SEVERE [com.yrs.client.app_objects.ClientConstants]
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file: java.naming.factory.initial
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
[catch] at
com.yrs.client.app_objects.ClientConstants.exerciseClientConstants(ClientConstants.java:43)
Clearly, the documentation is either incorrect or incomprehensible in that
I can't understand it.
I have succeeded in connecting to JBoss following their directions. JBoss
seems to be the most Java client friendly application server I've been able
to find but I really want to use Glassfish if somebody who knows what
they're doing will explain exactly how to connect a Platform application.
Thank you for testing the documentation to see if you can get it to work
with a Netbeans Platform Application and let me know the exact steps to
make a connection to a stateful EBJ.
Chuck Davis