Deployment methods
There are two ways to deploy a DAR file: file copy or HTTP.
File copy
To use this method, copy your DAR file to the deployment directory on the file system. If you enable auto-deployment in the Server.xml configuration file, Diffusion™ periodically scans a directory for new or updated DAR files and deploys them. In the case of an updated DAR, the existing publisher is undeployed (if possible) before being redeployed.
HTTP
curl --data-binary @MyPublisher.dar http://localhost:8080/deploy
<http-service name="deploy-service" debug="true”> <class>com.pushtechnology.diffusion.service.DeploymentService</class> <url-pattern>^/deploy.*</url-pattern> <max-inbound-request-size>128m</max-inbound-request-size> </http-service>
Ensure that the HTTP connector is configured to have an input buffer large enough to contain the entire DAR file. You can configure this in the Connectors.xml configuration file.
Undeployment
For publishers deployed using the file copy method, you can delete the DAR file from the deployment directory and on the next scan the server undeploys the publisher. A DAR file can be undeployed only if all of the publishers it contains are stoppable. If a DAR file fails to be undeployed, any future modifications to it are ignored.
localhost/Server/com.pushtechnology.diffusion - Publisher - MyPublisher - undeploy()