Package org.jboss.jms.destination

Examples of org.jboss.jms.destination.JBossQueue


         if (dest == null)
         {
            throw new JMSException("There is no administratively defined queue with name:" + name);
         }       
  
         return new JBossQueue(dest.getName());
      }
      catch (Throwable t)
      {
         throw ExceptionUtil.handleJMSInvocation(t, this + " createQueue");
      }
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

   {
      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

      try
      {
         ic = new InitialContext(ServerManagement.getJNDIEnvironment());

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

         assertNotNull(q);

         assertEquals("DLQ", q.getName());
      }
      finally
      {
         if (ic != null) ic.close();
View Full Code Here

      // Session
     
      public void testSessionCreateConsumerDelegateRequest() throws Exception
      {
         RequestSupport req =
            new SessionCreateConsumerDelegateRequest(23, (byte)77, new JBossQueue("wibble"), null, false, null, false);
                
         testPacket(req, PacketSupport.REQ_SESSION_CREATECONSUMERDELEGATE);                          
      }
View Full Code Here

      }
     
      public void testSessionCreateBrowserDelegateRequest() throws Exception
      {
         RequestSupport req =
            new SessionCreateBrowserDelegateRequest(23, (byte)77, new JBossQueue("wibble"), null);
                
         testPacket(req, PacketSupport.REQ_SESSION_CREATEBROWSERDELEGATE);                          
      }
View Full Code Here

      }
     
      public void testSessionCreateQueueResponse() throws Exception
      {
         ResponseSupport resp =
            new SessionCreateQueueResponse(new JBossQueue("ijoij"));
                
         testPacket(resp, PacketSupport.RESP_SESSION_CREATEQUEUE);                          
      }
View Full Code Here

  
         InitialContext ic = null;
         ic = new InitialContext(ServerManagement.getJNDIEnvironment());

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

         assertNotNull(q);

         assertEquals("ExpiryQueue", q.getName());
      }
      finally
      {
         if (ic != null) ic.close();
View Full Code Here

         JBossMessage check1 = ((MessageProxy)m).getMessage();
        
         m.setString("map_entry", "map_value");        
         m.setStringProperty("property_entry", "property_value");  
        
         m.setJMSReplyTo(new JBossQueue("wibble"));
        
         JBossMessage check2 = ((MessageProxy)m).getMessage();
        
         checkSameUnderlyingMessage(check1, check2, true);
         checkSameBody(check1, check2, true);
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.