X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=test%2Ftoplink-essentials%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsupport%2Fpersistence%2Ftoplink%2FJndiSessionCustomizer.java;h=bc4a23a091f8b8bd57d5c2869d07524daa518b5c;hb=5e33a52ba36ac928b9863ddd79d2d09f6a308af6;hp=cc2dbd3520d8916f29166f2311d0406d524f268a;hpb=ddf9dde0d0afce66159d78705eddcb530849ed32;p=utils diff --git a/test/toplink-essentials/src/main/java/org/wamblee/support/persistence/toplink/JndiSessionCustomizer.java b/test/toplink-essentials/src/main/java/org/wamblee/support/persistence/toplink/JndiSessionCustomizer.java index cc2dbd35..bc4a23a0 100644 --- a/test/toplink-essentials/src/main/java/org/wamblee/support/persistence/toplink/JndiSessionCustomizer.java +++ b/test/toplink-essentials/src/main/java/org/wamblee/support/persistence/toplink/JndiSessionCustomizer.java @@ -45,7 +45,7 @@ public class JndiSessionCustomizer implements SessionCustomizer { * * */ - public void customize(Session session) throws Exception { + public void customize(Session aSession) throws Exception { JNDIConnector connector = null; Context context = null; @@ -53,7 +53,7 @@ public class JndiSessionCustomizer implements SessionCustomizer { context = new InitialContext(); if (null != context) { - connector = (JNDIConnector) session.getLogin().getConnector(); // possible + connector = (JNDIConnector) aSession.getLogin().getConnector(); // possible // CCE // Change from COMPOSITE_NAME_LOOKUP to STRING_LOOKUP // Note: if both jta and non-jta elements exist this will only @@ -66,11 +66,11 @@ public class JndiSessionCustomizer implements SessionCustomizer { // Or, if you are specifying both JTA and non-JTA in your // persistence.xml then set both connectors to be safe - JNDIConnector writeConnector = (JNDIConnector) session + JNDIConnector writeConnector = (JNDIConnector) aSession .getLogin().getConnector(); writeConnector.setLookupType(JNDIConnector.STRING_LOOKUP); - JNDIConnector readConnector = (JNDIConnector) ((DatabaseLogin) ((ServerSession) session) + JNDIConnector readConnector = (JNDIConnector) ((DatabaseLogin) ((ServerSession) aSession) .getReadConnectionPool().getLogin()).getConnector(); readConnector.setLookupType(JNDIConnector.STRING_LOOKUP);