[zanata-bugs] [Bug 831482] New: Define system properties service MBean in JBoss
bugzilla at redhat.com
bugzilla at redhat.com
Wed Jun 13 06:07:53 UTC 2012
https://bugzilla.redhat.com/show_bug.cgi?id=831482
Bug ID: 831482
QA Contact: dchen at redhat.com
Severity: unspecified
Version: 1.6
Priority: unspecified
CC: zanata-bugs at redhat.com
Assignee: runab at redhat.com
Summary: Define system properties service MBean in JBoss
Regression: ---
Story Points: ---
Classification: Community
OS: Unspecified
Reporter: pahuang at redhat.com
Type: Bug
Documentation: ---
Hardware: Unspecified
Mount Type: ---
Status: NEW
Component: Maintainability
Product: Zanata
Flags: technical_note+
Description of problem:
We need to have a unified way of defining system properties for Zanata.
How reproducible:
n/a
Steps to Reproduce:
n/a
Actual results:
Hibernate search and Java melody writes files to a location defined at build
time which is not flexible when deploy to different environment.
Expected results:
Add properties-service MBean into conf/jboss-service.xml so that we can define
system properties for various things on different environment. This requires no
re-build.
Additional info:
To define property for hibernate search index base:
- remove hibernate.search.default.indexBase property in
zanata-war/src/main/webapp-jboss/WEB-INF/classes/META-INF/persistence.xml
- add following xml snippet into
$JBOSS_HOME/server/default/conf/jboss-service.xml
<mbean code="org.jboss.varia.property.SystemPropertiesService"
name="jboss:type=Service,name=MySystemProperties">
<attribute name="Properties">
javamelody.storage-directory=/var/lib/zanata/stats
hibernate.search.default.indexBase=/var/lib/zanata/index
</attribute>
</mbean>
- make sure jboss user has write permission to above defined directories
Clean up no longer needed code/stuff:
- remove property env.hibernate.indexBase in zanata-war/pom.xml
- remove properties-services.xml under $JBOSS_HOME/server/default/deploy
- remove zanata-war/src/etc/properties-service-sample.xml
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the zanata-bugs
mailing list