You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Didier McGillis <co...@hotmail.com> on 2005/02/03 16:18:06 UTC

context variable

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