Package org.jboss.jms.destination

Examples of org.jboss.jms.destination.JBossQueue


   {
      JBossDestination dest = null;
      String name =  new GUID().toString();
      if (i % 2 == 0)
      {        
         dest = new JBossQueue(name);
      }
      else if (i % 2 == 1)
      {
         dest = new JBossTopic(name);
      }    
View Full Code Here


   {
      JBossDestination dest = null;
      String name =  new GUID().toString();
      if (i % 3 == 0)
      {        
         dest = new JBossQueue(name);
      }
      else if (i % 3 == 1)
      {
         dest = new JBossTopic(name);
      }  
View Full Code Here

                                                                       .getServerPeer()
                                                                       .getDefaultDLQInstance();

         assertNotNull(dlq);

         JBossQueue q = (JBossQueue)ic.lookup("/queue/DLQ");

         assertNotNull(q);

         assertEquals("DLQ", q.getName());
      }
      finally
      {
         ServerManagement.undeployQueue("DLQ");
      }
View Full Code Here

      {
         Session ps = pconn.createSession(false, Session.AUTO_ACKNOWLEDGE);

         try
         {
            ps.createBrowser(new JBossQueue("NoSuchQueue"));
            fail("should throw exception");
         }
         catch(InvalidDestinationException e)
         {
            // OK
View Full Code Here

   {
      //m.setJMSMessageID("messageID777");
      m.setMessageId(123456);
      m.setJMSTimestamp(123456789l);
      m.setJMSCorrelationID("correlationID777");
      m.setJMSReplyTo(new JBossQueue("ReplyToQueue"));
      m.setJMSDestination(new JBossQueue("DestinationQueue"));
      m.setJMSDeliveryMode(DeliveryMode.PERSISTENT);     
      m.setJMSExpiration(987654321l);
      m.setJMSPriority(9);
      m.setBooleanProperty("booleanProperty", true);
      m.setByteProperty("byteProperty", (byte)2);
View Full Code Here

/*  288 */       if (dest == null)
/*      */       {
/*  290 */         throw new JMSException("There is no administratively defined queue with name:" + name);
/*      */       }
/*      */
/*  293 */       return new JBossQueue(dest.getName());
/*      */     }
/*      */     catch (Throwable t) {
/*      */     }
/*  297 */     throw ExceptionUtil.handleJMSInvocation(t, this + " createQueue");
/*      */   }
View Full Code Here

/*      */
/* 1813 */     String consumerID = GUIDGenerator.generateGUID();
/*      */
/* 1815 */     int prefetchSize = this.connectionEndpoint.getPrefetchSize();
/*      */
/* 1817 */     JBossDestination dest = new JBossQueue(queueName);
/*      */
/* 1821 */     ServerConsumerEndpoint ep = new ServerConsumerEndpoint(consumerID, binding.queue, binding.queue.getName(), this, selectorString, false, dest, null, null, 0L, -1, true, false);
/*      */     ConsumerAdvised advised;
/* 1830 */     synchronized (AspectManager.instance())
/*      */     {
View Full Code Here

/* 129 */         Context c = JNDIUtil.createContext(this.initialContext, parentContext);
/*     */         JBossDestination jbDest;
/*     */         JBossDestination jbDest;
/* 133 */         if (destination.isQueue())
/*     */         {
/* 135 */           jbDest = new JBossQueue(destination.getName());
/*     */         }
/*     */         else
/*     */         {
/* 139 */           jbDest = new JBossTopic(destination.getName());
/*     */         }
View Full Code Here

/*     */       {
/* 211 */         destinations.add(new JBossTemporaryQueue(dest.getName()));
/*     */       }
/*     */       else
/*     */       {
/* 215 */         destinations.add(new JBossQueue(dest.getName()));
/*     */       }
/*     */     }
/*     */
/* 219 */     iter = this.topicMap.values().iterator();
/* 220 */     while (iter.hasNext())
View Full Code Here

/* 140 */       sess = (JBossSession)this.localConnection.createXASession();
/*     */
/* 142 */       this.localSession = sess.getDelegate();
/*     */     }
/*     */
/* 145 */     JBossDestination dest = new JBossQueue(this.localQueue.getName(), true);
/*     */
/* 147 */     this.producer = this.localSession.createProducerDelegate(dest);
/*     */
/* 154 */     this.consumer = this.sourceSession.createConsumerDelegate(dest, null, false, null, false, false);
/*     */
View Full Code Here

TOP

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

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.