-
1. Re: How to get rid of these warning Messages Closing a state
roomy Oct 24, 2003 1:01 AM (in response to chinsag)hmmmmm
Whenever you want to do JDBC on your own in EJBs
your procedure should usually be like that...
1. Get the Datasource from JNDI (not sure if can be cached like Remote EJBs)
2. Get a Connection from the Datasource
3. Create whatever Statements (Prepared or not) you need and execute them.
4. Close all Statements with .close()
5. !!!!! Close the Connection with .close()
If you dont close the connection you get those messages.
Volker -
2. Re: How to get rid of these warning Messages Closing a state
frito Oct 24, 2003 2:06 AM (in response to chinsag)Good practice:
use a try/catch/finally block when you are working on connections and close all statements and connecitons in the finally block.
Greetings,
Frito -
3. Re: How to get rid of these warning Messages Closing a state
milowe Oct 24, 2003 3:42 AM (in response to chinsag)You can turn off the housekeeping by setting
"SpecCompliant" to true in transation-service.xml.
That would get ride off the messages, but you still need to review your code to add those missing close
statements as mention aboved.
/micke