As part of the profile service crud support for deployments, I added a new StreamingTarget
implementation that uses the remoting streaming capability to allow uploads via any
protocol remoting supports.
The default target implemention is still the JMXTarget. To select the StreamingTarget, a
targetType=remote query param would be added to the
| /**
| * Obtain a DeploymentManager using a deployURI of the form
| *
http://org.jboss.deployment/jsr88?targetType=targetType
| * Valid targetType values are:
| * jmx - Use the JMXTarget RMIAdaptor based deployment target
| * remote - Use the StreamingTarget remoting based deployment target
| * @return JSR88 DeploymentManager
| * @throws Exception
| */
| protected DeploymentManager getDeploymentManager(String targetType)
| throws Exception
| {
| // Get the deployment manager and the distribution targets
| String mgrURI =
DeploymentManagerImpl.DEPLOYER_URI+"?targetType="+targetType;
| DeploymentManager manager = factory.getDeploymentManager(mgrURI, null, null);
| return manager;
| }
|
See the org.jboss.test.deployment.{JMXDeploymentTestCase,StreamingDeploymentTestCase}s in
the jbossas/testsuite module for examples.
Right now this is just uploading content to the DeploymentManagerService uploadDir
(tmp/jsr88) and is not really integrated with the ProfileService. Adding a proper
deployment repository notion to the ProfileService is next.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991784#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...