nitingautam / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

Serialization of SMPPSession #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to implement the following scenario where in one JVM i connect and bind 
to SMSC then store the SMPPSession session state to a outputstream in a file 
which can be read by an ObjectInputstream from another JVM to check the staus 
before initiatin a send message but seems the SMPPSession object is not 
serializable as show below from the output.

I'm having issues related to Serializing the SMPPSession output providing the 
following error

162 [Thread-1] INFO org.jsmpp.session.SMPPSession  - Starting EnquireLinkSender
Exception in thread "main" java.io.NotSerializableException: 
org.jsmpp.session.SMPPSession
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
    at org.nelsoft.messaging.SmppTest.main(SmppTest.java:59)

How is it possible to achieve this?

Original issue reported on code.google.com by bilnel...@gmail.com on 11 Jul 2012 at 8:55