two_part_test_object tpto = new two_part_test_object(); conn.exportObject("/TestObject", tpto); conn.sendSignal(new TwoPartInterface.TwoPartSignal("/FromObject", tpto)); try { Thread.sleep(1000); } catch (InterruptedException Ie) {}
   public static void main(String[] args) throws Exception   {      System.out.println("get conn");      DBusConnection conn = DBusConnection.getConnection(DBusConnection.SESSION);      System.out.println("get remote");      TwoPartInterface remote = (TwoPartInterface) conn.getRemoteObject("org.freedesktop.dbus.test.two_part_server", "/", TwoPartInterface.class);      System.out.println("get object");      TwoPartObject o = remote.getNew();      System.out.println("get name");      System.out.println(o.getName());      conn.disconnect();   }