[jboss-user] [EJB 3.0 Users] - Re: @Resource and systemproperties-service.xml

jaikiran do-not-reply at jboss.com
Fri Oct 2 05:33:51 EDT 2009

I think there's a way out. Instead of specifying the properties in the deploy/systemproperties-service.xml file, you can instead have a MBean as follows in the JBOSS_HOME/server/< servername>/conf/jboss-service.xml:

<!-- Jaikiran: Copied this SystemPropertiesService MBean from deploy folder  -->
  |    <mbean code="org.jboss.varia.property.SystemPropertiesService" 
  | 	  name="jboss:type=Service,name=MySystemProperties">
  | 		     <attribute name="Properties">
  | 			     serverName=blahblah
  | 		     </attribute>
  |   </mbean>

That way, you don't have to worry about the deployment ordering and dependencies, since the conf/jboss-service.xml is always loaded during bootstrap of the server, before it picks up the deployments.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258345#4258345

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258345

More information about the jboss-user mailing list