Class ExampleRemoteClient


  • public class ExampleRemoteClient
    extends java.lang.Object
    An example of how to remotely access the Service Engine's RemoteDispatcher. The following files from OFBiz need to be on the client's classpath: cache.properties debug.properties jsse.properties ofbiz-base.jar ofbiz-service-rmi.jar (copied and renamed from "ofbiz/framework/service/build/lib/ofbiz-service-rmi.raj" from an OFBiz build) The following third-party libraries (can be found in OFBiz) also need to be on the client's classpath: commons-collections.jar log4j.jar Copy the truststore file framework/base/config/ofbizrmi-truststore.jks to the client Run the client specifying the path to the client truststore: -Djavax.net.ssl.trustStore=ofbizrmi-truststore.jks
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
      protected RemoteDispatcher rd  
      protected static java.lang.String RMI_URL  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      java.util.Map<java.lang.String,​java.lang.Object> runTestService()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExampleRemoteClient

        public ExampleRemoteClient()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception