|
Problem |
The
"com.ibm.ejs.cm.exception.IllegalConnectionUseException: Connection is
being used in a way that violates the architecture" error message is
received in WebSphere® Application Server 3.5.5 or higher and WebSphere
Application Server 4.0.x. |
|
Cause |
When this error message is received from WebSphere
Application Server, it means that multi-threaded access of a database
connection is being attempted. This is forbidden in the J2EE™ 1.2 (section
4.2.1) and 1.3 (section 4.1.4) specifications. |
|
Solution |
Typically, this can mean that a user's database connection
code is caching connections or storing JDBC™ connection objects in static
fields; this includes declaring them in the init() method of servlets.
The error message was added into the WebSphere Connection Manager code
in version 4.0 and later fix packs of version 3.5.
|
|