Introduction


This appendix presents an example of an end-to-end application that uses different parts of WebLogic Platform in a variety of ways. The application is used by a fictitious multinational corporation, Avitek, with a number of subsidiaries that use WebLogic Platform to integrate internal and external systems. These systems include external business-to-consumer (B2C) portals, internal human resource portals, and business-to-business (B2B) portals. WebLogic Platform is used in each case.

The example is presented as three different use cases. The first use case is focused primarily on WebLogic Portal. The second highlights features and functionality of WebLogic Workshop. The third use case demonstrates WebLogic Integration.

You will be looking at these three use cases from a user perspective, and then from an architectural perspective. The user perspective shows each use case from the perspective of a user of the Avitek site. When going through each use case, you assume the identity of a particular user performing a particular task. The architectural perspective dives into implementing the use case.

Caution

Although the sample application contains a great deal of content that's intended for examination, many pages have links that appear to be active but are not actual working links. Because this appendix focuses only on specific parts of the example and does not explore other parts, you might find problems with some links and examples that are outside the scope of this discussion. However, it's important to note that this is a working example, and that real code is used to implement the sample application.


Note

A BEA team consisting of Herain Oberoi, Curtis Mager, Joe Hilany, Sam Ramji, and Eduardo Alverez developed the end-to-end example for this appendix. The examples have been developed and tested by this team and others. The author wishes to sincerely thank them and all the people who worked on the example.


Installation

The example is supplied as a single zip file to be extracted into an already working copy of WebLogic Platform 7. The example has been tested with WebLogic Platform 7 GA, 7 SP1, and 7 SP2. Your installation should include the sample applications included with WebLogic Platform 7. (This is the default during installation.)

The installation instructions assume that you installed WebLogic Platform into the C:\bea directory. This is your BEA home directory. You need to adjust the directory paths referenced in these instructions if your BEA home directory is somewhere else.

By default, WebLogic Platform creates a directory structure under the BEA home directory that looks like this:

 
 c:\bea jdk131_06\ license.bea logs\ registry.xml UpdateLicense.bat user_projects\ utils \ weblogic700\ 

Under the weblogic700 directory is a series of directories:

 
 samples\ platform\ e2eDomain\ 

To install the example, unzip the zip file into the samples\platform directory ( c:\bea\weblogic700\samples\platform ). This creates a directory named demoDomain . When you are done, there should be two directories under the platform directory: e2eDomain (which is part of the Platform installation) and demoDomain . The installation of the example and the Platform combined with the disk space for running the Platform requires approximately 1GB of free disk space. Your system should have at least 512MB of memory and be a minimum of a 500MHz Intel Pentium II. WebLogic Platform 7 SP2 is supported on the following Microsoft Windows platforms:

  • Windows 2000 Professional Edition with Service Pack 2 or later. This platform is certified only for design and development, not for production.

  • Windows 2000 Server with Service Pack 2 or later.

  • Windows NT 4.0 with Service Pack 6 or later.

  • Windows XP. This platform is also certified only for design and development, not production.

Note

The latest information about hardware and operating system certifications for WebLogic Platform 7 is available from http://edocs.bea.com/.


If you are installing with WebLogic Platform 7 SP1 (7.0.1.0) or WebLogic Platform 7 SP2 (7.0.2.0), you also need to copy the file c:\bea\weblogic700\samples\platform\demoDomain\sp1\ejbadvisor.jar to c:\bea\weblogic700\samples\platform\demoDomain\beaApps\e2eApp . If you forget this step, the server will not start up correctly under 7 SP1 or 7 SP2. Do not install this file if you are using the general availability (GA) release of WebLogic Platform 7 (7.0.0.1). You can determine the version of WebLogic Platform you have installed by looking at the file c:\bea\registry.xml . Within that file is version information for each component that was installed. The version information looks like this:

 
 <component name ="WebLogic Server" version="7.0.2.0"> 

This shows that your WebLogic server is at version 7.0.2.0, which is the same as 7 SP2.

Restrictions

This demo is available only for the Windows platform. Additionally, WebLogic Platform must be on the same machine as the browser. The standard server alias localhost is used to access sample applications in the browser. For this particular example, you can't run the server on one machine and the browser on another.

Any current browser should work with this example. However, there are known problems with the Netscape 4.x series of browsers. Netscape 6.x and 7.x, the Mozilla browser, Microsoft Internet Explorer 5.x and 6.x, and the Opera browser all work well.

Starting the Server

After installation, you can start the example's domain by running startServer.bat from within the demoDomain directory. Again, this directory is in c:\bea\weblogic700\samples\platform\demoDomain . On the first startup, the server might take several minutes to start. Additionally, when entering a new portal or subsection of the example site, there can be delays while the server compiles JSP or instantiates EJBs. These delays happen only during the first time you access a subsection, however.

The server will be ready to use when you see messages that look similar to the following in the window in which you started the server:

 
 <Apr 30, 2003 10:45:49 AM MDT> <Notice> <WebLogicServer> <000365> <Server state changed to RUNNING> <Apr 30, 2003 10:45:49 AM MDT> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode> 


BEA WebLogic Platform 7
BEA WebLogic Platform 7
ISBN: 0789727129
EAN: 2147483647
Year: 2003
Pages: 360

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net