On 24 Bře, 10:36, mayur <mayurbhatkha...@gmail.com> wrote: > Try putting try-catch block for close methods in finally block .. > Dont forget to print stack.
That's exactly what DBUtils.close() does. My question is, what services provide the JEE container for the Session Bean. It handles the transactions (unless the bean is marked as @TransactionManagement(TransactionManagementType.BEAN)) . It provides DB connection pooling. Does the JEE container also also close the resources in case of the exception, i.e. in case of the rollback? Or do I have to take care of closing resources like in the normal Java application? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---