[Design of POJO Server] - Re: Clustered DeploymentRepository for 5.1
by emuckenhuber
"bstansberry(a)jboss.com" wrote :
| So with the kind of setup I'm talking about, having the default profile be the one associated with ProfileKey($jboss.server.name}) would not work, since it will have no URIs associated with it.
|
| I think the key question for 5.1 is how embedded-console/jopr are using the DeploymentManager -- what ProfileKey are the passing to loadProfile (or to your new distribute(String name, URL url, ProfileKey key) method.
Well we can create a additional application (deploy/) profile by default, as it's more likely to be similar with the XmlProfileFactory - and would match what you are doing.
Furthermore we could add a getProfiles() to the DeploymentManager (maybe with the notion of mutable profiles) then jopr could provide a dropdown menu to select where you actually want to upload your content to. As the profiles from ProfileService are not necessarily 'mutable' profiles.
And we can also make those names configurable over the profile.xml.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213175#4213175
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213175
14 years, 1 month
[Design of JBoss Tools (dev)] - Can't compile Jbpm tool
by paucarre
After configuring the build_local.properties properly ANT gives me an error:
Buildfile: C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\build.xml
main:
-properties:
-clean:
[echo] Cleaning directory C:/Users/Pau/workspace/jbpm/builders/org.jboss.tools.flow.jpdl4.builder//target/
[delete] Deleting directory C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\target
[mkdir] Created dir: C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\target
-prepare.build.host:
unpack.eclipse:
-unpack.eclipse.ifnecessary:
-build:
-build.internal:
[java] Buildfile: C:/Users/Pau/eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v20080805/scripts/build.xml
[java] main:
[java] preBuild:
[java] preSetup:
[java] getMapFiles:
[java] [echo] Copying map files.
[java] [copy] Copying 1 file to C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\target\maps
[java] postSetup:
[java] fetch:
[java] preFetch:
[java] allElements:
[java] allElementsExceptSvnFetch:
[java] norcpbuild:
[java] init:
[java] fetchElement:
[java] [mkdir] Created dir: C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\target\features
[java] [mkdir] Created dir: C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\target\plugins
BUILD FAILED
C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\build.xml:183: The following error occurred while executing this line:
C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\build.xml:81: The following error occurred while executing this line:
C:\Users\Pau\workspace\jbpm\builders\org.jboss.tools.flow.jpdl4.builder\build.xml:116: Java returned: 13
Total time: 5 seconds
The configuration file is:
# The location of this pluginbuilder project. It provides the base directory for the build scripts.
# @category localsettings
# @type Directory
buildHome=C:/Users/Pau/workspace/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/
# The directory where the build takes place. This directory WILL BE DELETED before every build.
# @category localsettings
# @type Directory
buildDirectory=${buildHome}/target/
# The eclipse build host. Must be an Eclipse SDK installation with JDT and PDE. And in the case of RCP builds the RCP Delta Pack must be included, too.
# @category localsettings
# @type Directory
eclipseDir=C:/Users/Pau/eclipse/
# Environment for both the Eclipse build and test host. Determines baseos.
# @category localsettings
os=win32
# Environment for both the Eclipse build and test host. Determines basews.
# @category localsettings
ws=win32
# Environment for both the Eclipse build and test host. Determines basearch.
# @category localsettings
arch=x86
The build.xml line that fails is:
java classname="org.eclipse.equinox.launcher.Main" fork="true"
Any idea?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213168#4213168
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213168
14 years, 1 month
[Design of POJO Server] - Re: Clustered DeploymentRepository for 5.1
by emuckenhuber
ManagementView is handling all active profiles, so that should be fine.
But i'm not really sure about the DeploymentManager. I mean it should be possible to define to which profile you want to add your content.
Although we might need to drop the loadProfile and releaseProfile, as this does not seem to be thread safe.
It might make more sense to have just:
| deploymentMgr.distribute(String name, URL url, boolean copyContent);
| // and
| deploymentMgr.distribute(String name, URL url, ProfileKey key);
|
Whereas the 2nd way would imply copyContent == true. As transient deployments are handled by a own profile now.
So we might want to have load() where it creates a mapping between a deployment and the profile. So you can stop and remove all deployments easily. And for distribute and start we would need to cache the DeploymentID with it's profile. And those stuff will get cleaned when you do release().
There is a sort of defaultProfileKey notion - so when you do e.g. profileService.getActiveProfile(new ProfileKey(null)); it would return the profile associated with ProfileKey($jboss.server.name}).
So distribute(String name, URL url, copyContent = true) would add it to the injected default profile.
Whereas we might also want to differentiate between a normal Profile and a MutableProfile - where you can add and remove content.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213137#4213137
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213137
14 years, 1 month