We've detected before application start .We think could be java virtual machine when we put the agent option in VM(-javaagent:c:/eclipselink/eclipselink.jar ), scan occurs. After that, we create by code a new entitimanagerfactory changing properties at runtime passing the persistence unit we wnat to load, then obviously scan ocurs again because we create an entitymanagerfactory.

It is possible to avoid first scan? We have more than 300 entities and we don't need all to load the aplication.
Notice that we hace a splashscreen , and a cause of first scannig it takes many seconds to load ( seeing persistence log )

If not possible, can we select with persistenceunit scan and the second one , load it later?