Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disconnect jsmpp connection while using auto reconnect #63

Open
kalebtade opened this issue Feb 16, 2021 · 0 comments
Open

How to disconnect jsmpp connection while using auto reconnect #63

kalebtade opened this issue Feb 16, 2021 · 0 comments

Comments

@kalebtade
Copy link

I have developed an application using jsmpp library. I used the auto-reconnect class to make the application auto-connect
but when I try to use unbindAndClose() it sends null to #private SMPPSession session = null; ......so the system still do auto-reconnect how to forcefully unbind the system

JButton btnDisconnecct = new JButton("Disconnecct");
btnDisconnecct.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
session.unbindAndClose();
// execService.shutdown();
}
});
btnDisconnecct.setBounds(170, 26, 129, 25);
panel.add(btnDisconnecct);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant