-
1. Re: Accessing properties from jboss
dimitris Apr 12, 2007 3:39 AM (in response to veeseekay)see server/xxx/deploy/properties-services.xml
-
2. Re: Accessing properties from jboss
veeseekay Apr 12, 2007 6:10 AM (in response to veeseekay)could you please explain in detail(probably with an example?)
-
3. Re: Accessing properties from jboss
dimitris Apr 12, 2007 6:20 AM (in response to veeseekay)I only had to google for properties-service.xml to come up with this:
http://wiki.jboss.org/wiki/Wiki.jsp?page=PropertiesService -
4. Re: Accessing properties from jboss
veeseekay Apr 20, 2007 12:33 AM (in response to veeseekay)I could finally access the props specified in jboss-service.xml through an MBean, initially I had mentioned that I did not want to do it through MBean, but now due to a change, I have to do this, and here is an FYI on how to do it :
1) specify your key-value pairs in jboss-service.xml
Ex :
<!-- Additional properties required by the environment -->
<![CDATA[
Key1=11111
Key2=22222
.....
2)Now in your management bean, put an @Depends
Ex:
package com.abc.xyz;
// your import statements
/**
* @author somebody
*
*/
@LocalBinding(...)
@Service(...)
@Management(...)
@Depends("jboss.util:type=Service,name=SystemProperties")
public class MBeanClass implements MBeanInterface {
...
}
3)Now in your Mbean you can access the props with a System.getProperty() call.