Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348932

Summary: MOXy should provide support for session customizer in eclipselink-oxm.xml
Product: z_Archived Reporter: Shaun Smith <shaun.smith>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: blaise.doughan, martin.grebac
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 378192    
Bug Blocks:    

Description Shaun Smith CLA 2011-06-09 13:16:35 EDT
As per the title, MOXy should provide support for declaring a session customizer in eclipselink-oxm.xml.  Currently only descriptor customizers are supported.
Comment 1 Blaise Doughan CLA 2012-06-04 07:20:00 EDT
WORKAROUND

A SessionEventListener can be specified in the properties used to create the JAXBContext:

   Map<String, Object> properties = new HashMap<String,Object>(1);
   properties.put(JAXBContextProperties.SESSION_EVENT_LISTENER, sessionEventListener);
   JAXBContext jc = JAXBContext.newInstance(new Class[] {Root.class}, properties);
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:19:26 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink