Package org.jboss.jms.util

Examples of org.jboss.jms.util.ThreadContextClassLoaderChanger.restore()


         delegate.setMessageListener(listener);
      }
      finally
      {
         tccc.restore();
      }
   }

   public void run()
   {
View Full Code Here


         ProducerDelegate producerDelegate = delegate.createProducerDelegate((JBossDestination)d);
         return new JBossMessageProducer(producerDelegate);
      }
      finally
      {
         tccc.restore();
      }
   }

  public MessageConsumer createConsumer(Destination d) throws JMSException
  {
View Full Code Here

        
         return new JBossMessageConsumer(cd);
      }
      finally
      {
         tccc.restore();
      }
   }

   public Queue createQueue(String queueName) throws JMSException
   {
View Full Code Here

         return new JBossMessageConsumer(cd);
      }
      finally
      {
         tccc.restore();
      }
   }

   public TopicSubscriber createDurableSubscriber(Topic topic,
                                                  String name,
View Full Code Here

        
         return new JBossQueueBrowser(queue, messageSelector, del);
      }
      finally
      {
         tccc.restore();
      }
   }

   public TemporaryQueue createTemporaryQueue() throws JMSException
   {
View Full Code Here

         cons = sess.createConsumerDelegate(dest, messageSelector, false, subName, true);
      }
      finally
      {
         tccc.restore();
      }

      ConsumerState state = (ConsumerState)((DelegateSupport)cons).getState();

      this.consumerID = state.getConsumerID();     
View Full Code Here

         tccc.set(getClass().getClassLoader());
         delegate.reset();
      }
      finally
      {
         tccc.restore();
      }
     
      return new BrowserEnumeration();
   }
View Full Code Here

         delegate.send((JBossDestination)destination, m, deliveryMode, priority, timeToLive);
      }
      finally
      {
         tccc.restore();
      }     
   }


   // TopicPublisher Implementation ---------------------------------
View Full Code Here

        
         return new JBossConnection(res.getDelegate(), type);
      }
      finally
      {
         tccc.restore();
      }
   }
  
   // Private --------------------------------------------------------------------------------------
     
View Full Code Here

         return delegate.getClientID();
      }
      finally
      {
         tccc.restore();
      }
   }

   public void setClientID(String clientID) throws JMSException
   {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.