Ignore:
Timestamp:
09/13/11 22:37:11 (13 years ago)
Author:
wschamai
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modelicaml/org.openmodelica.modelicaml.simulation/src/org/modelica/OMCProxy.java

    r850 r947  
    380380        /* Can't remember why this is needed. But it is. */
    381381        String args[] = {null};
     382
     383        /* set the CORBA read timeout to a larger value as we send huge
     384ammounts of data
     385         * from OMC to MDT
     386         */
     387        System.setProperty("com.sun.CORBA.transport.ORBTCPReadTimeouts", "1:60000:300:1");
    382388       
    383389        ORB orb;
    384         orb = ORB.init(args, null);
    385        
     390        orb = ORB.init(args, null);     
     391
    386392        /* Convert string to object. */
    387         org.omg.CORBA.Object obj = orb.string_to_object(stringifiedObjectReference);
    388         logOMCStatus("Corba IOR:" + stringifiedObjectReference);
     393        org.omg.CORBA.Object obj =
     394orb.string_to_object(stringifiedObjectReference);       
     395
    389396        /* Convert object to OmcCommunication object. */
    390397        omcc = OmcCommunicationHelper.narrow(obj);
     398
    391399    }
    392400   
Note: See TracChangeset for help on using the changeset viewer.