/** * Create a new remote EJB service instance. * * @param association the association to use (must not be {@code null}) * @param transactionService the Remoting transaction server to use (must not be {@code null}) * @return the remote EJB service instance (not {@code null}) */ public static RemoteEJBService create(final Association association, final RemotingTransactionService transactionService) { Assert.checkNotNullParam("association", association); Assert.checkNotNullParam("transactionService", transactionService); return new RemoteEJBService(association, transactionService); }
@Override public void start(StartContext context) throws StartException { final AssociationService associationService = associationServiceInjectedValue.getValue(); final Endpoint endpoint = endpointValue.getValue(); Executor executor = executorService.getOptionalValue(); if (executor != null) { associationService.setExecutor(executor); } RemoteEJBService remoteEJBService = RemoteEJBService.create( associationService.getAssociation(), remotingTransactionServiceInjectedValue.getValue() ); remoteEJBService.serverUp(); // Register an EJB channel open listener OpenListener channelOpenListener = remoteEJBService.getOpenListener(); try { registration = endpoint.registerService(EJB_CHANNEL_NAME, channelOpenListener, this.channelCreationOptions); } catch (ServiceRegistrationException e) { throw new StartException(e); } }
/** * Create a new remote EJB service instance. * * @param association the association to use (must not be {@code null}) * @param transactionService the Remoting transaction server to use (must not be {@code null}) * @return the remote EJB service instance (not {@code null}) */ public static RemoteEJBService create(final Association association, final RemotingTransactionService transactionService) { Assert.checkNotNullParam("association", association); Assert.checkNotNullParam("transactionService", transactionService); return new RemoteEJBService(association, transactionService); }
/** * Create a new remote EJB service instance. * * @param association the association to use (must not be {@code null}) * @param transactionService the Remoting transaction server to use (must not be {@code null}) * @return the remote EJB service instance (not {@code null}) */ public static RemoteEJBService create(final Association association, final RemotingTransactionService transactionService) { Assert.checkNotNullParam("association", association); Assert.checkNotNullParam("transactionService", transactionService); return new RemoteEJBService(association, transactionService); }