• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it it necessary to deploy again and again?  RSS feed

 
svkumar1000
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Suppose I change code in my session bean or entity bean which is already deployed in websphere4.0,Shall I need to DEPLOY again from scratch i.e to create
.ear file agian in websphere4.0?please reply .
It is time taken process.

Thanks
vijay
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my opinion, you might have to deploy again!
Otherwise, how do you let the App Server know the deployed component updated?
For deployment, you can use Ant with a fixed script, might need some time but easier.
Regards,
Guoqiao
Originally posted by svkumar1000:
Hi,
Suppose I change code in my session bean or entity bean which is already deployed in websphere4.0,Shall I need to DEPLOY again from scratch i.e to create
.ear file agian in websphere4.0?please reply .
It is time taken process.

Thanks
vijay
 
srinath karkhani
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The latest application servers like wlserver,websphere, HP AS dont require for deploying again and again as they all use dynamic deployment eg like in HPAS if u delete the "timestamp" entry in the j2ee-connector-service.xml it gets redeployed and in wlserver the server checks the deployed folder (where the deployed jar files are placed) every5-10 min and if the jar file is updated one(based on the timestamp entry or last-modified entry) it is redeployed
Cheers
Sri
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear srinath :
Can you please say something more about

The latest application servers like wlserver,websphere, HP AS dont require for deploying again and again as they all use dynamic deployment.

Since I really don't understand how the app server can know the updated EJB without redeploying them!
TIA.
Guoqiao
 
srinath karkhani
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding the redeployment of the updated EJB's(jar files) the Application servers like HP AS when deployed a jar/ear/war file makes an entry in an xml file(like j2ee_deployment*.xml (i dont remember the name exactly)) whcih has a tag called "timestamp" which when deleted and restarted the server the updated jar/war/ear file gets redeployed coz it reads from this config xml file at runtime
even wlserver has the capability of dynamic deployment means the folder containing the deployed jar files gets checked every few min(which is configurable) and if the time_stamp/last_modified is different it treats as the jar/ear/war file has been updated and it redeploys the file
Correct me anyone if at all im mistaken
Cheers
Srinath
 
Akshadh Khanna
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have to install the whole application again in Websphere if you change code to existing classes/beans, or even if you want to add new EJBs. It can be done without uninstalling and installing the application.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!