コード例 #1
0
 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);
 }
コード例 #2
0
 public void detach(JmsConnectionSource source, PhysicalConnectionTarget target)
     throws Fabric3Exception {
   containerManager.unregister(source.getUri());
   resolver.release(source.getMetadata().getConnectionFactory());
 }