@Override
	public void onMessage(final Message message) {
		try {
			boolean isRollBack = false;
			try {
				ObjectMessage m = (ObjectMessage) message;
				System.out.println(m.getObject());
				//处理消息 在service处理压力比较大时可以使用多线程
			} catch (Exception e) {
				LOGGER.error("多线程存储广告数据到数据库出错", e);
				if (transacted) {
					try {
						session.rollback();
						isRollBack = true;
					} catch (JMSException je) {
						LOGGER.error("回滚消息出错!", je);
					}
				}
			}
			// 提交消息
			if (transacted && !isRollBack) {
				session.commit();
			} else if (ackMode == Session.CLIENT_ACKNOWLEDGE) {
				message.acknowledge();
			}
		} catch (JMSException e) {
			LOGGER.error("ProcessRecordsListener" + e);
		}
	}