[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: PagingManagerImpl::getPageStore

timfox do-not-reply at jboss.com
Mon Nov 17 04:14:21 EST 2008


One problem with that code is that in case of race start() will be called on the old store even if it's already started, i.e. it should read:


  | if (oldStore != null)
  | {
  |             store = oldStore;
  | }
  | else
  | {
  |          store.start();
  | }
  | 

You could just have the store ignore duplicate calls to start(). but that's a bit messy imho

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189727#4189727

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189727



More information about the jboss-dev-forums mailing list