Skip to content

Support lazy initialization within Jaxb2 OXM classes [SPR-5745] #10415

@spring-projects-issues

Description

@spring-projects-issues

Kenny MacLeod opened SPR-5745 and commented

Jaxb2Marshaller and Jaxb2Unmarshaller initialise their JAXBContext objects inside afterPropertiesSet(). In some cases, particularly with large, complex schema bindings, the creation of the JAXBContext can take a long time (>10 seconds). It would be much preferably to create the context lazily, allowing the marshaller/unmarshaller to initialise quickly, and don't create the jaxb context until it is first needed.


Affects: 3.0 M3

Referenced from: commits 58d3e70

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions