Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: Re[eclipselink-users] gister Multiple SessionEventListeners/SessionCustomizers

Yes, the persistence.xml properties do not allow duplicate entries for the
same property name.  The issue is in JEE, or in the create factory we are
given a Map, so can't have the same key twice.

Please log a bug for this, we should allow some way to do it, perhaps using
an index, or comma separated values, just using the same key twice though
cannot work in general.

For now just register them in code from a single customizer.



bryans wrote:
> 
> I attempted to register multiple SessionEventListeners in my
> persistence.xml, however it only picked up the last one specified. I then
> found the code and it really only lets you register one.
> 
> I then thought i could register more by creating a SessionCusomizer for
> each EventListener I wanted to register, and register it via code. This
> didn't work out either because, again, looking at the code, it would
> appear you can only register one SessionCustomizer.
> 
> Is this intended? How else should we register multiple
> EventListeners/Customizers. Would it be well received if i posted a JIRA
> enhancement request?
> 
> -B
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://old.nabble.com/Register-Multiple-SessionEventListeners-SessionCustomizers-tp26514803p26581083.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top