reformatted ugly code

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497614 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-01-18 22:52:32 +00:00
parent 396efa6ae6
commit a40baca273
1 changed files with 14 additions and 13 deletions

View File

@ -171,19 +171,20 @@ public class JMSRemoteCommitProvider
// create a subscriber.
TopicSubscriber s = _session.createSubscriber(topic, null,
/* noLocal: */ true);
MessageListener l = getMessageListener();
s.setMessageListener(l);
_connection.start();
_connection.setExceptionListener(this);
if (log.isInfoEnabled())
log.info(s_loc.get("jms-start-listener", _topicName));
} catch (OpenJPAException ke) {
throw ke;
} catch (Exception e) {
throw new UserException(s_loc.get("jms-provider-config",
_topicName, _tcfName), e).setFatal(true);
}
}
MessageListener l = getMessageListener();
s.setMessageListener(l);
_connection.start();
_connection.setExceptionListener(this);
if (log.isInfoEnabled())
log.info(s_loc.get("jms-start-listener", _topicName));
} catch (OpenJPAException ke) {
throw ke;
} catch (Exception e) {
throw new UserException(s_loc.get("jms-provider-config",
_topicName, _tcfName), e).setFatal(true);
}
}
/* *
* Returns a {@link javax.jms.MessageListener} capable of