• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....




 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jai,

It is JBoss AS 7.1.1.Final
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic