Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Intersection of Development and Deployment Environments

 
Sandra Bachan
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am reading Head First Servlets and JSP and am on Chapter 3. Screenshot of the depicted Development and Deployment environment are attached.

I just do not understand where they would intersect. Where should I create my Development environment in terms of my Deployment environment? Should they share a common directory. I am really confused when the book says:


Create this HTML fle, call it form.html, and save it in your development
environment under the /beerV1/web/ directory.

Place a copy of the form.html fle into tomcat/webapps/Beer-v1/.
(Remember, your tomcat home directory might have a different name).


I know where Beer-v1 is because I set up Tomcat, but I haven't created beerV1...




Development.png
[Thumbnail for Development.png]
Deployment.png
[Thumbnail for Deployment.png]
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3165
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your Deployment Environment- You only have the class files, JSPs, HTML and other resources like images, css, javascript files. But in Development environment you have all these plus the source code of you Java classes, servlet classes.

Your deployment environment would exist only if you have your development environment- in other words- you do some development and then move those resources required for running the application into the deployment environment.
 
Sandra Bachan
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohamed Sanaulla wrote:In your Deployment Environment- You only have the class files, JSPs, HTML and other resources like images, css, javascript files. But in Development environment you have all these plus the source code of you Java classes, servlet classes.

Your deployment environment would exist only if you have your development environment- in other words- you do some development and then move those resources required for running the application into the deployment environment.




Hello Mohamed,

Now I understand little better. Originally I wanted to know whether Development environment and Deployment environment shared any directory. I then went back few pages in Head First, and it says

But first, you need to set up your development environment—a project directory
structure that’s separate from your actual deployed app.


My understanding it that Development and Deployment environment should be totally separate.

Just trying to grasp this new concept...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic