@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { if (deploymentHasPersistenceProvider(phaseContext.getDeploymentUnit())) { // finish registration of persistence provider PersistenceProviderHandler.finishDeploy(phaseContext); } // only install PUs with property Configuration.JPA_CONTAINER_CLASS_TRANSFORMER = false (since they weren't started before) // this allows @DataSourceDefinition to work (which don't start until the Install phase) PersistenceUnitServiceHandler.deploy(phaseContext, false, platform); }
processorTarget.addDeploymentProcessor(JPAExtension.SUBSYSTEM_NAME, Phase.INSTALL, Phase.INSTALL_PERSISTENTUNIT, new PersistenceCompleteInstallProcessor(platform));
processorTarget.addDeploymentProcessor(JPAExtension.SUBSYSTEM_NAME, Phase.INSTALL, Phase.INSTALL_PERSISTENTUNIT, new PersistenceCompleteInstallProcessor(platform));
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { if (deploymentHasPersistenceProvider(phaseContext.getDeploymentUnit())) { // finish registration of persistence provider PersistenceProviderHandler.finishDeploy(phaseContext); } // only install PUs with property Configuration.JPA_CONTAINER_CLASS_TRANSFORMER = false (since they weren't started before) // this allows @DataSourceDefinition to work (which don't start until the Install phase) PersistenceUnitServiceHandler.deploy(phaseContext, false, platform); }