tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Didier McGillis" <codesmo...@hotmail.com>
Subject context variable
Date Thu, 03 Feb 2005 15:18:06 GMT
Hey everyone.

I'm brain dead or something but I am setting a variable to the servlet 
context.  Inside that there is a database connection and query of the 
database, however i need to throw a DataLayerException, and I'm not sure 
where.

CODE ##########################################
public void init(ServletConfig config) throws ServletException{
Connection Connection = null;
Connection = ConnectionFactory.getConnection();
synchronized(Connection)

< Connection = ConnectionFactory.getConnection(); > is where its asking for 
the Exception.

And Ben if this looks familar it is :)



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message