Operation execution task is implemented by Java thread from thread. One independent task/thread is for one execution. After the operation is executed over or exception is thrown during the operation, the Response Handler will be called to send reply SMS message.
The operation definition and implementation are complying with UDTT operation. To map the data from SMS message content to operation context, the operation context should contains all the data fields as in SMS Command definition. Following is an example for operation definition:
To set the reply message for SMS request, the operation implementation should set the reply message in an operation context data filed name SMSConstant.REPLYMSG. Following is an example for operation definition and implementation:
package com.ibm.btt.test; import com.ibm.btt.base.BTTServerOperation; import com.ibm.btt.channel.sms.SMSHandlerConstant; @SuppressWarnings("serial") public class TransferOperation extends BTTServerOperation { public void execute() throws Exception { try { Thread.sleep(200); } catch (Exception e) { e.printStackTrace(); }