Package org.apache.ode.utils

Examples of org.apache.ode.utils.GUID


        Future onhold = null;
       
        //Process the BPEL process invocation
        try {
            txMgr.begin();
            mex = odeServer.getBpelServer().getEngine().createMessageExchange(new GUID().toString(),
                                                                              bpelServiceName,
                                                                              bpelOperationName);
           
            onhold = mex.invoke(createInvocationMessage(mex, args));
           
View Full Code Here


        jobStore.setIsClustered(_isClustered);

        checkSqlServer();

        try {
            _quartz = createScheduler(_id, new GUID().toString(), new QuartzThreadPoolExecutorServiceImpl(_executorSvc, _threads),
                    jobStore);
            _quartz.getSchedulerInstanceId();
            __instanceMap.put(_id, this);
        } catch (Exception ex) {
            String emsg = "Error intitializing scheduler.";
View Full Code Here

    }

    protected String schedule(Map<String, Object> detail, Date when, boolean volatil, boolean notx) {
        if (when == null)
            when = new Date();
        JobDetail jobDetail = new JobDetail(new GUID().toString(), null, JobImpl.class);
        HashMap<String, Object> mcopy = new HashMap<String, Object>(detail);
        mcopy.put("__scheduler", _id);

        JobDataMap jdm = new JobDataMap(mcopy);
        jobDetail.setJobDataMap(jdm);
View Full Code Here

        try {
            _txManager.begin();
            if (__log.isDebugEnabled()) __log.debug("Starting transaction.");

            // Creating mesage exchange
            String messageId = new GUID().toString();
            odeMex = _server.getEngine().createMessageExchange("" + messageId, _serviceName,
                    msgContext.getAxisOperation().getName().getLocalPart());
            __log.debug("ODE routed to operation " + odeMex.getOperation() + " from service " + _serviceName);

            if (odeMex.getOperation() != null) {
View Full Code Here

            } catch (Exception ex) {
            }

            scheduler.begin();
            try {
                mex = _server.getEngine().createMessageExchange(new GUID().toString(), _invocation.target, _invocation.operation);
                mexContext.clearCurrentResponse();

                Message request = mex.createMessage(_invocation.requestType);
                request.setMessage(_invocation.request);
                _invocation.invokeTime = System.currentTimeMillis();
View Full Code Here

        default:
            throw new IllegalStateException("Bad bpel version: " + process.getBpelVersion());
        }

        _oprocess = new OProcess(bpelVersionUri);
        _oprocess.guid = new GUID().toString();
        _oprocess.constants = makeConstants();
        _oprocess.debugInfo = createDebugInfo(process, "process");
       
        if (process.getTargetNamespace() == null) {
            _oprocess.targetNamespace = "--UNSPECIFIED--";
View Full Code Here

        //Process the BPEL process invocation
        Long processID = 0L;
        try {
            txMgr.begin();
            mex = odeServer.getBpelServer().getEngine().createMessageExchange(new GUID().toString(),
                                                                              bpelServiceName,
                                                                              bpelOperationName);
            //TODO - this will not be true for OneWay operations - need to handle those
            mex.setProperty("isTwoWay", "true");
            onhold = mex.invoke(createInvocationMessage(mex, args));
View Full Code Here

      odeProperties.put("ode.scheduler.queueLength", "100" );
      odeProperties.put("ode.scheduler.immediateInterval", "30000" );
      odeProperties.put("ode.scheduler.nearFutureInterval", "600000" );
      odeProperties.put("ode.scheduler.staleInterval", "100000" );
     
        SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),
                                            new JdbcDelegate(_db.getDataSource()),
                                                        odeProperties );
        scheduler.setExecutorService(_executorService);
        scheduler.setTransactionManager(_txMgr);
View Full Code Here

            }
        }
    }

    protected Scheduler createScheduler() {
        SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),new JdbcDelegate(_db.getDataSource()));
        scheduler.setTransactionManager(_txMgr);

        return scheduler;
    }
View Full Code Here

        Future onhold = null;
       
        //Process the BPEL process invocation
        try {
            txMgr.begin();
            mex = odeServer.getBpelServer().getEngine().createMessageExchange(new GUID().toString(),
                                                                              bpelServiceName,
                                                                              bpelOperationName);
           
            onhold = mex.invoke(createInvocationMessage(mex, args));
           
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.