V
V
volk1132014-06-16 17:44:40
Java
volk113, 2014-06-16 17:44:40

How to load JPA entity classes at runtime?

Is it possible at runtime to load a jar containing entity classes that will be picked up by the environment and will use the pesrsistent config of the main application?
In practice, I want to load plugins that can save entities in the database using jpa.
Ideally without restarting the container. JPA implementation of eclipselink.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
protven, 2014-06-17
@protven

Look towards OSGI, it's easy to do there. Sobsno one of the main features of osgi is the connection of new modules without restarting the container. The book Enterprise OSGI in Action has examples for JPA as well.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question