________________________________________
From: Jakub 1983 [[email protected]]
Subject: <resource-ref> in web.xml

when I define database conn in context.xml, resource-ref is not needed at
all, so what is it actually for ?

**************************************************************
You need something to lookup from your Java src file:

Context ctx = new InitialContext();
ds = (DataSource) 
ctx.lookup("java:comp/env/jdbc/whatever_you_called_this_in_resource-ref"); 
(res-ref-name that is)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to