Jacorb 1.3 installation

zhaozj2021-02-11  171

Jacorb 1.3 installation

installation:

1. If you download the source code, you need to compile the compiler with ANT1.2 (www.apache.org), but it is best to download the compiled version. Here to assume that you are compiling.

2. Configure JDK1.2 or higher, because Jacorb has several GUI tools to use Swing, JFC components.

3. After backing up JACORB_PROPERTIES.TEMPLATE, renamed Jacorb.properties and put it in the ClassPath path, my path is E: / Jacorb

4. Modify the ORBINITREF.NAMESERVICE parameter in jacorb.properties, and other parameters use the default settings.

Orbinitref.nameservice = http://127.0.0.1/jacorb/ctest/ns_ref

Where http://127.0.0.1 is my native IP, if you want to use on the network, use a real IP address, / jacorb / ctest / ns_ref is the address of the IOR file in the Web Server, on my computer disk address It is E: / JACORB / CTEST / NS_REF, I am map E: / JACORB in IIS to Jacorb.

5. Add two jar, idl.jar in the lib directory to ClassPath.

6. Add a bin directory to the system Path path, which is not necessary, but it can be convenient for work.

test:

Start Name Servie:

NS E: / JARORB / CTEST / NS_REF

It just corresponds to http://127.0.0.1/jacorb/ctest/ns_ref, if you display:

[Poa Rootpoa - Ready]

[POA NAMSERVER-POA - Ready]

Note The Name Service service is launched. If you have any questions, check the previous settings.

Run the Demo.grid example:

Example Source Code In the Demo Directory, we run the Grid program, which is used to add several numbers to a table and return to the table content.

If there is Ant, it will be convenient. Enter the E: / JACORB / DEMO / GRID directory in the command line mode, type the ANT, and compile the Class file will be placed in the class / demo / grid directory. If you don't need Ant, then you can compile one, or compile in the IDE. Enter the CLASSES directory in the command line, type Start Jaco Demo.grid.server, will start the service server.

Type Start Jaco Demo.grid.Client, start the client, we can see the run results. The corresponding Server and NS display linkage information.

Jacorb Tool User Description:

IDL -D compile table IDL file

Compile IDL file.

NS IOR file location

Start the Name Service service

LSNS

Text Method List the list of Name Serviec in the current service

nmg

The name service list works in the graphic mode, you can also create new context (there is no understanding of this concept)

Dior -f IOR file location

The IOR file decoder translates the IOR file into user readable format.

Pingo -f IOR file location

Test Joint IOR object

to sum up

Here I just briefly introduced Jacorb's quick installation and implementation of the NAMESERVICE service. Tools are also introducing several and common methods related to NAMESERVICE. For further use of Jacorb in CORBA, I hope we will discuss it. Cocia Lin (cocia@163.com)

转载请注明原文地址:https://www.9cbs.com/read-5934.html

New Post(0)