Package org.apache.ode.utils

Examples of org.apache.ode.utils.GUID


    public String invoke(String requestId, PartnerLink partnerLink, Operation operation, Element outgoingMessage)
            throws UninitializedPartnerEPR {

        // TODO: think we should move the dao creation into bpelprocess --mbs
        MessageExchangeDAO mexDao = _dao.getConnection().createMessageExchange(new GUID().toString(),
                MessageExchangeDAO.DIR_BPEL_INVOKES_PARTNERROLE);
        mexDao.setStatus(MessageExchange.Status.REQ);
        mexDao.setOperation(operation.getName());
        mexDao.setPortType(partnerLink.getModel().getPartnerRolePortType().getQName());
        mexDao.setPartnerLinkModelId(partnerLink.getModel().getId());
View Full Code Here


   * open group algorithm took too damn long.
   *
   * @return a new "globally" unique identifier
   */
  public String nextUUID() {
    return new GUID().toString();
  }
View Full Code Here

    /**
     * Constructor that hardwires OpenJPA on a new in-memory database. Suitable for tests.
     */
    public ProcessStoreImpl(EndpointReferenceContext eprContext, DataSource inMemDs) {
        this.eprContext = eprContext;
        DataSource hsqlds = createInternalDS(new GUID().toString());
        //when in memory we always create the model as we are starting from scratch
        _cf = new org.apache.ode.store.jpa.DbConfStoreConnectionFactory(hsqlds, true);
        _inMemDs = hsqlds;
    }
View Full Code Here

            + tmpDirPath + " does not exist.");
      }
    }

    try {
      File odeTmp = new File(__baseDir, "ode-" + new GUID().toString());
      if (odeTmp.mkdir()) {
        __workDir = odeTmp;
        __log.debug("Set working directory to: " + __workDir.getAbsolutePath());
        this._registerTemporaryFile(__workDir);
      }
View Full Code Here

      tmp = File.createTempFile(handle + Long.toHexString(System.currentTimeMillis()), ".tmp", parent);
    } catch (IOException ioe) {
      __log.error("Unable to create temporary file in working directory " +
          (parent == null ? "<null>; " : (parent.getPath() + "; ")) +
          "falling back to current working directory.", ioe);
      tmp = new File(handle + new GUID().toString());
    }

    registerTemporaryFile(tmp);
    return tmp;
  }
View Full Code Here

    private jdbcDataSource _ds;
    private JdbcDelegate _del;

    public DelegateSupport() throws Exception {
        _ds = new jdbcDataSource();
        _ds.setDatabase("jdbc:hsqldb:mem:" + new GUID().toString());
        _ds.setUser("sa");
        _ds.setPassword("");
       
        setup();
        _del = new JdbcDelegate(_ds);
View Full Code Here

            }

            public void beforeCompletion() {
            }
        });
        return new GUID().toString();
    }
View Full Code Here

        _ode._mexContext = new MessageExchangeContextImpl(_ode);
        if (_ode._config.getThreadPoolMaxSize() == 0)
            _ode._executorService = Executors.newCachedThreadPool();
        else
            _ode._executorService = Executors.newFixedThreadPool(_ode._config.getThreadPoolMaxSize());
        SimpleScheduler sched =new SimpleScheduler(new GUID().toString(), new JdbcDelegate(_ode._dataSource),  _ode._config.getProperties());
        sched.setJobProcessor(_ode._server);
        sched.setTransactionManager((TransactionManager) _ode.getContext().getTransactionManager());
        _ode._scheduler = sched;

        _ode._store = new ProcessStoreImpl(_ode._eprContext, _ode._dataSource,
View Full Code Here

    public void onAxisMessageExchange(MessageContext msgContext, MessageContext outMsgContext, SOAPFactory soapFactory)
            throws AxisFault {
        MyRoleMessageExchange odeMex = null;
        try {
            // Creating mesage exchange
            String messageId = new GUID().toString();
            odeMex = _server.createMessageExchange(InvocationStyle.UNRELIABLE, _serviceName,
                    msgContext.getAxisOperation().getName().getLocalPart(), "" + messageId);
           
            __log.debug("ODE routed to operation " + odeMex.getOperation() + " from service " + _serviceName);
View Full Code Here

    JdbcExternalVariableModule _engine;
    Element _el1;

    public void setUp() throws Exception {
        _ds = new org.hsqldb.jdbc.jdbcDataSource();
        _ds.setDatabase("jdbc:hsqldb:mem:" + new GUID().toString());
        _ds.setUser("sa");
      
        Connection conn = _ds.getConnection();
        Statement s = conn.createStatement();
        s.execute("create table extvartable1 (" +
View Full Code Here

TOP

Related Classes of org.apache.ode.utils.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.