File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to deploy application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to deploy application" Watch "how to deploy application" New topic
Author

how to deploy application

shruti patel
Ranch Hand

Joined: Mar 10, 2008
Posts: 52
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

Joined: Apr 26, 2003
Posts: 130
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


"Unwise to sweat petty stuff, wise to pet sweaty stuff."
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
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.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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 ]

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to deploy application
 
Similar Threads
Hot Deployment in IntelliJ and Tomcat
Http404 file not found
Deploying EAR on Sun One application server
how to use JBOSS-3.2.0_TOMCAT-4.1.24
Remote Deployment