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?
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.
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.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995936#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...