Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Regarding J2ee application..

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, ..

Firstly i do not know which forum this question goes into;.. sorry if i am in the wrong forum,..

Well, we have a j2ee application running on websphere ,..(not simultaneously running on many servers, running on just 1 server)

Now when we want to update the application,.. generally what i do is stop the application,.. update by installing the EAR file and then start the application again.

My question is when the application is shut down,.. is there a way to show a page saying application is down or something like that instead of the
HTTP 404 Not Found Error.

How do u guys do it ?? I know if the application is running on many servers, you can do the re-routing thing,.. something like that..

Any ideas and suggestions will be greatly appreciated,.. i know u java-ranchers have great ideas and knowledge


Thanks

PS: is there a way that u can do some kind of set up in the Http server to handle this..
 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Antonio Giovanni , some of the recent version of application servers supports hot deploymnet(no need to restart your application server for changes)
 
Antonio Giovanni
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi kri shan,

Thanks ... my websphere does support hot deployment,.. and i think by mistake u didn't understand my point

I do not restart my application server,.. i restart only my Application,.. the other applications will be running..

and well i restart my application when i change the web.xml,... in which case i assume u have got to start ur application again..
Will hot deployment take care of this ?? handle changes in web.xml ??

For simple updates i follow the hot deployment..

Thanks anyway
 
Antonio Giovanni
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok... looks like hot deployment will take care of changes in web.xml
but it definitely invalidates all the existing sessions..

Anyway lets not hijack this thread,.. i just want to know how you guys display the "Application is shut down page " when the application is down, and yeah the application server is not down and is running.

 
Sheriff
Posts: 67398
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we have down time, our ops group redirects the traffic to a box running Apache with a simple "We'll be right back" page.
 
mooooooo ..... tiny ad ....
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic