This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
my project i used nearly 50 struts config file.In each xml file we defined datasource and getting connection .the problem is i was used 50 struts config file so 50 connection pooling is created.please tell me how to use single datasource to all sub module without defined seperate in each xml.
i tried context.getAttribute(Action.DATA_SOURCE_KEY).BUT I this is deprecated
please tell me
Judge a man by his questions rather than his answers --Voltaire
SCJP 1.5 97%
FilterDispatchAction.java:293: cannot find symbol symbol : variable DATA_SOURCE_KEY location: class org.apache.struts.action.Action dataSource =(javax.sql.DataSource)context.getAttribute(Action.DATA_SOURCE_KEY);