我想维护池JSMPP连接以便发送短信。根据要求我需要定义MIN和MAX连接,但是当前的JSMPP库允许我们创建单个连接。
/**
* Default constructor of {@link SMPPSession}. The next action might be
* connect and bind to a destination message center.
*
* @see #connectAndBind(String, int, BindType, String, String, String, TypeOfNumber, NumberingPlanIndicator, String)
*/
public SMPPSession() {
this(new SynchronizedPDUSender(new DefaultPDUSender(new DefaultComposer())),
new DefaultPDUReader(),
SocketConnectionFactory.getInstance());
}
如何为连接池扩展JSMPP库。
由于