Examples of RequestSupport


Examples of org.jboss.jms.wireformat.RequestSupport

   // BrowserDelegate implementation ---------------------------------------------------------------

   public void reset() throws JMSException
   {
      RequestSupport req = new BrowserResetRequest(id, version);
      doInvoke(client, req);
   }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

      doInvoke(client, req);
   }

   public boolean hasNextMessage() throws JMSException
   {
      RequestSupport req = new BrowserHasNextMessageRequest(id, version);

      return ((Boolean)doInvoke(client, req)).booleanValue();
   }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

      return ((Boolean)doInvoke(client, req)).booleanValue();
   }

   public JBossMessage nextMessage() throws JMSException
   {
      RequestSupport req = new BrowserNextMessageRequest(id, version);

      return (JBossMessage)doInvoke(client, req);
   }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

      return (JBossMessage)doInvoke(client, req);
   }

   public JBossMessage[] nextMessageBlock(int maxMessages) throws JMSException
   {
      RequestSupport req = new BrowserNextMessageBlockRequest(id, version, maxMessages);

      return (JBossMessage[])doInvoke(client, req);
   }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

   public Object invoke(InvocationRequest invocation) throws Throwable
   {     
      if (trace) { log.trace("invoking " + invocation); }
       
      RequestSupport request = (RequestSupport)invocation.getParameter();
     
      if (request instanceof ConnectionFactoryCreateConnectionDelegateRequest)
      {
         //Create connection request
        
         ConnectionFactoryCreateConnectionDelegateRequest cReq =
            (ConnectionFactoryCreateConnectionDelegateRequest)request;
        
         String remotingSessionId = cReq.getRemotingSessionID();
        
         ServerInvokerCallbackHandler callbackHandler = null;
         synchronized(callbackHandlers)
         {
            callbackHandler = (ServerInvokerCallbackHandler)callbackHandlers.get(remotingSessionId);
         }
         if (callbackHandler != null)
         {
            log.debug("found calllback handler for remoting session " + Util.guidToString(remotingSessionId));
           
            cReq.setCallbackHandler(callbackHandler);
         }
         else
         {
            throw new IllegalStateException("Cannot find callback handler " +
                                            "for session id " + remotingSessionId);
         }
      }
     
      return request.serverInvoke();
   }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

     
      // Connection Factory
     
      public void testConnectionFactoryCreateConnectionDelegate() throws Exception
      {
         RequestSupport req =
            new ConnectionFactoryCreateConnectionDelegateRequest(23, (byte)77, "session123", "vm123", null, null, -1);;
                
         testPacket(req, PacketSupport.REQ_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE);                          
      }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

         testPacket(req, PacketSupport.REQ_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE);                          
      }
     
      public void testConnectionFactoryGetIDBlock() throws Exception
      {
         RequestSupport req =
            new ConnectionGetIDBlockRequest(23, (byte)77, 66);;
                
         testPacket(req, PacketSupport.REQ_CONNECTIONFACTORY_GETIDBLOCK);                          
      }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

         testPacket(req, PacketSupport.REQ_CONNECTIONFACTORY_GETIDBLOCK);                          
      }
     
      public void testConnectionFactoryGetClientAOPStack() throws Exception
      {
         RequestSupport req =
            new ConnectionFactoryGetClientAOPStackRequest(23, (byte)77);;
                
         testPacket(req, PacketSupport.REQ_CONNECTIONFACTORY_GETCLIENTAOPSTACK);                          
      }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

     
      // Connection
     
      public void testConnectionCreateSessionDelegateRequest() throws Exception
      {
         RequestSupport req =
            new ConnectionCreateSessionDelegateRequest(23, (byte)77, true, 23, true);;
                
         testPacket(req, PacketSupport.REQ_CONNECTION_CREATESESSIONDELEGATE);                          
      }
View Full Code Here

Examples of org.jboss.jms.wireformat.RequestSupport

         testPacket(req, PacketSupport.REQ_CONNECTION_CREATESESSIONDELEGATE);                          
      }
     
      public void testConnectionGetClientIDRequest() throws Exception
      {
         RequestSupport req =
            new ConnectionGetClientIDRequest(23, (byte)77);;
                
         testPacket(req, PacketSupport.REQ_CONNECTION_GETCLIENTID);                          
      }
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.