-
1. Re: JBoss AS6 failover - SFSB Error
ronsen May 31, 2011 7:24 AM (in response to ronsen)Sorry for the code tags and the table...hope readable anyway
-
2. Re: JBoss AS6 failover - SFSB Error
ronsen Jun 1, 2011 3:21 AM (in response to ronsen)has nobody an idea ?
-
3. Re: JBoss AS6 failover - SFSB Error
ronsen Jun 3, 2011 5:50 AM (in response to ronsen)I have experimented with it and came to the point, that the problem is the not repeated lookup of the bean.
Whenever I login, the bean will be looked up and stored as an obeject. Whenever I need to call a method from that bean, ill just get that object and call the method.
In case, the "masternode" is killed, this reference is lost and the lookup doesnt re-lookup the bean.
My solution would be instead of storing a reference, looking up the bean again and again and again... Waht I see here is the problem, that if I e.g. have a cluster of lets say 5 nodes, the lookup goes through 5 nodes(a lookup with a connection string of 5 node addresses) and tries to connect and this definitely takes to long for doing it quite often. I encountered that the lookup tries to connect to all of the nodes, even in cases it already founds a node it can connect to.
Probably my concept is wrong or im doing a mistake somewhere during the lookup?
I'd be happy if somebody has an idea,
thanks in advance,
-
4. Re: JBoss AS6 failover - SFSB Error
ronsen Jun 7, 2011 9:14 AM (in response to ronsen)Resolved, adjusted teh structure to catch failover exceptions and keep refreshing to connect with a list of active nodes to get a new proxy.
-
5. Re: JBoss AS6 failover - SFSB Error
thunder.farmer Jul 12, 2011 3:21 AM (in response to ronsen)Hi there,
previously I have same understanding as you, but now I find out that's NOT it.
The JBoss EJB transparent failover works perfactly....
My issue is cluster is NOT set up correctly....
-
6. Re: JBoss AS6 failover - SFSB Error
ronsen Jul 12, 2011 4:03 AM (in response to thunder.farmer)you sure, even for bigger size clusters and by killing the "leading" node?
-
7. Re: JBoss AS6 failover - SFSB Error
thunder.farmer Jul 22, 2011 3:16 AM (in response to ronsen)Ron K 编写:
you sure, even for bigger size clusters and by killing the "leading" node?
Yes, I test and verify that.
In short, for client transparent failover, client code don't need to try-catch code to recover.
-
8. Re: JBoss AS6 failover - SFSB Error
ronsen Jul 25, 2011 3:32 AM (in response to thunder.farmer)Strange then, I actually expected that, but i dont know then where my mistake is in such a simple lookup.
can you show me yours? And explain how and if you cache the object?
-
9. Re: JBoss AS6 failover - SFSB Error
thunder.farmer Jul 25, 2011 8:48 PM (in response to ronsen)Ron K 编写:
Strange then, I actually expected that, but i dont know then where my mistake is in such a simple lookup.
can you show me yours? And explain how and if you cache the object?
I lookup the ejb only once, and use the reomote ejb reference for all the subsequent calls.
For your issue, I can think of two concerns,
1. make sure the EJB is clustered
2. make sure JBoss server cluster are set up correctlly, for safity sake, run jboss server with -b 0.0.0.0
-
10. Re: JBoss AS6 failover - SFSB Error
ronsen Jul 26, 2011 3:04 AM (in response to thunder.farmer)Same do i, i looked it up once and
1. use the remote interface
2. have made sure that the cluster is set up correctly
strange.....do you look it up again whenever you call a method on that bean?
-
11. Re: JBoss AS6 failover - SFSB Error
thunder.farmer Jul 26, 2011 4:07 AM (in response to ronsen)Ron K 编写:
strange.....do you look it up again whenever you call a method on that bean?
No, I look up the remote refrence only once.
you can try your code on jboss 5, jboss 6 isn't good version for production...
-
12. Re: JBoss AS6 failover - SFSB Error
ronsen Jul 26, 2011 5:28 AM (in response to thunder.farmer);-) well then, ill try it on 5 and tell you if it works.