Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

development redeployment time

 
Trailboss
Posts: 23866
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suppose I make a change to an EJB and then re-deploy. How much time does it take webshpere to absorb my new ear file?
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you've redeployed an EJB then you'll need to restart the application. The change should take place immediately after application restart.
Kyle
 
paul wheaton
Trailboss
Posts: 23866
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kyle!
I guess I'm trying to figure out how many minutes and seconds we might be talking about.
I have a new ear file and websphere is currently running with an old ear file on my development box. I just wanna try my little change. Assuming that there isn't a whole lot to the ear file, how long does it take for the application to restart? Do I need to shut down websphere?
(apparently we're gonna get websphere soon, so I'm curious)
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on a lot of things like the size of the EAR file and the speed of your box, but usually if you're just going to stop the app, redeploy and restart the app, it takes about 1-2 minutes for me.
Kyle
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And no, the server continues running through this process... If you click fast, or use a WSAdmin script, it's even faster than my 1-2 minutes...
Kyle
 
paul wheaton
Trailboss
Posts: 23866
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about if you are using WSAD? Much faster?
 
paul wheaton
Trailboss
Posts: 23866
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kyle,
I know a lot of J2EE vendors let folks run a free copy of their server for development purposes. Is websphere one of these?
Also, any wackiness if I wanna develop on linux? Somebody said something about having to get a particular flavor of redhat linux, but I suspect that might only be for production systems.
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Paul,
It takes 3-4 minutes on Websphere on a slow machine/network.
In WSAD, a server restart takes about 2 minutes. But you don't always have to restart the server. You can just restart the ear (right click on the server for the option to do this.) Restarting one ear takes 15-30 seconds.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's say I want to change my application in any of three ways:
1) There is slight change in one of the bean's method. Let's say I'm incrementing the value of a local varibale by one.
2) Method's signatures have been changed.
3) The EJB is new one (is it possible to add new ejb jar in the existing EAR, without redeploying the whole EAR?)
what exactly I need to do in these three cases (Let's say I'm not using WSAD), and using ANT to build the application.
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read in the infoCenter about "hot deployment". What to do in all three cases is covered in detail.
Kyle
 
reply
    Bookmark Topic Watch Topic
  • New Topic