Fwd: Correct way to un-initilize?

"Jens Tinfors" <[email protected]> Wed, 3 Jan 2007 13:50:12 +0100
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
eerhm, sorry bout that!

what i wanted to ask is this:
I have an SIP tester application that holds one or more SipStack instances
which in turn has its ListeningPoint, SIPListener and Provider.
Problem is how and in which order should i shutdown my app when done?
Today my app shuts down in the following manner/order:
sipProvider.removeSipListener(sipListenerQueue);
sipStack.deleteListeningPoint(listeningPoint);
sipProvider.removeListeningPoint(listeningPoint);
sipStack.deleteSipProvider(sipProvider);

but fails when doing sipStack.deleteListeningPoint(listeningPoint);
with a:
javax.sip.ObjectInUseException: Object is in use

Yes, the transaction(s) is often in state other than terminated when i try
to shutdown. And so I ask; is that the reason to why i get the
ObjectInUseException??
And whats the proper way to shutdown?

thanks/j =)

---------- Forwarded message ----------
From: Jens Tinfors <[email protected]>
Date: Jan 3, 2007 1:39 PM
Subject: Correct way to un-initilize?
To: [email protected]

Hi there and a happy new 2007!

_______________________________________________
nist-sip mailing list
[email protected]
http://www-x.antd.nist.gov/mailman/listinfo/nist-sip