appContext = new ClassPathXmlApplicationContext("fwspring.xml");
IDaoFactory idf = (IDaoFactory) appContext.getBean("ibatisDao");
SecurityChain sc = idf.securityChainDao().load(chainName);
if(sc instanceof SecurityChainByDate)
{
SecurityChainByDate scbd = (SecurityChainByDate)sc;
for(int i=0;i<scbd.getRollDates().length;i++)
{
System.out.println(scbd.getRollDates()[i]+"\t\t"+scbd.getValidInstrumentIDs()[i]);
}
}
}