• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie question about web application targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question about web application targets


  • Subject: Re: Newbie question about web application targets
  • From: Robert Walker <email@hidden>
  • Date: Fri, 8 Oct 2004 23:51:50 -0400

Darch,

Maybe I can clarify a little further.

What you are calling the "Application" target is actually called the aggregate target and as below it provides a way to build all files in both "Application Server" and "Web Server" targets. When deploying a WebObjects application the goal is to install all intellectual property (i.e. your application logic and business logic) from public view. This is is what makes up the "Application Server" target. This target contains nearly all of your source code, components, html templates, etc.

All "Application Server" files are stored in a non-public location on you application server (which may even be a server not visible to the outside world). This means that the HTTP (Web) server cannot access any of these files, so what is need is a way to separate the web server resources from the application and business logic. This is called a "split-install" in the world of WO.

Files that need to be sent directly to the client web browser are to be placed in the "Web Server" target. These include all you JPEG, GIF, QuickTime, Flash, etc. Everything else goes in the "Application Server" target. The aggregate target usually contains no files of it's own.

When you deploy the application you will find that there are two files with "woa" extensions. One lives in /Library/WebObjects/Applications and the other lives in /Library/WebServer/Documents/WebObjects. It's obvious which target each represents. The "Web Server" target's .woa file contains only your graphics and other public files. Your web server can then freely server these to your client's browser, without you worrying about anyone accessing your intellectual property (which resides in the non-public /Library/WebObjects/Applications folder).

Hope this helps to make this mechanism clear.

On Oct 8, 2004, at 11:14 PM, Ray Ackland wrote:

Darich,

Hopefully I can answer this question correctly for you.

I believe the Application target is just a dummy target that holds the other two. When you build this target, it automatically builds everything listed within it.

The application server target is to build the files that will run on your WO server, while the web server creates what is needed for the machine actually hosting the web server (quite possibly the same machine). In Java client applications, the latter target is to create the files used in the client applications.

If you think of it another way, the application server includes the files necessary for WO to grab data and send it to the web server (eg EOModels). The web server includes the files needed to create web pages with that information.

Hope it helps.

r

On 09/10/2004, at 15:20, Darich Runyan/OMNI INFOSEC LTD HQ wrote:

I am new to WO but not new to Java coding on OSX; however, up to this point
I have only built stand alone and client-server apps using Project Builder
and Xcode, this is my first attempt at a WO Web Application. The question
that I have is about targets. When I built a standard app I generally have
a target for the single app or I have a client or server target. With a web
application project, I get 3 default targets; the app, the application
server, and the web server. What are the application server and web server
targets all about? I noticed in the tutorials that Apple supplies that they
add everything to the application server target, including new components,
EOModels, etc. Under what circumstances would you add items to the web
server target or the actual app target? If this is information is covered
somewhere please point me in the right direction.


Thanks for the time,
Darich

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


--
Robert Walker
www.robertwalker1.com

"There are 10 kinds of people in the world. Those who think binary and those who don't."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Newbie question about web application targets (From: Darich Runyan/OMNI INFOSEC LTD HQ <email@hidden>)
 >Re: Newbie question about web application targets (From: Ray Ackland <email@hidden>)

  • Prev by Date: Re: Components in Packages
  • Next by Date: [still newbie] How to redisplay correctly a WODisplayGroup after deleting an EO
  • Previous by thread: Re: Newbie question about web application targets
  • Next by thread: Re: Newbie question about web application targets
  • Index(es):
    • Date
    • Thread