Package org.apache.ofbiz.service.rmi
Class ExampleRemoteClient
java.lang.Object
org.apache.ofbiz.service.rmi.ExampleRemoteClient
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
-
Constructor Summary
-
Method Summary
-
Field Details
-
RMI_URL
- See Also:
-
-
Constructor Details
-
ExampleRemoteClient
public ExampleRemoteClient()
-
-
Method Details
-
runTestService
Run test service map.- Returns:
- the map
- Throws:
RemoteException
- the remote exceptionGenericServiceException
- the generic service exception
-
main
- Throws:
Exception
-