Examples of JPAService


Examples of org.jboss.as.jpa.service.JPAService

        OperationFailedException {

        final String dataSourceName = resolvedValue.asString();
        final ServiceRegistry registry = context.getServiceRegistry(true);
        ServiceController<?> sc = registry.getRequiredService(JPAService.SERVICE_NAME);
        JPAService jpaService = JPAService.class.cast(sc.getService());
        handbackHolder.setHandback(JPAService.getDefaultDataSourceName());
        jpaService.setDefaultDataSourceName(dataSourceName);

        return false;
    }
View Full Code Here

Examples of org.jboss.as.jpa.service.JPAService

    protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, String handback) throws
        OperationFailedException {

        final ServiceRegistry registry = context.getServiceRegistry(true);
        ServiceController<?> sc = registry.getRequiredService(JPAService.SERVICE_NAME);
        JPAService jpaService = JPAService.class.cast(sc.getValue());
        jpaService.setDefaultDataSourceName(handback);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.