Search in sources :

Example 1 with ManagementRepositoryService

use of org.jboss.as.connector.services.resourceadapters.repository.ManagementRepositoryService 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.getCachedCapabilityServiceName(TRANSACTION_INTEGRATION_CAPABILITY_NAME), 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();
    final ServiceBuilder sb = serviceTarget.addService(ConnectorServices.RESOURCE_ADAPTER_REGISTRY_SERVICE, registryService);
    sb.requires(ConnectorServices.IRONJACAMAR_MDR);
    sb.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) NonJTADataSourceRaRepositoryService(org.jboss.as.connector.services.rarepository.NonJTADataSourceRaRepositoryService) RaRepositoryService(org.jboss.as.connector.services.rarepository.RaRepositoryService) TransactionIntegration(org.jboss.jca.core.spi.transaction.TransactionIntegration) ResourceAdapterDeploymentRegistryService(org.jboss.as.connector.services.resourceadapters.deployment.registry.ResourceAdapterDeploymentRegistryService) ServiceBuilder(org.jboss.msc.service.ServiceBuilder)

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 ServiceBuilder (org.jboss.msc.service.ServiceBuilder)1