Don't use a static JAXBContext because it has some serious thread contention when creating new unmarshallers.
This commit is contained in:
parent
c34d934a55
commit
54ea94f76b
@ -29,9 +29,9 @@ public class OpenRocketComponentSaver {
|
||||
/**
|
||||
* The JAXBContext. JAXBContext is thread-safe.
|
||||
*/
|
||||
private static JAXBContext context = null;
|
||||
private JAXBContext context = null;
|
||||
|
||||
static {
|
||||
public OpenRocketComponentSaver() {
|
||||
try {
|
||||
context = JAXBContext.newInstance(OpenRocketComponentDTO.class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user