According to the Connector 1.5 specification, while an application server shuts down, all resource adapters should be stopped. A resource adapter might hang during shutdown, since shutdown is typically a resource intensive operation. To avoid such a situation, you can set a timeout that aborts resource adapter shutdown if exceeded. The default timeout is 30 seconds per resource adapter module. To configure this timeout:
In the Administration Console, select JMS/Connector Service under the relevant configuration. For details, see the Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Guide.
Use the following command:
asadmin set server-instance.connector-service.shutdown-timeout-in-seconds="num-secs"
For details, see the Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Reference Manual.
The Application Server deactivates all message-driven bean deployments before stopping a resource adapter.