*/
public void _connect() {
boolean result = true ;
AcceptorThread acceptorThread = null;
XAcceptor xAcceptor = null ;
XConnection aCon = null;
XInterface x = null;
// create the acceptor
try {
x = (XInterface) (
(XMultiServiceFactory)tParam.getMSF()).createInstance
("com.sun.star.connection.Acceptor") ;
} catch (com.sun.star.uno.Exception e) {
e.printStackTrace(log) ;
throw new StatusException("Can't create service", e) ;
}
xAcceptor = (XAcceptor)UnoRuntime.queryInterface(XAcceptor.class, x);
acceptorThread = new AcceptorThread(xAcceptor) ;
acceptorThread.start() ;
try {
Thread.sleep(500);
}
catch (java.lang.InterruptedException e) {}
// connect to acceptor
try {
aCon = oObj.connect(connectString);
if (aCon == null)
log.println("Connector returned: null") ;
else
log.println("Connector returned: " + aCon.getDescription()) ;
try {
acceptorThread.join(30 * 1000) ;
} catch(InterruptedException e) {}