Package org.jboss.jms.server.endpoint.advised

Examples of org.jboss.jms.server.endpoint.advised.AdvisedSupport


      // resets the object counter, so a different object is registered under the id of the old
      // object. Remoting then times out the old connection and dereigsters the new object which is
      // registered under the same id.
      // See http://jira.jboss.com/jira/browse/JBMESSAGING-812
         
      AdvisedSupport advised = (AdvisedSupport)(targets.get(id));
     
      if (advised == null)
      {
         // This can happen due to http://jira.jboss.com/jira/browse/JBMESSAGING-812
         log.warn("Cannot find object with id " + id + " to register");
         return false;
      }
          
      if (advised.getEndpoint() != endpoint)
      {
         log.warn("The object you are trying to deregister is not the same as the one you registered!");
         return false;
      }
      else
View Full Code Here


      // resets the object counter, so a different object is registered under the id of the old
      // object. Remoting then times out the old connection and dereigsters the new object which is
      // registered under the same id.
      // See http://jira.jboss.com/jira/browse/JBMESSAGING-812
         
      AdvisedSupport advised = (AdvisedSupport)(targets.get(id));
     
      if (advised == null)
      {
         // This can happen due to http://jira.jboss.com/jira/browse/JBMESSAGING-812
         log.warn("Cannot find object with id " + id + " to register");
         return false;
      }
          
      if (advised.getEndpoint() != endpoint)
      {
         log.warn("The object you are trying to deregister is not the same as the one you registered!");
         return false;
      }
      else
View Full Code Here

/* 60 */     this.targets.put(id, obj);
/*    */   }
/*    */
/*    */   public boolean unregisterTarget(String id, Object endpoint)
/*    */   {
/* 74 */     AdvisedSupport advised = (AdvisedSupport)(AdvisedSupport)this.targets.get(id);
/*    */
/* 76 */     if (advised == null)
/*    */     {
/* 79 */       log.warn("Cannot find object with id " + id + " to register");
/* 80 */       return false;
/*    */     }
/*    */
/* 83 */     if (advised.getEndpoint() != endpoint)
/*    */     {
/* 85 */       log.warn("The object you are trying to deregister is not the same as the one you registered!");
/* 86 */       return false;
/*    */     }
/*    */
View Full Code Here

TOP

Related Classes of org.jboss.jms.server.endpoint.advised.AdvisedSupport

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.