Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

development redeployment time

 
paul wheaton
Trailboss
Pie
Posts: 21660
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • 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?
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 21660
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 21660
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about if you are using WSAD? Much faster?
 
paul wheaton
Trailboss
Pie
Posts: 21660
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
bharat nagpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read in the infoCenter about "hot deployment". What to do in all three cases is covered in detail.
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic