and any changes are made in the application(code) then how server will come to know about the changes?
Basically we have two kind of servers in Java.
To deploy the application in WS. We need to create a war file. and need to keep in the specified location in the server.
To deploy the applicatio in AS. we need to create a ear file and need to keep in the specified folder in the server.
This location of the folder is specified in the Server help.
let me know, If you have more questions.
any changes are made in the application(code) then how server will come to know about the changes?
The server is just another Java program whose classpath is set to find your changed classes if they are uploaded to the correct directory.
There are many answers to that question. Firstly in a PROD environment, I would notify the users before I deploy the app. If you need a high availability online system which should handle changes quickly, you could use a content management system (say vignette) to make content updates.
It may also depend on the server how this is done. Some are capable of detecting changes and automatically deploying the ear. You can also write an ant script to check out code, compile it, make an ear and then deploy it homogeneously to the PROD environment.
This question probably belongs in Job discussion.
[ May 18, 2008: Message edited by: John Meyers ]
Originally posted by Jeanne Boyarsky:
It actually wasn't a cross post - it was three different questions with the same subject. I've edited all the subjects to be meaningful.
And I thought the same thing you did at first glance!
hehe. Sorry about that. I guess I ll open the topics next time just to be sure