示例#1
0
  /**
   * SMS 결과 수신을 위한 Connection 및 Session 생성한다.
   *
   * @throws SMEException
   */
  public void open() throws SMEException {
    this.factReceiver = new SMEConnectionFactoryImpl(connString);
    this.connReceiver = factReceiver.createConnection(smsId, smsPwd); // 아이디와  패스워드입니다.
    this.sessReceiver = connReceiver.createSession();

    this.receiver = sessReceiver.createReceiver();
    this.receiver.setListener(this);
    this.connReceiver.start();

    isConnected = true;
  }