Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

context variable

Didier McGillis

2005-02-03


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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.