Examples of GUID


Examples of org.jboss.util.id.GUID

   }
  
   protected void setReplyTo(JBossMessage m, int i) throws JMSException
   {
      JBossDestination dest = null;
      String name =  new GUID().toString();
      if (i % 3 == 0)
      {        
         dest = new JBossQueue(name);
      }
      else if (i % 3 == 1)
View Full Code Here

Examples of org.jboss.util.id.GUID

         // Do nothing
         return;
      }
      else if (i % 3 == 1)
      {
         String id =  new GUID().toString();
         m.setJMSCorrelationID(id);
      }    
      else if (i % 3 == 2)
      {
         byte[] bytes = new GUID().toString().getBytes();
         m.setJMSCorrelationIDAsBytes(bytes);
      }
   }
View Full Code Here

Examples of org.jboss.util.id.GUID

      log.trace(this + " acknowledged "  + r);

      // make sure I get rid of message if the transaction is rolled back
      if (tx != null)
      {
         tx.addCallback(new PostAcknowledgeCommitCallback(touple), new GUID().toString());
      }
   }
View Full Code Here

Examples of org.jboss.util.id.GUID

   public synchronized Object get(Object key)
   {
      Object obj = cache.get(key);
      if (obj instanceof GUID)
      {
         GUID guid = (GUID)obj;
         obj = synchManager.getObject(guid);
      }
      return obj;
   }
View Full Code Here

Examples of org.jboss.util.id.GUID

      ArrayList locks = new ArrayList();
      try
      {
         for (int i = 0; i < list.size(); i++)
         {
            GUID guid = (GUID)list.get(i);
            DistributedState state = getState(guid);
            state.acquireWriteLock();
            locks.add(state);
         }
         Hashtable held = (Hashtable)heldLocks.get(nodeName);
View Full Code Here

Examples of org.jboss.util.id.GUID

      return NullOrZero.nullOrZero(invocation.getMethod().getReturnType());
   }
  
   protected void setupRemoteFuture(MethodInvocation invocation, RemotableFuture future, InvokerLocator locator)throws Exception
   {
      GUID futureGUID = new GUID();
      Dispatcher.singleton.registerTarget(futureGUID, future);
      InstanceAdvised ia = (generateProxy()) ?
            ProxyFactory.createInterfaceProxy(futureClassGUID, Future.class.getClassLoader(), futureIntf) :
               (InstanceAdvised)FutureInvocationHandler.createFutureProxy(futureClassGUID, Future.class.getClassLoader(), futureDynamicIntf);
      Remoting.makeRemotable(ia, locator, futureGUID);
View Full Code Here

Examples of org.jboss.util.id.GUID

            }
         }

         // if got this far, the entry does not exist, so need to add it and create a listener id
         CallbackHandlerHolder holder = new CallbackHandlerHolder(callbackhandler, locator);
         listenerId = new GUID().toString();
         String key = listenerId;
         if (sessionId != null)
            key = sessionId + "+" + listenerId;
         localServerLocators.put(key, holder);
      }
View Full Code Here

Examples of org.jboss.util.id.GUID

      this.subsystem = subsystem == null ? null : subsystem.toUpperCase();
      if (configuration != null)
      {
         this.configuration = new HashMap(configuration);
      }
      this.sessionId = new GUID().toString();
      processParameters();
   }
View Full Code Here

Examples of org.jboss.util.id.GUID

   public Client(ClassLoader cl, ClientInvoker invoker, String subsystem) throws Exception
   {
      this.classloader = cl;
      this.subsystem = subsystem == null ? null : subsystem.toUpperCase();
      this.invoker = invoker;
      this.sessionId = new GUID().toString();
   }
View Full Code Here

Examples of org.jboss.util.id.GUID

   {
      String listenerId = null;
      Object obj = listeners.get(callbackhandler);
      if(obj == null)
      {
         listenerId = new GUID().toString();
         listeners.put(callbackhandler, listenerId);
      }
      return listenerId;
   }
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.