AKAI TSUKI

System development or Technical something

CORBA関連

  • ns
C:\Java\JacORB\bin>ns -Djacorb.naming.ior_filename=C:/Java/JacORB/data/NS_Ref
java version "1.4.2_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)
[jacorb.orb.singleton] INFO : created ORBSingleton
  • server
C:\Java\JacORB\classes>jaco demo.grid.Server
java version "1.4.2_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)
[jacorb.orb.singleton] INFO : created ORBSingleton
  • client
C:\Java\JacORB\classes>jaco demo.grid.Client
java version "1.4.2_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)
[jacorb.orb.singleton] INFO : created ORBSingleton
Height = 31
Width = 14
Old value at (30,13): 470.11
Setting (30,13) to 470.11
New value at (30,13): 470.11
MyException, reason: This is only a test exception, no harm done :-)
done.

C:\Java\JacORB\classes>
  • server起動直後のclientの実行は上手くいかない
C:\Java\JacORB\classes>jaco demo.grid.Client
java version "1.4.2_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_19-b04)
Java HotSpot(TM) Client VM (build 1.4.2_19-b04, mixed mode)
[jacorb.orb.singleton] INFO : created ORBSingleton
org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 192.168.129.24:2903
        at org.jacorb.orb.iiop.ClientIIOPConnection.connect(ClientIIOPConnection.java:232)
        at org.jacorb.orb.giop.GIOPConnection.sendMessage(GIOPConnection.java:934)
        at org.jacorb.orb.giop.GIOPConnection.sendRequest(GIOPConnection.java:900)
        at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:323)
        at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:304)
        at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:1024)
        at org.jacorb.orb.Delegate.invoke(Delegate.java:939)
        at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:80)
        at demo.grid._MyServerStub.height(_MyServerStub.java:32)
        at demo.grid.Client.main(Client.java:34)

C:\Java\JacORB\classes>