发布于 2012-10-23 00:58:25
我在生产中使用了jSMPP。这个库最好的地方是许多低级的事情都在幕后发生,deliver_sm_resp也是如此:-)
enquery_link和enquery_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和enquireLinkTimer的值存储在属性文件中。
jSMPP是一个非常酷的库,我喜欢它:-)
https://stackoverflow.com/questions/10465728
复制相似问题