-
1. Re: EJB 3 clustering error
dandare100 Jun 8, 2010 4:09 AM (in response to mahanare)Hello Harinath
Are you starting the JBOSS server with a "clustered" configuration? ie the "all" configuration ?
What version of JBOSS are you using ?
Have you tried @Clustered(loadBalancePolicy="RoundRobin") ? (Note the quotes and String type instead of class)
Mark
-
2. Re: EJB 3 clustering error
mahanare Jun 8, 2010 6:42 AM (in response to dandare100)Hi Mark,
Jboss version is 4.2.3.
Jboss cluster: Actually Jboss is more customized in our product and i think yes. but not sure if i am missing any configuration. we actually have custom configuration for the product (instead of "all").
yes, I tried. (giving string value is throwing compilation error).
@Clustered(loadBalancePolicy = RoundRobin.class)
any suggestions to explore more on this?
Thanks for responding to my query.
-Harinath
-
3. Re: EJB 3 clustering error
jbossq Jun 8, 2010 9:11 AM (in response to mahanare)when a @Clustered EJB deployed in a non clustered profile, this error occurs. you can try it in the all profile, if it works, you need to customize the all profile from scratch.
-
4. Re: EJB 3 clustering error
dandare100 Jun 8, 2010 10:06 AM (in response to jbossq)+1.
I had that error before and that was the cause.
-
5. Re: EJB 3 clustering error
jaikiran Jun 8, 2010 10:33 AM (in response to jbossq)jboss q wrote:
when a @Clustered EJB deployed in a non clustered profile, this error occurs.
Is that the case with AS-5.x and later too? I would have expected it to ignore that annotation if the profile doesn't support clustering.
-
6. Re: EJB 3 clustering error
mahanare Jun 8, 2010 1:09 PM (in response to jbossq)Yes, after adding the jboss cluster service xml into deploy folder and adding jbossha.jar to lib folder, this error has disappeared.
-
7. Re: EJB 3 clustering error
mahanare Jun 9, 2010 2:31 AM (in response to mahanare)And now the client complains with the "Caught: java.lang.RuntimeException: cluster invocation failed" error.
D:\projects\groovy>groovy hello.groovyCaught: java.lang.RuntimeException: cluster invocation failed, last exception was:at hello.run(hello.groovy:68)Any thoughts?
-
8. Re: EJB 3 clustering error
mahanare Jun 9, 2010 6:08 AM (in response to mahanare)My bad, server bind address was 0.0.0.0. that caused that error.
Its working finally. I see load being balanced to multiple servers in round robin fashion.
Thanks, Harinath