Combat J2EE-shopping site development (1)

  Foreword 

  î—± î—± combat throughout the preparation of this paper a shopping website to explain how to use J2EE to build enterprise-class network applications!    This paper like me is the absolute beginner, if you are a master to Xianxiao on Mo! 

  1: development platform structures 

  î—± î—± paper from actual battle conditions, so on a number of conceptual problems do not speak, these NEE can google found on the first guy it for the following: 

  î—± î—± 1. Oracle 
  î—± î—± 2. Weblogic 
  î—± î—± 3. Jbuilder 

  î—± î—± Other: struts-console-2.2 (for struts view development) PowerBulider (for database operations) Dreamweaver (landscaping prospects pages) 
  That, in the company I used the development of the NEE!    Development Platform for win2000. 

  î—± î—± following configuration to my family as an example of the detailed structures J2EE development platform.    (Home software from the Internet when all) 

  î—± î—± console configurations: 1.7 G P4 Celeron, 256MB 20GHDD OS: windows2000 SP3 
  î—± î—± database: oracle 8i 
  î—± î—± J2EE application platform: weblogic 6.1 sp2 
  î—± î—± EJB, JSP, jAVABEAN Development: 7 weblogic version of jbuilder 

  î—± î—± first step, the installation configuration oracle database 

  î—± î—± install the latest version of the oracle 9 i nothing, but if you P4 machines tops 8 i may be problems at the installation after no response.    (P4 Celeron also the existence of this problem) can not, I is the oracle of 8 from the Internet when i (i Slender more than 9), and if you are a P4 machine i have installed the 8, then press the following methods (which is I found the online method) 

  î—± î—± (1) create a temporary directory, and the installation of Oracle8i source copy of this directory. 
  î—± î—± î—± î—± stage to find directory \ Components \ oracle.swd.jre \ 1.1.7.30 \ 1 \ DataFiles \ Expanded \ jre \ win32 \ bin under the symcjit.dll documents, and renamed symcjit.old.    OEM attention to the directory is also available in a document to symcjit.dll renamed. 
  î—± î—± (2) search oraparam.ini document, open it and change the line RE_MEMORY_OPTIONS =- mx48m parameters JRE_MEMORY_OPTIONS =- nojit-ms16m-mx32m 
  î—± î—± (3) other parameters remain unchanged. 
  î—± î—± (4) the implementation of local hard disk install \ win32 \ setup.exe directory under the Setup.exe file.    This is called the revised document oraparam.ini parameters. 
  î—± î—± (5) the selection of custom installation model, and not to create the database. 
  î—± î—± (7) Oracle8i After the installation is complete, the installation directory of every one of the following documents need to be amended accordingly.    (If we do not have any application to amend point no response) 

  î—± î—± assistants \ dbca \ dbassist.cl 
  î—± î—± assistants \ dbma \ dbmig.cl 
  î—± î—± assistants \ ifa \ ifa.cl 
  î—± î—± bin \ elogin.cl 
  î—± î—± bin \ owm.cl 
  î—± î—± ldap \ oidamdin \ oidadmin.cl 
  î—± î—± network \ tools \ netasst.cl 
  î—± î—± network \ tools \ netca.cl 
  î—± î—± owm \ install \ instelogin.cl 
  î—± î—± owm \ install \ instowm.cl 

  î—± î—± editing tools were used to open the above-mentioned document, increasing parameters - nojit to dbassist.cl documents indicate the following example: 

  î—± î—± Command = ( "C: \ Program Files \ Oracle \ jre \ 1.1.7 \ BIN \ JREW"-nojit-classpath ….) 

  î—± î—± used the same method to amend the list of every one. Cl content of the document. 
  î—± î—± modify database administrator after running under the Database Configuration Assistant can create the database, this is a long process, in the creation of the database to create the overall logo, Gaoge good mind on the trip, after a good configuration database connection.    Creation of the latter, the default system DBA user name and password for the manager. 
  î—± î—± in the future, I will continue to speak about the oracle beginner experience to help everyone Quick Start! 

  î—± î—± second step, the installation configuration weblogic 6.1SP2 and connects oracle 

  î—± î—± win weblogic basically platform can be installed directly, but we should pay attention to it should not be installed in a space such as the Program Files directory, or Chinese directories, default c: \ bea by default at the next step, Installation can be completed, the basic no accident!    (The simplest installation), and finally to remember your password for the management! 
  I administrators and service names were changed. 

  î—± î—± To facilitate debugging, automatic service will be launched as a weblogic 

  î—± î—± set your password management, access to the console, launch services would have to be 

  î—± î—± To facilitate, I will list to the D-and changed maxuan domain, the server to max, then we will deploy JDBC connection oracle database 

  î—± î—± first open D: \ bea \ wlserver6.1 \ config \ maxuan (maxuan for me to the name, the default for mydomain) with a text editor such as: notepad or editplus open startWebLogic.cmd find "set PATH = "line, added." \ bin \ oci817_8 "such as himself to" set PATH = \ bin;. \ bin \ oci817_8;% PATH% " 

  î—± î—± To start weblogic do not always enter a password, "set WLS_PW =" at the time of installation input the password can be set. 

  î—± î—± double-click startWebLogic.cmd or direct operation in the proceedings initiated weblogic Start Default Server (Be careful not to the Commissioner of the window yo) 
  Start weblogic 

  î—± î—± then in the process of running Start Default Console into the console operation, in the resulting dialog box input management system user name, password, you can enter a password! 

  î—± î—± Services points to the left, you can see JDBC 

  î—± î—± point opened it, click on the following Connection Pools, the right configuration item will appear, click on Configure a new JDBC Connection Pool configuration items appear in the Configuration tab under the General Allocation 

  î—± î—± name: Here, I filled out the "mytest"; 
  î—± î—± URL fill "jdbc: weblogic: oracle"; 
  î—± î—± Driver Classname: Fill in "weblogic.jdbc.oci.Driver"; 
  î—± î—± Properties (key = value): Fill: 
  î—± î—± user = system 
  î—± î—± password = manager 
  î—± î—± server = oradb 
  î—± î—± here oradb that is installed by the oracle database created by the Global logo.    User and password I use the default DBA, you can use to create their own user name and password.    Click Apply button to finish. 

  î—± î—± click Targets Servers under the label of the Available moved Chosen Tgets-Server, and then Apply button. 

  î—± î—± then configure the following Data Sources in the right "Configure a new JDBC Data Source," the creation of a new Data Sources here Pool Name Name and fill the above settings are "mytest" JNDI Name fill out the "oradb" with the above, click on the Targets Servers labels under the Available-Server Targets Chosen moved, and then Apply button. 

  î—± î—± then points to Start Default Server should see the window has been launched jDriver / Oracle! 
  î—± î—± PS: weblogic have time, but also participated in weblogic J2ee training, after relevant experience will be put to the Forum! 
  î—± î—± restart a service! 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Recommend Articles

Comments

Leave a Reply