1 Reply Latest reply: Jan 20, 2005 11:30 AM by David Tauzell RSS

Wrong ManagedConnectionFactory sent to allocateConnection

David Tauzell Newbie

This error happened today after my application had been running for serveral days:

org.jboss.util.NestedSQLException: Wrong ManagedConnectionFactory sent to allocateConnection!;


I am running JBoss 3.2.6. I checked my *-ds.xml files to see if somebody had redeployed or touched them and they haven't changed since the server was restarted.

Any ideas as to what could be going on here?

One think I noticed in my code is that I get a DataSource in the ejbCreate() method and then hold onto that forever. Is that a bad idea? We had been running this under 3.0.8 for a while and didn't notice this problems with the ManagedConnectionFactory.