In logica smpp I need to stored response message ID in asynchronous mode.
if (sb.asynchronous)
{
System.out.println("Submit request " + request.debugString());
sb.getSession().submit(request);
//messageId = response.getMessageId();
} else {
response = sb.getSession().submit(request);
messageId = response.getMessageId().trim();
}
In the above code. How we can get messageID in asynchronous mode.
You can get Message id by getSmDefaultMsgId()
by calling it with SubmitSM
's object . like below:
if (sb.asynchronous)
{
System.out.println("Submit request " + request.debugString());
sb.getSession().submit(request);
messageId = request.getSmDefaultMsgId();
}
For more documentation you can read this tutorial
Thanks. Let me know if it helped.