190 likes | 349 Views
CIS 764 Database Systems Engineering. L15: Deployment Deploy … to place or arrange for deliberate (intended) purpose. e.g. to install middleware to the running server. CIS 764 Database Systems Engineering. To deploy a web-app (middleware application = web+beans)
E N D
CIS 764 Database Systems Engineering • L15: Deployment • Deploy … to place or arrange for deliberate (intended) purpose. • e.g. to install middleware to the running server. http://www.cis.ksu.edu
CIS 764 Database Systems Engineering To deploy a web-app (middleware application = web+beans) means (i) to put the files in the correct server folders (ii) provide the config file to the server …so it knows how to: (a) how to map URL to folder, pages (b) map beans ref. to actual beans for localhost … files can be placed directly for remote server .. normally transferred as EAR = config + WAR + JAR + http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Enterprise Application aRchive. EAR file: config file WAR file: manifest web components ( html, jsp, images, servlets, tag files) Model.jar file: manifest class ( ejbs, business components, etc.) META-INF: deployment descriptor … identifies the application and target. http://en.wikipedia.org/wiki/EAR_(file_format) http://www.theserverside.com/tt/articles/content/J2EE-Deployment/chapter.html http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Can development work be done on the server host machine? Likely not. … test before release performance for testing, does not show correct delay for client-2-server for “real” world, false load on server security http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Can development work be done on the server host machine? except for: initial setup and starting the server what is: 127.0.0.1 ? http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Can “you” be set up as a server host? (e.g. your PC … your CIS lab account ) Issues … my internet service contact states no hosting default firewalls and routers block ports http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Homework … follow the general “in essence” the deployment tutorial: http://www.oracle.com/technology/obe/obe1013jdev/deployment/deployment.htm but: Use your JSF-ADF homework as the sample application, connected to the course sample data base. (Do not install the sample application given in the tutorial.) It shows using EM on local machine; (see related slides) it shows Jdev on local machine, as deployment tool, but to stand alone OC4J. If ports are open, remote users should be able to access the app ! <<< Warning: several pitfalls herein. Local policies may prevent opening of required ports in CIS labs! *** We are working on this. Will work on personal machines. http://www.cis.ksu.edu
CIS 764 Database Systems Engineering http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers http://www.cis.ksu.edu
CIS 764 Database Systems Engineering EM 8888 RMI 23791 ….. http://www.cis.ksu.edu
CIS 764 Database Systems Engineering http://www.cis.ksu.edu
CIS 764 Database Systems Engineering http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Submission: (i) As usual, post a few screen shots and words. Show your use of the Enterprise Manager with access to your application. Show running the client with connection to the remote URL (not “localhost”). (ii) If remote access works, set up a static page with the URL to your actual application; email a URL link to access your static page. (and have the application running when it is checked). Arrange time for instructor to check the application: T-Th 10:00-11:00 am (any remote sites) T,Th 4:00-5:00 (for CIS labs) http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Clarification: J2EE, Oracle, others refer to the server as the “application server”. However, Oracle has a separate Application Server which contains: OC4J as the J2EE server web services processor “g” connection services DB local replication Enterprise Manager tool others .. http://en.wikipedia.org/wiki/OC4J#OC4J http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Clarification2: Oracle Application Server: in 2008 Oracle bought BEA WebLogic Server as new 11g core product: “ongoing development … to integrate its best capabilities with Oracle WebLogic Server over time. “ http://www.oracle.com/appserver/index.html http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Web servers … not same as application servers! http://news.netcraft.com/archives/2008/02/06/february_2008_web_server_survey.html http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Web servers http://www.cis.ksu.edu
CIS 764 Database Systems Engineering Estimates of market share vary greatly. J2EE market share: was: 1,2 IBM, BEA … close 3 Oracle with purchase: Oracle becomes largest (but with split products to service) These ignore open source and non-J2EE; “market share” number installations vs $$, etc. http://www.dbta.com/e-edition/July08/12-column_harrison.html http://www.cis.ksu.edu
CIS 764 Database Systems Engineering other items in the Deploy folder OEM_Presentation … Breed deployment.htm Fall 2008 18 http://www.cis.ksu.edu
CIS 764 Database Systems Engineering end. Fall 2008 19 http://www.cis.ksu.edu