de.iai.ilcd.persistence
Class JPAEclipseLinkSessionCustomizer

java.lang.Object
  extended by de.iai.ilcd.persistence.JPAEclipseLinkSessionCustomizer
All Implemented Interfaces:
org.eclipse.persistence.config.SessionCustomizer

public class JPAEclipseLinkSessionCustomizer
extends java.lang.Object
implements org.eclipse.persistence.config.SessionCustomizer

See http://wiki.eclipse.org/Customizing_the_EclipseLink_Application_(ELUG) Use for clients that would like to use a JTA SE pu instead of a RESOURCE_LOCAL SE pu.


Field Summary
static org.slf4j.Logger logger
           
 
Constructor Summary
JPAEclipseLinkSessionCustomizer()
           
 
Method Summary
 void customize(org.eclipse.persistence.sessions.Session session)
          Get a dataSource connection and set it on the session with lookupType=STRING_LOOKUP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.slf4j.Logger logger
Constructor Detail

JPAEclipseLinkSessionCustomizer

public JPAEclipseLinkSessionCustomizer()
Method Detail

customize

public void customize(org.eclipse.persistence.sessions.Session session)
               throws java.lang.Exception
Get a dataSource connection and set it on the session with lookupType=STRING_LOOKUP

Specified by:
customize in interface org.eclipse.persistence.config.SessionCustomizer
Throws:
java.lang.Exception