[jboss-dev-forums] [Design of POJO Server] - Re: Deployment through the ProfileService api

scott.stark@jboss.org do-not-reply at jboss.com
Fri Dec 22 18:43:43 EST 2006


"charles.crouch at jboss.com" wrote : I just wanted to make sure I've got the right idea about the steps to deploy something which doesnt have an associated DeploymentUnit, e.g. no underlying -ds.xml, using the ProfileService apis:
  | 
  | 
  | a) From the ProfileService you call getProfile(ProfileKey key, String version). As we discussed on todays call the notion of version is going away, right?
  | 
Correct.

"charles.crouch at jboss.com" wrote : 
  | b) On the returned Profile you call getTemplate(String name). This name argument sounds like something for which there should be a definition around, e.g. static list of supported names?
  | 
  | c) On the returned DeploymentTemplate call expand(Set values). Is Set<org.jboss.profileservice.spi.PropertyInfo> going to get replaced with Set<org.jboss.managed.api.ManagedProperty> or better yet just org.jboss.managed.api.ManagedObject? If so, thats another piece that requires a snapshot of jboss-managed.jar. Somehow expand() is also going to have to set the name attribute on the DeploymentContext it returns.
  | 
That is one way, but its not hooked up yet, and it needs to be synched up with the changes in the managed object api. The notion of a DeploymentTemplate was to create a deployment with preconfigured values coming from manged objects. We also need to actually create the templates.

"charles.crouch at jboss.com" wrote : 
  | d) On the Profile call addDeployment(DeploymentContext d) passing in the DeploymentContext returned from expand().
  | 
  | e) If the deployment fails an exception of some variety is thrown.
  | 
  | 
Correct. However, for the initial tests I expect that the base deployment exists, so the way to add a deployment to a profile is:


  |       URL deploymentURL = ...
  |       VFS vfs = VFS.getVFS(deploymentURL);
  |       VirtualFile deploymentVF = vfs.getRoot();
  |       AbstractDeploymentContext context = new AbstractDeploymentContext(deploymentVF);
  |       ps.addDeployment(context);
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995976#3995976

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



More information about the jboss-dev-forums mailing list