Package org.jboss.jms.server.endpoint

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


     
      // read permission required on the destination
      Destination dest = (Destination)mi.getArguments()[0];
     
      SessionAdvised del = (SessionAdvised)invocation.getTargetObject();
      ServerSessionEndpoint sess = (ServerSessionEndpoint)del.getEndpoint();
     
      check(dest, CheckType.READ, sess.getConnectionEndpoint());
     
      // if creating a durable subscription then need create permission
     
      String subscriptionName = (String)mi.getArguments()[3];
      if (subscriptionName != null)
      {
         // durable
         check(dest, CheckType.CREATE, sess.getConnectionEndpoint());
      }
     
      return invocation.invokeNext();
   }  
View Full Code Here


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

     
      Message m = (Message)mi.getArguments()[0];
      Destination dest = m.getJMSDestination();

      SessionAdvised del = (SessionAdvised)invocation.getTargetObject();
      ServerSessionEndpoint se = (ServerSessionEndpoint)del.getEndpoint();
      ServerConnectionEndpoint ce = se.getConnectionEndpoint();
                       
      check(dest, CheckType.WRITE, ce);
           
      return invocation.invokeNext();
   }
View Full Code Here

     
      // read permission required on the destination
      Destination dest = (Destination)mi.getArguments()[0];
     
      SessionAdvised del = (SessionAdvised)invocation.getTargetObject();
      ServerSessionEndpoint sess = (ServerSessionEndpoint)del.getEndpoint();
     
      check(dest, CheckType.READ, sess.getConnectionEndpoint());
     
      // if creating a durable subscription then need create permission
     
      String subscriptionName = (String)mi.getArguments()[3];
      if (subscriptionName != null)
      {
         // durable
         check(dest, CheckType.CREATE, sess.getConnectionEndpoint());
      }
     
      return invocation.invokeNext();
   }  
View Full Code Here

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

     
      Message m = (Message)mi.getArguments()[0];
      Destination dest = m.getJMSDestination();

      SessionAdvised del = (SessionAdvised)invocation.getTargetObject();
      ServerSessionEndpoint se = (ServerSessionEndpoint)del.getEndpoint();
      ServerConnectionEndpoint ce = se.getConnectionEndpoint();
                       
      check(dest, CheckType.WRITE, ce);
           
      return invocation.invokeNext();
   }
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

/*      */   public void handleReplicateDeliveryAck(String sessionID, long deliveryID)
/*      */     throws Exception
/*      */   {
/* 1309 */     if (this.trace) log.trace(this + " handleReplicateDeliveryAck " + sessionID + " " + deliveryID);
/*      */
/* 1312 */     ServerSessionEndpoint session = this.serverPeer.getSession(sessionID);
/*      */
/* 1314 */     if (this.useJGroupsWorkaround)
/*      */     {
/* 1316 */       this.replicateSemaphore.release();
/*      */     }
View Full Code Here

/*      */
/* 2860 */           Iterator iter2 = sessions.iterator();
/*      */
/* 2862 */           while (iter2.hasNext())
/*      */           {
/* 2864 */             ServerSessionEndpoint session = (ServerSessionEndpoint)iter2.next();
/*      */
/* 2866 */             session.deliverAnyWaitingDeliveries(null);
/*      */
/* 2868 */             session.collectDeliveries(deliveries, firstNode, null);
/*      */           }
/*      */
/* 2871 */           if (!firstNode)
/*      */           {
/* 2873 */             PostOfficeAddressInfo info = (PostOfficeAddressInfo)this.nodeIDAddressMap.get(new Integer(this.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.