// get the data from the session
ValueListParameters listParameters = (ValueListParameters)session.getAttribute("ticketPieChartParams");
// get the data from the EJB
ChartHome chartHome = (ChartHome)CVUtility.getHomeObject("com.centraview.chart.ChartHome", "Chart");
Chart chartRemote = null;
try
{
chartRemote = chartHome.create();
}catch(CreateException e){
logger.error("[execute] Exception thrown.", e);
throw new ServletException(e);
}
chartRemote.setDataSource(dataSource);