49 |
import gnu.CORBA.NamingService.NameParser; |
import gnu.CORBA.NamingService.NameParser; |
50 |
import gnu.CORBA.NamingService.NamingServiceTransient; |
import gnu.CORBA.NamingService.NamingServiceTransient; |
51 |
import gnu.CORBA.Poa.gnuForwardRequest; |
import gnu.CORBA.Poa.gnuForwardRequest; |
52 |
import gnu.CORBA.interfaces.gnuSocketFactory; |
import gnu.CORBA.interfaces.SocketFactory; |
53 |
|
|
54 |
import org.omg.CORBA.BAD_OPERATION; |
import org.omg.CORBA.BAD_OPERATION; |
55 |
import org.omg.CORBA.BAD_PARAM; |
import org.omg.CORBA.BAD_PARAM; |
450 |
/** |
/** |
451 |
* The producer of the client and server sockets for this ORB. |
* The producer of the client and server sockets for this ORB. |
452 |
*/ |
*/ |
453 |
public gnuSocketFactory socketFactory = DefaultSocketFactory.Singleton; |
public SocketFactory socketFactory = DefaultSocketFactory.Singleton; |
454 |
|
|
455 |
/** |
/** |
456 |
* Create the instance of the Functional ORB. |
* Create the instance of the Functional ORB. |
1623 |
); |
); |
1624 |
} |
} |
1625 |
|
|
1626 |
if (props.containsKey(gnuSocketFactory.PROPERTY)) |
if (props.containsKey(SocketFactory.PROPERTY)) |
1627 |
{ |
{ |
1628 |
String factory = null; |
String factory = null; |
1629 |
try |
try |
1630 |
{ |
{ |
1631 |
factory = props.getProperty(gnuSocketFactory.PROPERTY); |
factory = props.getProperty(SocketFactory.PROPERTY); |
1632 |
if (factory!=null) |
if (factory!=null) |
1633 |
socketFactory = (gnuSocketFactory) |
socketFactory = (SocketFactory) |
1634 |
ObjectCreator.forName(factory).newInstance(); |
ObjectCreator.forName(factory).newInstance(); |
1635 |
} |
} |
1636 |
catch (Exception ex) |
catch (Exception ex) |