This content has been marked as final.
Show 1 reply
-
1. Re: EJB and mysql
darranl Apr 17, 2005 6:52 AM (in response to joseluisherrero)When programming using Java the exceptions contain a lot of information about what the problem is, instead of converting it to an int you should either rethrow the exception or at the very least log the details i.e. Message, exception classname and stack trace.
Is there a reason why you are avoiding the connection pool mechanism provided by the application server i.e. You configure a pool of connections and the session bean uses JNDI to get a connection.