Search in sources :

Example 1 with RemotingTransactionService

use of org.wildfly.transaction.client.provider.remoting.RemotingTransactionService in project wildfly by wildfly.

the class RemotingTransactionServiceService method start.

public void start(final StartContext context) throws StartException {
    final RemotingTransactionService remotingTransactionService = RemotingTransactionService.builder().setEndpoint(endpointInjector.getValue()).setTransactionContext(localTransactionContextInjector.getValue()).build();
    try {
        registration = remotingTransactionService.register();
    } catch (ServiceRegistrationException e) {
        throw new StartException(e);
    }
    value = remotingTransactionService;
}
Also used : ServiceRegistrationException(org.jboss.remoting3.ServiceRegistrationException) StartException(org.jboss.msc.service.StartException) RemotingTransactionService(org.wildfly.transaction.client.provider.remoting.RemotingTransactionService)

Aggregations

StartException (org.jboss.msc.service.StartException)1 ServiceRegistrationException (org.jboss.remoting3.ServiceRegistrationException)1 RemotingTransactionService (org.wildfly.transaction.client.provider.remoting.RemotingTransactionService)1