• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to deploy application

 
shruti patel
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to deploy an application on server?
and any changes are made in the application(code) then how server will come to know about the changes?

[edited subject to use a meaningful subject - was "interview question"]
[ May 18, 2008: Message edited by: Jeanne Boyarsky ]
 
narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to deploy an application on server?
and any changes are made in the application(code) then how server will come to know about the changes?

Sruthi,
Basically we have two kind of servers in Java.
Web Server
Application server

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.

Regards
Narasimha
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not cross post and double post

http://www.coderanch.com/t/293585/JSP/java/passing-variables-jsps

http://www.coderanch.com/t/293584/JSP/java/jsp-parent-class

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 ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34236
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John,
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!
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
John,
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic