You code should look like:

DataSource ds = null;
  | try {
  |  ds = ctx.lookup(...);
  |  --do database stuff --
  | } finally {
  |  if (ds != null) ds.close();
  | }

If you don't close the datasource before exiting the method, you get that 
warning.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002989#4002989

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002989
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to