[jboss-dev-forums] [Design of POJO Server] - Re: Issues with EJB2 ClusterConfigMetaData

bstansberry@jboss.com do-not-reply at jboss.com
Mon Nov 5 17:28:04 EST 2007


"scott.stark at jboss.org" wrote : "bstansberry at jboss.com" wrote : 
  |   | 1) Class exposes properties home(bean)LoadBalancingPolicy.  DTD says they should be home(bean)LoadBalancePolicy (Balance not Balancing).  
  |   | 
  |   | That's a simple fix I've already made in my workspace; please advise if I should check it in; don't want to step on people.
  |   | 
  | fine, in the metdata project right?
  | 

Yes.

"scott.stark at jboss.org" wrote : 
  | "bstansberry at jboss.com" wrote : 
  |   | 2) The way ClusterConfigMetaData.determineHome(Bean)LoadBalancingPolicy() work, you only get the default policy if you added a cluster-config element to your bean declaration in jboss.xml.  If the ClusterConfigMetaData came from a container-configuration, you *don't* get any default.  You get null unless the value was specifically set in the relevant container-configuration/cluster-config element. This leads to test failures.  A simple workaround to fix the test failures is to add the default policies to standardjboss.xml.
  |   | 
  | The default really should come from the container config. There still is too much logic in the ClusterConfigMetaData, and in fact I don't think we should be associating the ClusterConfigMetaData with a JBossEnterpriseBeanMetaData instance to figure out defaults based on bean type. We need a merge(ClusterConfigMetaData) added to ClusterConfigMetaData to merged the standardjboss.xml config into a partial jboss.xml config.
  | 

Good. I'll do it this way and get rid of defaults.

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

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



More information about the jboss-dev-forums mailing list