public void onMessage(Message message)
{
try
{
ObjectMessage m = (ObjectMessage)message;
DealData data = (DealData)m.getObject();
Object[] tdata = new Object[dealTable_.getNumColumns()];
int i = 0;
tdata[i++] = data.getDealType();
tdata[i++] = data.getValueDate();
tdata[i++] = data.getTradingDate();
tdata[i++] = data.getCurrency1();
tdata[i++] = data.getBuySell1();
tdata[i++] = data.getAmount1();
tdata[i++] = data.getCurrency2();
tdata[i++] = data.getBuySell2();
tdata[i++] = data.getAmount2();
tdata[i++] = data.getSpotRate();
tdata[i++] = data.getMarketRate();
dealTable_.addRow(tdata);
}
catch (Exception exception)
{
exception.printStackTrace();