Big Problem: JCA Adapter can't be undeployed on SAP XI!!
I'm developing a JCA adapter on SAP XI. In the adapter internally, it use "SAPAdapterResources.startRunnable" to starts three threads to perform some specific tasks. These threads are started and stoped in start() and stop() method in "SPIManagedConnectionFactory" class.
We are facing a big problem now. Sometimes, after a XI server restart, the JCA adapter cannot be started correctly and cause some XI services under sap.com package not started (The adapter are packaged under sap.com and be listed ahead of most SAP internal applications, the log of the adapter reports an error timely: ModuleProcessor cannot be found by JDNI).
We also found if above issue happened, the JCA adapter can't be undeployed via SDM!!
Anyone knows why this issue happen? Thanks very much!