本番環境ではjSMPPを使用しています。このlibの最も良い点は、多くの低レベルのことが舞台裏でdeliver_sm_resp
も起こることです:-)
enquery_link
andenquery_link_resp
コマンドは舞台裏でも発生します。また、次のように作成するときに、このコマンドのタイムアウトを構成することもできますSMPPSession
。
SMPPSession tmpSession = new SMPPSession();
tmpSession.setTransactionTimer(transactionTimer);
tmpSession.setEnquireLinkTimer(enquireLinkTimer);
tmpSession.addSessionStateListener(new SessionStateListenerImpl());
MessageReceiverListenerImpl mrl = new MessageReceiverListenerImpl();
tmpSession.setMessageReceiverListener(mrl);
tmpSession.connectAndBind(remoteIpAddress, remotePort, bindParam);
transactionTimer
とIの値はenquireLinkTimer
プロパティファイルに保存されます。
jSMPPはとてもクールなlibで、私はそれが好きです:-)