how to invoke bpel process from remote server

in the beginning,   I deploy workflow application to OC4J Server, but the server need more than 1G memory. My computer is died when oc4j server is running. in addition, you will do more work when deploy and develop web application  .
    To make workflow app run in tomcat,you should
     1,add config.properties in you classpath.the context in this file:
             orabpel.platform=ias_10g
              java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
              java.naming.provider.url=opmn:ormi://192.168.1.216:6003:oc4j_soa/orabpel
             java.naming.security.principal=oc4jadmin
             java.naming.security.credentials=oc4jadmin
         follow code is how to invoke process:

          public void invokeProcess(String payload){
        try{
            props=new Properties();
            URL url=ClassLoader.getSystemResource("context.properties");
            props.load(url.openStream());
            locator=new Locator("default","bpel",props);
            nm=new NormalizedMessage();
            nm.setPayload(payload);
            ds=(IDeliveryService) locator.lookupService( IDeliveryService.SERVICE_NAME );
            ds.post( processID,revisionTag,operation, nm);
           
        }catch(ServerException se){
            se.printStackTrace();
        }catch(RemoteException re){
            re.printStackTrace();
        }catch(IOException ie){
            ie.printStackTrace();
        }
       
    }

2 how to get WorkflowServiceClientFactory object from remote server via RMI
    you should add wf_client_config.xml in you classpath ,and built client object with REMOTE_CLEINT

你可能感兴趣的:(java,tomcat,workflow,IE,SOA)