Comment #5 on issue 598 by [email protected]: Persist Extension: PersistService.start() cannot be called multiple times
http://code.google.com/p/google-guice/issues/detail?id=598

There is another related problem:

Sequence start() -> stop() -> start() throws the same exception even if the restart should be possible.

The reason is that start checks for the emFactory to be null but it is never reset on stop().


  public synchronized void start() {
Preconditions.checkState(null == emFactory, "Persistence service was already initialized.");
     ...
  }

  public synchronized void stop() {
Preconditions.checkState(emFactory.isOpen(), "Persistence service was already shut down.");
    emFactory.close();
  }


--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to