Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJPA/JTA eclipselink oracle proxy authentication problem
https://www.eclipse.org/forums/index.php/mv/msg/164239/520044/#msg_520044
My problem is with proxy authentication to an oracle database using eclipselink JTA with an injected Persistence Context / Entity Manager.
Proxy authentication doesn't work when I try to run a JPQL query. The problem appears to be that the entity manager is injected and does not allow for the setting of properties. The JPQL query just runs as the default user.
I guess my question is, does eclipselink support Proxy Authentication to an oracle database using JTA and an injected persistence context?
I don't have immediate access to the exact error at the minute but I think this initial question is to determine if it's an avenue worth continuing with.
The code I'm using to try and authenticate is:
Map emProperties = new HashMap();
emProperties.put("eclipselink.oracle.proxy-type", oracle.jdbc.OracleConnection.PROXYTYPE_USER_NAME);
emProperties.put(oracle.jdbc.OracleConnection.PROXY_USER_NAM E, username);
((org.eclipse.persistence.internal.jpa.EntityManagerImpl)em. getDelegate()).setProperties(emProperties);
//JPQL Query
]]>Karl2010-03-10T22:44:08-00:00Re: JPA/JTA eclipselink oracle proxy authentication problem
https://www.eclipse.org/forums/index.php/mv/msg/164239/520201/#msg_520201
]]>James Sutherland2010-03-11T14:47:01-00:00Re: JPA/JTA eclipselink oracle proxy authentication problem
https://www.eclipse.org/forums/index.php/mv/msg/164239/520398/#msg_520398
I'm using eclipselink 1.1 and JTA 1.0]]>Karl2010-03-12T09:11:01-00:00Re: JPA/JTA eclipselink oracle proxy authentication problem
https://www.eclipse.org/forums/index.php/mv/msg/164239/522418/#msg_522418
]]>James Sutherland2010-03-22T15:23:49-00:00Re: JPA/JTA eclipselink oracle proxy authentication problem
https://www.eclipse.org/forums/index.php/mv/msg/164239/530499/#msg_530499
i have the same issue in my project.
Do you solve this issue in your project? can you help me?