"adrian(a)jboss.org" wrote : It should not be replacing properties during the
parsing.
|
| The correct place to fix this is in AbstractBuilder
| when it constructs the ServiceTextValueMetaData.
I just tried it. It works for String-based properties. But not int, for example. Since
unmarshalling/JAXB converts string values to the target Java types in metadata. And then
the builder is called.
One way to workaround this could be to make all the properties in the metadata Strings. It
seems like whatever type of the property is the value is converted to String anyway during
the service building.
Also other uses of the unmarshalled metadata will have to be checked to make sure the
system properties are substituted, e.g. when creating object names. Because now I got
13:47:00,957 INFO [ConnectionFactoryBindingService] Bound ConnectionManager
'jboss.jca:service=DataSourceBinding,name=${jndi.name}' to JNDI
| name 'java:SomeDS'
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178781#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...