[JMX Development] - Re: Isolating the JBoss package tree from the execution envi
by jaikiran
"g.tomassoni" wrote :
|
| These small changes are:
|
| 1) adding the following lines:
|
| <attribute name="AttributePersistenceManagerConfig">
| | <data-directory>file://${jboss.server.data.dir}/xmbean-attrs</data-directory>
| | </attribute>
|
| to the AttributePersistenceService mbean defined in jboss-service.xml;
|
| The first change is needed in order to move the xmbean-attrs directory outside of the "stock" data directory. I think this change should be included in the JBoss distribution, otherwise the jboss.server.data.dir property looses any meaning since you can't even start JBoss. Do you agree with me?
|
>From what i see in the JBoss AS 5.1.0 distribution, the AttributePersistenceManagerConfig is commented out:
| <!--
| <attribute name="AttributePersistenceManagerClass">org.jboss.system.pm.XMLAttributePersistenceManager</attribute>
| <attribute name="AttributePersistenceManagerConfig">
| <data-directory>data/xmbean-attrs</data-directory>
| </attribute>
| ...
| -->
So the data-directory value itself is just an "example". But i see what you mean. If we are providing an commented out example, we might as well provide one which uses the JBoss system property ${jboss.server.data.dir}.
"g.tomassoni" wrote :
| Also, while the xmbean-attrs directory gets automatically created when running the distributed JBoss "as is", the same doesn't happen when a different <data-directory> setting is given: the xmbeans-attrs have to be created in the "new" data dir before running JBoss. Why?
|
You mean after you uncomment that section and point it to some location, the folder (if non-existent) does not get created, in AS 5.1.0? Can you post the exact configuration (i.e. the location you are using in that file)?
"g.tomassoni" wrote : 2) adding the url of my external deploy directory to the URLs attribute of URLDeploymentScanner in jboss-service.xml (JBoss 4.x) or as a new uri element to the property applicationURIs in bootstrap/profile.xml (JBoss 5.x).
|
|
| but I would like to know if I have any way of adding a further deploy uri after JBoss startup, in example through JMX. The basic idea is to let JBoss start and then use JMX or whatever to contact the running JBoss and instruct it to have a look to that furter deploy URL. Is it possible? How?
AS-5.1.0 is backed by ProfileService's DeploymentManager which is the official API for managing deployments. I am not sure where this feature is available in the current API.
"g.tomassoni" wrote :
| I don't know if this is the right newslist to which report this, so excuse me if it isn't and please address me to the right one.
You have mix of questions/suggestions in this topic :) And both are not directly related to JMX itself. For the second question, i guess the best place would be the "Management" forum. But that's just my opinion. Let's see, if some moderator knows of a better place, he will move it appropriately.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254634#4254634
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254634
15 years, 4 months