/* */
/* 273 */ if (mesList.isEmpty())
/* */ continue;
/* 275 */ if (trace) log.trace("there are " + mesList.size() + " messages to send to session");
/* */
/* 277 */ ServerSession serverSession = this.serverSessionPool.getServerSession();
/* 278 */ JBossSession session = (JBossSession)serverSession.getSession();
/* */
/* 280 */ MessageListener listener = session.getMessageListener();
/* */
/* 282 */ if (listener == null)
/* */ {
/* 285 */ if (trace) log.trace(this + ": session " + session + " did not have a set MessageListener");
/* */ }
/* */
/* 288 */ for (int i = 0; i < mesList.size(); i++)
/* */ {
/* 290 */ MessageProxy m = (MessageProxy)mesList.get(i);
/* 291 */ session.addAsfMessage(m, this.consumerID, this.queueName, this.maxDeliveries, this.sess, this.shouldAck);
/* 292 */ if (!trace) continue; log.trace("added " + m + " to session");
/* */ }
/* */
/* 295 */ if (trace) log.trace(this + " starting serverSession " + serverSession);
/* */
/* 297 */ serverSession.start();
/* */
/* 299 */ if (trace) log.trace(this + "'s serverSession processed messages");
/* */
/* 301 */ mesList.clear();
/* */ }