brief: I want to add an unknown entity to my running PU in JavaSE.

My JavaSE client app needs to load new, unknown entities (classes, not objects) from a trusted URLClassLoader. I would like to add these new entities to the existing PU, but this doesn't seem possible in SE without changing the persistence.xml and restarting. As a kludge I can send a persistence.xml with the class and create a new PU, but that doesn't allow interaction with unknown entities in the existing PU. I believe the spec requires all classes to be known at start, but I'm hoping OpenJPA or something else has implemented this dynamic feature(?). Are there any established workarounds for the client here?

Reply via email to