Package org.jboss.jms.server.endpoint

Examples of org.jboss.jms.server.endpoint.ServerSessionEndpoint


/*      */
/* 3072 */           boolean gotSome = false;
/*      */
/* 3074 */           while (iter.hasNext())
/*      */           {
/* 3076 */             ServerSessionEndpoint session = (ServerSessionEndpoint)iter.next();
/*      */
/* 3078 */             session.deliverAnyWaitingDeliveries(this.queueName);
/*      */
/* 3080 */             if (session.collectDeliveries(dels, MessagingPostOffice.this.firstNode, this.queueName))
/*      */             {
/* 3082 */               gotSome = true;
/*      */             }
/*      */           }
/*      */
View Full Code Here


/* 104 */     MethodInvocation mi = (MethodInvocation)invocation;
/*     */
/* 107 */     Destination dest = (Destination)mi.getArguments()[0];
/*     */
/* 109 */     SessionAdvised del = (SessionAdvised)invocation.getTargetObject();
/* 110 */     ServerSessionEndpoint sess = (ServerSessionEndpoint)del.getEndpoint();
/*     */
/* 112 */     check(dest, CheckType.READ, sess.getConnectionEndpoint());
/*     */
/* 116 */     String subscriptionName = (String)mi.getArguments()[3];
/* 117 */     if (subscriptionName != null)
/*     */     {
/* 120 */       check(dest, CheckType.CREATE, sess.getConnectionEndpoint());
/*     */     }
/*     */
/* 123 */     return invocation.invokeNext();
/*     */   }
View Full Code Here

/* 130 */     MethodInvocation mi = (MethodInvocation)invocation;
/*     */
/* 132 */     Destination dest = (Destination)mi.getArguments()[0];
/*     */
/* 134 */     SessionAdvised del = (SessionAdvised)invocation.getTargetObject();
/* 135 */     ServerSessionEndpoint sess = (ServerSessionEndpoint)del.getEndpoint();
/*     */
/* 137 */     check(dest, CheckType.READ, sess.getConnectionEndpoint());
/*     */
/* 139 */     return invocation.invokeNext();
/*     */   }
View Full Code Here

/*     */
/* 148 */     Message m = (Message)mi.getArguments()[0];
/* 149 */     Destination dest = m.getJMSDestination();
/*     */
/* 151 */     SessionAdvised del = (SessionAdvised)invocation.getTargetObject();
/* 152 */     ServerSessionEndpoint se = (ServerSessionEndpoint)del.getEndpoint();
/* 153 */     ServerConnectionEndpoint ce = se.getConnectionEndpoint();
/*     */
/* 155 */     check(dest, CheckType.WRITE, ce);
/*     */
/* 157 */     return invocation.invokeNext();
/*     */   }
View Full Code Here

           
            boolean gotSome = false;
           
            while (iter.hasNext())
            {
              ServerSessionEndpoint session = (ServerSessionEndpoint)iter.next();
             
              session.deliverAnyWaitingDeliveries(queueName);
             
              if (session.collectDeliveries(dels, firstNode, queueName))
              {
                gotSome = true;
              }             
            }            
           
View Full Code Here

   public void handleReplicateDeliveryAck(String sessionID, final long deliveryID) throws Exception
   {
     if (trace) { log.trace(this + " handleReplicateDeliveryAck " + sessionID + " " + deliveryID); }
        
     //TODO - this does not belong here
     final ServerSessionEndpoint session = serverPeer.getSession(sessionID);
    
      if (this.useJGroupsWorkaround)
      {
         replicateSemaphore.release();
      }
    
     if (session == null)
     {
       log.warn("Cannot find session " + sessionID);
      
       return;
     }         
    
      //Execute on a different thread to avoid taking up JGroups thread for too long
      //which can cause heartbeats to be missed and the member to be suspected
     
      replicateResponseExecutor.execute(
            new Runnable()
            {
               public void run()
               {
                  try
                  {
                     session.replicateDeliveryResponseReceived(deliveryID);
                  }
                  catch (Exception e)
                  {
                     log.error("Failed to process response", e);
                  }
View Full Code Here

         
          Iterator iter2 = sessions.iterator();
         
          while (iter2.hasNext())
          {
            ServerSessionEndpoint session = (ServerSessionEndpoint)iter2.next();
           
            session.deliverAnyWaitingDeliveries(null);
           
            session.collectDeliveries(deliveries, firstNode, null);                       
          }            
         
          if (!firstNode)
          {     
             PostOfficeAddressInfo info = (PostOfficeAddressInfo)nodeIDAddressMap.get(new Integer(failoverNodeID));
View Full Code Here

TOP

Related Classes of org.jboss.jms.server.endpoint.ServerSessionEndpoint

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.