...

View Full Version : Servlet vs POJO



otnj2ee
01-24-2008, 01:20 AM
If a Servlet class requires information from a database, then the servlet container provides JDBC access to the class.

Now if a non-servlet class (POJO) requires information from a database, "who" will provide JDBC access to the class?

Thanks


Scott

shyam
01-25-2008, 05:55 AM
if the pojo is still on the appserver u can use jndi to access the datasource....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum