public void _accept() {
boolean result = true ;
AcceptorThread acception = null,
dupAcception = null ;
XAcceptor dupAcceptor = null ;
XConnector xConnector = null ;
// creating services requierd
try {
Object oConnector = ((XMultiServiceFactory)tParam.getMSF()).
createInstance("com.sun.star.connection.Connector") ;
xConnector = (XConnector) UnoRuntime.queryInterface
(XConnector.class, oConnector) ;
XInterface acceptor = (XInterface) ((XMultiServiceFactory)
tParam.getMSF()).createInstance
("com.sun.star.connection.Acceptor") ;
dupAcceptor = (XAcceptor) UnoRuntime.queryInterface
(XAcceptor.class, acceptor) ;
} catch (com.sun.star.uno.Exception e) {
e.printStackTrace(log) ;
throw new StatusException("Can't create service", e) ;
}
// Testing connection to the acceptor
try {
acception = new AcceptorThread(oObj) ;
acception.start() ;
try {
Thread.sleep(500);
}
catch (java.lang.InterruptedException e) {}
XConnection con = xConnector.connect(connectString) ;
if (con == null)
log.println("Connector returned : null") ;
else
log.println("Connector returned : " + con.getDescription()) ;