Search in sources :

Example 1 with ResourceAdapterDeploymentRegistryService

use of org.jboss.as.connector.services.resourceadapters.deployment.registry.ResourceAdapterDeploymentRegistryService in project wildfly by wildfly.

the class RaDeploymentActivator method activateServices.

public void activateServices(final ServiceTarget serviceTarget) {
    // add resources here
    serviceTarget.addService(ConnectorServices.IRONJACAMAR_MDR, mdrService).install();
    RaRepositoryService raRepositoryService = new RaRepositoryService();
    serviceTarget.addService(ConnectorServices.RA_REPOSITORY_SERVICE, raRepositoryService).addDependency(ConnectorServices.IRONJACAMAR_MDR, MetadataRepository.class, raRepositoryService.getMdrInjector()).addDependency(ConnectorServices.TRANSACTION_INTEGRATION_SERVICE, TransactionIntegration.class, raRepositoryService.getTransactionIntegrationInjector()).install();
    // Special resource adapter repository and bootstrap context for non-JTA datasources
    NonJTADataSourceRaRepositoryService nonJTADataSourceRaRepositoryService = new NonJTADataSourceRaRepositoryService();
    serviceTarget.addService(ConnectorServices.NON_JTA_DS_RA_REPOSITORY_SERVICE, nonJTADataSourceRaRepositoryService).addDependency(ConnectorServices.IRONJACAMAR_MDR, MetadataRepository.class, nonJTADataSourceRaRepositoryService.getMdrInjector()).install();
    ManagementRepositoryService managementRepositoryService = new ManagementRepositoryService();
    serviceTarget.addService(ConnectorServices.MANAGEMENT_REPOSITORY_SERVICE, managementRepositoryService).install();
    ResourceAdapterDeploymentRegistryService registryService = new ResourceAdapterDeploymentRegistryService();
    serviceTarget.addService(ConnectorServices.RESOURCE_ADAPTER_REGISTRY_SERVICE, registryService).addDependency(ConnectorServices.IRONJACAMAR_MDR).install();
}
Also used : ManagementRepositoryService(org.jboss.as.connector.services.resourceadapters.repository.ManagementRepositoryService) NonJTADataSourceRaRepositoryService(org.jboss.as.connector.services.rarepository.NonJTADataSourceRaRepositoryService) MetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository) RaRepositoryService(org.jboss.as.connector.services.rarepository.RaRepositoryService) NonJTADataSourceRaRepositoryService(org.jboss.as.connector.services.rarepository.NonJTADataSourceRaRepositoryService) TransactionIntegration(org.jboss.jca.core.spi.transaction.TransactionIntegration) ResourceAdapterDeploymentRegistryService(org.jboss.as.connector.services.resourceadapters.deployment.registry.ResourceAdapterDeploymentRegistryService)

Aggregations

NonJTADataSourceRaRepositoryService (org.jboss.as.connector.services.rarepository.NonJTADataSourceRaRepositoryService)1 RaRepositoryService (org.jboss.as.connector.services.rarepository.RaRepositoryService)1 ResourceAdapterDeploymentRegistryService (org.jboss.as.connector.services.resourceadapters.deployment.registry.ResourceAdapterDeploymentRegistryService)1 ManagementRepositoryService (org.jboss.as.connector.services.resourceadapters.repository.ManagementRepositoryService)1 MetadataRepository (org.jboss.jca.core.spi.mdr.MetadataRepository)1 TransactionIntegration (org.jboss.jca.core.spi.transaction.TransactionIntegration)1