-
1. Re: 5.0.0.GA deployment options for developers
peterj Dec 8, 2008 1:45 PM (in response to jgemski)Look in the file server/xxx/conf/bootstrap/profile-repository.xml, look for the bean named SerializableDeploymentRepositoryFactory and modify the applicationURIs property by adding another value. Example:
<property name="applicationURIs"> <array elementClass="java.net.URI"> <value>${jboss.server.home.url}deploy</value> <value>file:///c:/dev</value> </array>
Unlike the old URIList, you can only supply directories here (files will not work), so a trailing '/' is not required, but any directories listed participate in hot deployment (in earlier version only the first directory participated in hot deployment). -
2. Re: 5.0.0.GA deployment options for developers
jgemski Dec 8, 2008 3:08 PM (in response to jgemski)Thanks Peter. It worked perfectly.
-
3. Re: 5.0.0.GA deployment options for developers
rob.stryker Dec 11, 2008 6:54 PM (in response to jgemski)On a similar note, we also used to be able (in 4.x) to add, at runtime and without modifying the configuration, another location to be scanned by calling the DeploymentScanner mbean and adding a url / folder that should be scanned. This was accomplished from a different process entirely.
Is this still an option? I'm looking in the available JMX beans that are exposed and I'm not seeing one that matches up in this regard. I realize JMX is being de-emphasized in future releases, as it's no longer the base of the kernal.
The use case I'm trying to solve here is, in an eclipse environment, a user may want to declare 3 or 4 "servers" using the same configuration / runtime data. All the information in the current deploy folder would still need to be deployed; we'd just want an additional separate area where deployments could be made from eclipse without "polluting" the primary deploy location server/${conf}/deploy.
Currently the eclipse tooling sets up a place in eclipse metadata for deployments from the dev environment to be published to, and in 4.x I am able to add add it as a place to be scanned without modifying any xml files in the installation / configuration.
*Any* possible solution is appreciated ;) Even if the only option is that I write my own MBean which interfaces directly with... erm... whatever handles where the deployment locations are (about which I know approximately zero right now ;) ) -
4. Re: 5.0.0.GA deployment options for developers
alesj Dec 11, 2008 7:17 PM (in response to jgemski)"rob.stryker@jboss.com" wrote:
*Any* possible solution is appreciated ;) Even if the only option is that I write my own MBean which interfaces directly with... erm... whatever handles where the deployment locations are (about which I know approximately zero right now ;) )
See JBOSS_HOME/server/default/conf/bootstrap/profile-repository.xml.
And check ProfileService (PS) tests on how to get a hold of ProfileService/ManagementView reference:
- http://anonsvn.jboss.org/repos/jbossas/trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java
You should get a hold of PS, and add new url to a runtime object - SerializableDeploymentRepositoryFactory.