Package org.jboss.remoting.ident

Examples of org.jboss.remoting.ident.Identity


   public ObjectName preRegister(MBeanServer mBeanServer, ObjectName objectName) throws Exception
   {
      this.mBeanServer = mBeanServer;
      this.objectName = objectName;
      // make sure our identity system property is properly set
      Identity identity = Identity.get(this.mBeanServer);
      // this is a slight hack, but we have to have some way to know the main
      // JBoss MBeanServer data
      SecurityUtility.setSystemProperty("jboss.remoting.jmxid", identity.getJMXId());
      SecurityUtility.setSystemProperty("jboss.remoting.instanceid", identity.getInstanceId());
      SecurityUtility.setSystemProperty("jboss.remoting.domain", identity.getDomain());
      return objectName;
   }
View Full Code Here


   protected boolean isRemoteDetection(Detection detection)
   {
      String domain = null;
      if(detection != null)
      {
         Identity identity = detection.getIdentity();
         if(identity != null)
         {
            domain = identity.getDomain();
         }
      }
      // is detection domain in accepted domain collection and not local
      // if domains empty, then accept all
      return (domain == null || domains.isEmpty() || domains.contains(domain)) &&
View Full Code Here

   protected boolean isRemoteDetection(Detection detection)
   {
      String domain = null;
      if(detection != null)
      {
         Identity identity = detection.getIdentity();
         if(identity != null)
         {
            domain = identity.getDomain();
         }
      }
      // is detection domain in accepted domain collection and not local
      // if domains empty, then accept all
      return (domain == null || domains.isEmpty() || domains.contains(domain)) &&
View Full Code Here

/*     */   public ObjectName preRegister(MBeanServer mBeanServer, ObjectName objectName) throws Exception
/*     */   {
/* 265 */     this.mBeanServer = mBeanServer;
/* 266 */     this.objectName = objectName;
/*     */
/* 268 */     Identity identity = Identity.get(this.mBeanServer);
/*     */
/* 271 */     System.setProperty("jboss.remoting.jmxid", identity.getJMXId());
/* 272 */     System.setProperty("jboss.remoting.instanceid", identity.getInstanceId());
/* 273 */     System.setProperty("jboss.remoting.domain", identity.getDomain());
/* 274 */     return objectName;
/*     */   }
View Full Code Here

/*     */   protected boolean isRemoteDetection(Detection detection)
/*     */   {
/* 514 */     String domain = null;
/* 515 */     if (detection != null)
/*     */     {
/* 517 */       Identity identity = detection.getIdentity();
/* 518 */       if (identity != null)
/*     */       {
/* 520 */         domain = identity.getDomain();
/*     */       }
/*     */
/*     */     }
/*     */
/* 525 */     return ((domain == null) || (this.domains.isEmpty()) || (this.domains.contains(domain))) && ((this.acceptLocal) || (!this.myself.isSameJVM(detection.getIdentity())));
View Full Code Here

   protected boolean isRemoteDetection(Detection detection)
   {
      String domain = null;
      if(detection != null)
      {
         Identity identity = detection.getIdentity();
         if(identity != null)
         {
            domain = identity.getDomain();
         }
      }
      // is detection domain in accepted domain collection and not local
      // if domains empty, then accept all
      return (domain == null || domains.isEmpty() || domains.contains(domain)) &&
View Full Code Here

TOP

Related Classes of org.jboss.remoting.ident.Identity

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.