Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB + JBoss AS 7 - How to auto reconnect from Client when Server has been restarted/Redeployed?  RSS feed

 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I do have 2 JBoss standalone instances running. 1 act as Server and another 1 would client.


SERVER:


Remote Interface


EJB Impl

server.log

Client


jboss-ejb-client.properties


It's working well. But,

I have a scenario, where (only) SERVER Application has been redeployed. It breaks the connection on CLIENT application. I have to redeploy CLIENT application (even if no changes made on CLIENT). Possible to avoid this?

If CLIENT tries to reconnect, It gets following error message....




 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reconnect should work fine automatically. Which exact version of JBoss AS/WildFly is this?
 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jai,

It is JBoss AS 7.1.1.Final
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was a bug which was fixed in a later version https://issues.jboss.org/browse/AS7-4510. I recommend that you upgrade to the latest released stable version of WildFly (JBoss AS has been renamed to WildFly) http://wildfly.org/downloads/
 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jai.

We are already LIVE with JBoss AS 7.1.1.Final. Is there any workaround?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could build AS 7.1.1.Final from source by applying this patch https://github.com/wildfly/wildfly/pull/2050.patch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!