private ResolvedObjects resolveAdministeredObjects(JmsConnectionSource source) throws Fabric3Exception { JmsBindingMetadata metadata = source.getMetadata(); ConnectionFactoryDefinition connectionFactory = metadata.getConnectionFactory(); ConnectionFactory requestConnectionFactory = resolver.resolve(connectionFactory); Destination requestDestinationDefinition = metadata.getDestination(); javax.jms.Destination requestDestination = resolver.resolve(requestDestinationDefinition, requestConnectionFactory); return new ResolvedObjects(requestConnectionFactory, requestDestination); }
public void detach(JmsConnectionSource source, PhysicalConnectionTarget target) throws Fabric3Exception { containerManager.unregister(source.getUri()); resolver.release(source.getMetadata().getConnectionFactory()); }