Package org.jboss.jms.destination

Examples of org.jboss.jms.destination.JBossTemporaryQueue


/* 206 */     while (iter.hasNext())
/*     */     {
/* 208 */       ManagedDestination dest = (ManagedDestination)iter.next();
/* 209 */       if (dest.isTemporary())
/*     */       {
/* 211 */         destinations.add(new JBossTemporaryQueue(dest.getName()));
/*     */       }
/*     */       else
/*     */       {
/* 215 */         destinations.add(new JBossQueue(dest.getName()));
/*     */       }
View Full Code Here


/*     */   {
/* 349 */     if (this.sessionType == 2)
/*     */     {
/* 351 */       throw new IllegalStateException("Cannot create a temporary queue using a TopicSession");
/*     */     }
/* 353 */     JBossTemporaryQueue queue = new JBossTemporaryQueue(this.delegate);
/* 354 */     this.delegate.addTemporaryDestination(queue);
/* 355 */     return queue;
/*     */   }
View Full Code Here

      }
     
      public void testSessionAddTemporaryDestinationRequest() throws Exception
      {
         RequestSupport req =
            new SessionAddTemporaryDestinationRequest("23", (byte)77, new JBossTemporaryQueue("blah"));
                
         testPacket(req, PacketSupport.REQ_SESSION_ADDTEMPORARYDESTINATION);                          
      }
View Full Code Here

      }
     
      public void testSessionDeleteTemporaryDestinationRequest() throws Exception
      {
         RequestSupport req =
            new SessionDeleteTemporaryDestinationRequest("23", (byte)77, new JBossTemporaryQueue("blah"));
                
         testPacket(req, PacketSupport.REQ_SESSION_DELETETEMPORARYDESTINATION);                          
      }
View Full Code Here

      // As per spec. section 4.11
      if (sessionType == TYPE_TOPIC_SESSION)
      {
         throw new IllegalStateException("Cannot create a temporary queue using a TopicSession");
      }
      JBossTemporaryQueue queue = new JBossTemporaryQueue(delegate);
      delegate.addTemporaryDestination(queue);
      return queue;
   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.destination.JBossTemporaryQueue

Copyright © 2018 www.massapicom. 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.