Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Server connector and AutoStart

21 views
Skip to first unread message

Franzw

unread,
Jul 8, 2011, 2:43:28 AM7/8/11
to
I have an ITIM adapter that uses the DSMLv2SOAPServerConnector and
while trying to debug a problem I was hit be an "inconvenience" trying
to run the adapter in the debugger.

When the AL is also available in the configuration AutoStart list it
seems that the ITDI GUI starts the server listener twice - and
although only one of the instances fails the server is actually
listening on the specified port but is defunct.

Removing the AutoStart entry fixes the problem - but this is
inconvenient as I now how to add it back again to make it work in
service mode.

Should I report this as a PMR (ITDI is 7.0 FP6) ?

Regards
Franz Wolfhagen

Eddie Hartman

unread,
Jul 9, 2011, 9:28:45 AM7/9/11
to

You could try using a semaphore-like value that your AL checks before
starting. For example, in the AL Before Init Hook you could have
something like this:
----
lock = java.lang.System.getProperties().get("myLock")
if (lock != null) {
java.lang.System.getProperties().set("myLock", "locked")
} else {
task.shutdown() // stop the AL
}
----
I have not tested this myself (at the local store here in the
mountains - and they have installed wireless!). But hopefully this
will stop the doubled-up starting the of the server mode Connector.

And on second thought, doesn't the second server mode based AL fail
when the port is already in use?
-Eddie

0 new messages