[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - JSR88 updated with a StreamingTarget implementation

scott.stark@jboss.org do-not-reply at jboss.com
Wed Dec 6 16:05:04 EST 2006


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#3991784

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991784



More information about the jboss-dev-forums mailing list