[jboss-dev-forums] [Design of EJB 3.0] - JBossDDObjectFactory use of SystemPropertiesService

bstansberry@jboss.com do-not-reply at jboss.com
Thu Mar 22 18:30:18 EDT 2007


JBossDDObjectFactory.getValue is attempting to invoke on the SystemPropertiesService in order to do system property substitution.  This is failing in Branch_4_2:


  | 2007-03-22 16:42:15,859 WARN  [org.jboss.ejb3.metamodel.JBossDDObjectFactory] Unable to look up property service for jboss.xml element partition-name with value ${jboss.partition.name:DefaultPartition}. Caused by class javax.management.InstanceNotFoundException jboss:type=Service,name=SystemProperties is not registered.
  | 

This particular example works out OK, because later code meant to handle  ${jboss.partition.name:DefaultPartition} as the value for @Clustered(partitionName=...) performs the substitution using org.jboss.util.StringPropertyReplacer.  But other property substitutions will fail.

So,

1) Any reason JBossDDObjectFactory doesn't just use org.jboss.util.StringPropertyReplacer?  It's not clear to me what the benefit of calling on the SystemPropertiesService is.

2) If there's a reason to call the SystemPropertiesService I suppose we should get it to work in Branch_4_2 for 4.2.0.GA.

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

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



More information about the jboss-dev-forums mailing list