JBoss Community

Re: The replacement of system properties in *-ds.xml is done only for elements of string value type

created by Radim Hanus in IronJacamar - View the full discussion

Hi Ales

 

Thanks for answer!

 

>> How exactly are you seeing the "but no success"?

I've rewritten properties-service.xml to properties-jboss-bean.xml to be able to define supply:

 

<bean name="SystemProperties" class="org.jboss.varia.property.SystemPropertiesService">                  <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:type=Properties,name=MyAppSystemProperties",exposedInterface=org.jboss.varia.property.SystemPropertiesServiceMBean.class</annotation>                  <property name="properties" replace="false">            

           istep.db.maxPoolSize=150
          istep.db.idleTimeout=60
     </property>
     <supply>SystemProperties</supply>
</bean>

 

and I placed demand into ear CL deployer:

 

<bean name="EARClassLoaderDeployer" class="org.jboss.deployment.EarClassLoaderDeployer">
     <!-- A flag indicating if ear deployments should have their own scoped
        class loader to isolate their classes from other deployments.
     -->
     <property name="isolated">false</property>

     <demand>SystemProperties</demand>
</bean>

 

but JAXB started to unmarshal ds descriptor before "configured" of system properties

may be I'm completely wrong but as I had some time during christmas to dive into source codes I'm really curious about solution :-)

 

>> Placing your property service into deployers/ should work.

and it really works !!!

Reply to this message by going to Community

Start a new discussion in IronJacamar at Community