[jboss-user] [Clustering/JBoss] - Re: Load balancing and dev environment

maralcbr do-not-reply at jboss.com
Wed Apr 9 14:11:23 EDT 2008


Hi Brian,

I did some testing here. Follow my conclusions:

1)
<annotation expr="class(@org.jboss.annotation.ejb.Clustered)">
  | @org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class)
  | </annotation>
  | 
  | 11:08:27,539 WARN  [EJBContainer] Unable to replace @Clustered partition attribute null. Caused by class java.lang.NullPointerException null	
  | 

2)
<annotation expr="class(@org.jboss.annotation.ejb.Clustered)">
  | @org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class,partition=CorrectPartitionName)
  | </annotation>
  | 
  | Works ok.
  | 

3)
<annotation expr="class(@org.jboss.annotation.ejb.Clustered)">
  | @org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class,partition=${jboss.partition.name:DefaultPartition})
  | </annotation>
  | 
  | Big RuntimeException saying it does not understand the line.
  | 

Then, my conclusion is that is doesn't substitute the line. And it does not get the partition name set on the command line (-g partitionName).

The 2) is not an option, because we have a lot of developers here that load a local JBoss for testing, then everybody should have a different partition name (we are using -g %COMPUTERNAME%).

Do you have any ideas to work around this?

Thanks again.

Marcelo

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

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



More information about the jboss-user mailing list