public void detach(ZeroMQWireSource source, PhysicalWireTarget target) { URI uri = source.getCallbackUri() != null ? source.getCallbackUri() : target.getUri(); broker.releaseReceiver(uri); }
URI targetUri = target.getUri(); throw new Fabric3Exception("No matching method found when wiring " + sourceUri + " to " + targetUri); } catch (NoSuchMethodException e) { URI sourceUri = source.getUri(); URI targetUri = target.getUri(); throw new Fabric3Exception("No matching method found when wiring " + sourceUri + " to " + targetUri, e);
URI targetUri = target.getUri(); throw new Fabric3Exception("No matching method found when wiring " + sourceUri + " to " + targetUri); } catch (NoSuchMethodException e) { URI sourceUri = source.getUri(); URI targetUri = target.getUri(); throw new Fabric3Exception("No matching method found when wiring " + sourceUri + " to " + targetUri, e);
public void detach(JmsWireSource source, PhysicalWireTarget target) throws Fabric3Exception { containerManager.unregister(target.getUri()); // FABRICTHREE-544: release must be done after unregistering since a container may attempt to receive a message from a closed connection resolver.release(source.getMetadata().getConnectionFactory()); }
public void attach(ZeroMQWireSource source, PhysicalWireTarget target, Wire wire) { URI uri = source.getCallbackUri() != null ? source.getCallbackUri() : target.getUri(); ClassLoader loader = target.getClassLoader(); List<InvocationChain> chains = ZeroMQAttacherHelper.sortChains(wire); ZeroMQMetadata metadata = source.getMetadata(); broker.connectToReceiver(uri, chains, metadata, loader); }
private void processCallback(Wire wire, PhysicalWireTarget targetDefinition, JavaComponent source, Injectable injectable, Class<?> type) { URI callbackUri = targetDefinition.getUri(); ScopeContainer container = source.getScopeContainer(); Supplier<?> supplier = source.getSupplier(injectable); boolean multiThreaded = Scope.COMPOSITE.equals(container.getScope()); if (supplier == null) { supplier = proxyService.createCallbackSupplier(type, multiThreaded, callbackUri, wire); } else { supplier = proxyService.updateCallbackSupplier(supplier, type, multiThreaded, callbackUri, wire); } source.setSupplier(injectable, supplier); }
public void attach(JmsWireSource source, PhysicalWireTarget target, Wire wire) throws Fabric3Exception { URI serviceUri = target.getUri(); ClassLoader loader = source.getClassLoader(); SessionType trxType = source.getSessionType(); WireHolder wireHolder = createWireHolder(wire, source, target); ResolvedObjects objects = resolveAdministeredObjects(source); ContainerConfiguration configuration = new ContainerConfiguration(); ConnectionFactory requestFactory = objects.getRequestFactory(); javax.jms.Destination requestDestination = objects.getRequestDestination(); ConnectionFactory responseFactory = objects.getResponseFactory(); javax.jms.Destination responseDestination = objects.getResponseDestination(); List<BindingHandler<Message>> handlers = createHandlers(source); ServiceListener listener = new ServiceListener(wireHolder, responseDestination, responseFactory, trxType, loader, handlers, monitor); configuration.setDestination(requestDestination); configuration.setFactory(requestFactory); configuration.setMessageListener(listener); configuration.setUri(serviceUri); configuration.setSessionType(trxType); populateConfiguration(configuration, source.getMetadata()); if (containerManager.isRegistered(serviceUri)) { // the wire has changed and it is being reprovisioned containerManager.unregister(serviceUri); } AdaptiveMessageContainer container = containerFactory.create(configuration); containerManager.register(container); }