[ 
https://issues.apache.org/jira/browse/OPENJPA-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Zowalla resolved OPENJPA-1860.
--------------------------------------
    Resolution: Won't Fix

Closing as obsolete during backlog cleanup: a usage question (answer: 
openjpa.ClassResolver or the thread context classloader); no code change 
requested. Please reopen if this still happens with OpenJPA 4.x.

> How do I get OpenJPA to use my custom classloader to load Entity classes?
> -------------------------------------------------------------------------
>
>                 Key: OPENJPA-1860
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1860
>             Project: OpenJPA
>          Issue Type: Question
>          Components: jpa
>    Affects Versions: 2.0.1
>         Environment: OpenJPA 2.0.1 Java 1.6-22
>            Reporter: Hugh
>            Priority: Major
>         Attachments: ORM.xml, QueueData.java, persistence.xml
>
>
> I have written a custom classloader and I can't work out how to get OpenJPA 
> to use it to load my entity classes.
> I've followed instructions I found to set 
> Thread.currentThread().setContextClassLoader() at startup before loading any 
> EntityManager and it seems to load the OpenJPA classes and a lot of others, 
> but not the class I'm interested in.
> Is this the right approach?
> If so, where have I gone wrong? 
> (http://openjpa.208410.n2.nabble.com/Dynamic-Table-value-td5645906.html)
> If not, how should this be done?
> Is there some sort of guide to accomplishing this that someone could point me 
> to?
> Thanks.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to