-
1. Re: Deploy properties-service.xml in JBOSS AS 7
joydevsingha Sep 26, 2011 2:39 AM (in response to joydevsingha)This is my sample properties-service.xml file
<mbean code="org.jboss.varia.property.PropertyEditorManagerService"
name="jboss:type=Service,name=PropertyEditorManager">
<!--
| Register and editor for each of the type_name=editor_type_name listed
| in properties file style convetion.
<attribute name="Editors">
java.net.URL=my.project.editors.URLPropertyEditor
</attribute>
-->
</mbean>
<!-- ==================================================================== -->
<!-- System Properties Service -->
<!-- ==================================================================== -->
<!--
| Allows rich access to system properties.
-->
<mbean code="org.jboss.varia.property.SystemPropertiesService"
name="jboss:type=Service,name=SystemProperties">
<!--
| Load properties from each of the given comma seperated URLs
-->
<attribute name="URLList">
./waproperties/WaPropertyExample.properties
</attribute>
<!--
| Set raw properties file style properties.
-->
<attribute name="Properties">
test.prop1=test property
</attribute>
</mbean>
</server>
-
2. Re: Deploy properties-service.xml in JBOSS AS 7
jaikiran Sep 27, 2011 12:02 AM (in response to joydevsingha)AS7 doesn't allow deploying standalone xml files (like this one). You could however package that file as a jboss-service.xml within the META-INF folder of your application and deploy it. But then again, the MBean class that you have in that file isn't available in AS7. So that's going to fail with ClassNotFoundException.
If you just want to setup some system properties, then a better way to do it is mentioned here https://docs.jboss.org/author/display/AS7/Admin+Guide#AdminGuide-SystemProperties