Package java.rmi.server

Examples of java.rmi.server.UID$Lock


                id = "A" + idCount++; // + rand.nextLong();
            }
        } else if (!UIDok) {
            id = java.util.UUID.randomUUID().toString();
        } else {
            id = (new UID()).toString();
        }
    }
View Full Code Here


      public void begin() throws NotSupportedException, SystemException
      {
         try
         {
            Invocation inv = infrastructure.createClientUserTransactionInvocation(null, null, invoker);
            UID uid = (UID) new MockClientUserTransactionStickyInterceptor(invoker).invoke(inv);
            tpcf.setUid(uid);
         }
         catch (Throwable e)
         {
            throw new RuntimeException("Exception during mock UT.begin", e);
View Full Code Here

   {
      log.debug("transactional successfull calls [policy=" + policyClass + ",newProxiesInBetweenTransactions=" + newProxiesInBetweenTransactions + "]");
     
      try
      {
         UID uid;
        
         createNewProxies(0, policyClass, true);

         /* Simulate client user transaction */
         uid = new UID();        
         transactionalMockUtils.getTpcf().setUid(uid);
         performCalls(3, null, policyClass);
        
         if (newProxiesInBetweenTransactions)
         {
            createNewProxies(0, policyClass, false);
         }
        
         /* Simulate transaction interceptor */
         uid = new UID();
         Transaction tx = new MockTransaction();
         transactionalMockUtils.getTpcf().setUid(uid);
         transactionalMockUtils.getTpci().setTransaction(tx);
         performCalls(3, tx, policyClass);                 
      }
View Full Code Here

     * address can be obtained for this host that is unique and constant
     * for the lifetime of this object.
     */
    public VMID() {
        addr = randomBytes;
        uid = new UID();
    }
View Full Code Here

   public class ClientUserTransactionService implements ClientUserTransactionServiceMBean
   {
      public Object invoke(Invocation invocation) throws Exception
      {
         // Return new tpc -> only begin() calls really tested as they set the sticky target
         return new UID();
      }
View Full Code Here

            InternetAddress from = new InternetAddress(myAddress);

            msg.setFrom(from);
            msg.setSubject(subjectField);

            UID msgUID = new UID();

            uidString = msgUID.toString();

            msg.setHeader("X-Mailer", uidString);

            msg.setSentDate(new Date());
View Full Code Here

     * address can be obtained for this host that is unique and constant
     * for the lifetime of this object.  <p>
     */
    public VMID() {
  addr = localAddr;
  uid = new UID();
    }
View Full Code Here

  private String initBridgeRequestScope(ActionRequest request, ActionResponse response)
  {

    // Generate an RMI UID, which is a unique identifier WITHIN the local
    // host. This will be used as the new lifecyleID
    UID uid = new UID();
    String requestScopeId = qualifyScopeId(mPortletConfig.getPortletName(),
                                           request.getPortletSession(true).getId(),
                                           request.getPortletMode().toString(),
                                           uid.toString());

    // set in response render parameter so will receive in future calls
    // however don't store internally until there is specific state to
    // manage
    response.setRenderParameter(REQUEST_SCOPE_ID_RENDER_PARAM, requestScopeId);
View Full Code Here

   * Generates a UUID.
   *
   * @return the UUID
   */
  public static String generate() {
    String uuid = mHostId + new UID().toString();
    // System.out.println("UUID: " + uuid);
    return uuid;
  }
View Full Code Here

   *  unique name for this component.
   *
   */
  public UimaContext_ImplBase() {
    //  Generate unique name for this component
    uniqueIdentifier = new UID().toString();
    //  Strip colons and un
    uniqueIdentifier = uniqueIdentifier.replaceAll(":", "");
    uniqueIdentifier = uniqueIdentifier.replaceAll("-", "");
  }
View Full Code Here

TOP

Related Classes of java.rmi.server.UID$Lock

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.