Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348932 - MOXy should provide support for session customizer in eclipselink-oxm.xml
Summary: MOXy should provide support for session customizer in eclipselink-oxm.xml
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 378192
Blocks:
  Show dependency tree
 
Reported: 2011-06-09 13:16 EDT by Shaun Smith CLA
Modified: 2022-06-09 10:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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