Package org.jboss.util.id

Examples of org.jboss.util.id.GUID


                Session session0 = conn0.createSession(true, Session.CLIENT_ACKNOWLEDGE);
                MessageConsumer consumer = session0.createConsumer(queue);
                MessageProducer producer = session0.createProducer(queue);
                conn0.start();
               
                String strmsg = "Hello from " + this.getName() + " guid="+ new GUID().toString();

                producer.send(session0.createTextMessage(strmsg));
                session0.commit();
               
View Full Code Here


               
               
                Session session0 = conn0.createSession(false, Session.AUTO_ACKNOWLEDGE);
                MessageProducer producer = session0.createProducer(queue);
               
                String strmsg = "Hello from " + this.getName() + " guid="+ new GUID().toString();
               
                producer.send(session0.createTextMessage(strmsg));
               
               
                TextMessage msg = (TextMessage)consumer.receive(50000);
View Full Code Here

                Session session0 = conn0.createSession(false, Session.AUTO_ACKNOWLEDGE);
                MessageConsumer consumer = session0.createConsumer(queue);
                MessageProducer producer = session0.createProducer(queue);
                conn0.start();
               
                String strmsg = "Hello from " + this.getName() + " guid="+ new GUID().toString();

                producer.send(session0.createTextMessage(strmsg));
               
                latchCalled = true;
                latch.countDown();
View Full Code Here

    public void testGuid() throws InterruptedException
    {
        HashSet repositoryIDs = new HashSet();
        System.out.println();
        System.out.println("---------------------- testProveGuidHashCodeIsSame");
        GUID guid = null;
        for (int i = 0; i < ITERATIONS; i++)
        {
            guid = new GUID();

            Integer hashKey = new Integer(guid.hashCode());

            if (!repositoryIDs.contains(hashKey))
            {
                repositoryIDs.add(hashKey);
            }
            System.out.println("guid.hashCode()=" + guid.hashCode());
        }

        if (repositoryIDs.size()==1)
        {
            fail("HashCode is always returning the same hash");
View Full Code Here

         }
        
         switch (k)
         {
            case 0:
               headers.put(new GUID().toString(), randString(1000));
            case 1:
               headers.put(new GUID().toString(), randByte());
            case 2:
               headers.put(new GUID().toString(), randShort());
            case 3:
               headers.put(new GUID().toString(), randInt());
            case 4:
               headers.put(new GUID().toString(), randLong());
            case 5:
               headers.put(new GUID().toString(), randBool());
            case 6:
               headers.put(new GUID().toString(), randFloat());
            case 7:
               headers.put(new GUID().toString(), randDouble());
            case 8:
               headers.put(new GUID().toString(), randLong());
            case 9:
               headers.put(new GUID().toString(), randByteArray(500));
            case 10:
               headers.put(new GUID().toString(), new WibblishObject());              
         }
      }
      return headers;
   }
View Full Code Here

   {
      private static final long serialVersionUID = -822739710811857027L;
      public String wibble;
      public WibblishObject()
      {
         this.wibble = new GUID().toString();
      }
View Full Code Here

      int formatID;
      byte[] globalTxId;
     
      protected MockXid()
      {
         branchQual = new GUID().toString().getBytes();
         formatID = randInt().intValue();
         globalTxId = new GUID().toString().getBytes();
      }
View Full Code Here

   }
  
   protected Transaction createXATx() throws Exception
   {
      MessagingXid xid =
         new MessagingXid(new GUID().toString().getBytes(), 345, new GUID().toString().getBytes());
     
      return tr.createTransaction(xid);
   }
View Full Code Here

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

   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

TOP

Related Classes of org.jboss.util.id.GUID

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.