Startup and Rebuild Questions
- How can I rebuild JacORB ?
- Why doesn't JacORB use host names in it's IOR?
- How can I make the server use a specific port number
or IP address (in case of multi-homed hosts)?
- Do I really need the properties file?
- Do I really need the jaco start script?
Back to the main FAQ page.
How can I rebuild JacORB ?
Why doesn't JacORB use host names in it's IOR?
The reason we're using IP numbers instead of human readable host names is
that the jdk doesn't provide a way (unless implementing the DNS protocol
ourselves / using an external library) to get the fully qualified hostname
(that is e.g. z1.inf.fu-berlin.de instead of just z1).
But using only the unqualified hostname renders the IOR useless outside of the
domain.
How can I make the server use a specific port number
or IP address (in case of multi-homed hosts)?
JacORB provides two properties that can be set to select a port number and
IP address for servers to listen on. These properties are OAPort and
OAIAddr. They can be set on the commandline using the -D switch to the Java
interpreter, in the properties file, or in the source code of the server. In
this last case, they are passed as arguments to the ORB.init() call.
Do I really need the properties file?
Yes, we generally discourage people from not using the properties
file. This file contains a lot of default values, that should be present and
may cause problems at unexpected points if omitted.
Do I really need the jaco start script?
No, but it is a convenient way to start your programs by doing the following
two things:
- Setting the
-Xbootclasspath option (useful for jdk1.2).
This makes the VM search JacORBs classes prior to javas own classes, which
is needed because the rt.jar of java 1.2 comes along with a lot of faulty
classes generated from the standard OMG interfaces.
- Setting the properties
org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingletonClass.
This makes java load the JacORB orb instead of suns own implementation.
See this question for the result of omitting these
properties.
|