[jboss-dev-forums] [Design of JCA on JBoss] - Re: Datasources not parsing jboss.server.data.dir

alex.loubyansky@jboss.com do-not-reply at jboss.com
Thu Sep 25 08:13:16 EDT 2008


"adrian at 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#4178781

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



More information about the jboss-dev-forums mailing list