In the following section, you will be performing additional configuration that is optional but will greatly improve performance and usability in the context of the development work you are about to start.
Setting memory limits
Review the memory settings. This value is dependent on your machine resources and may need to be adjusted for your machine. Allocating less memory for startup will give you better performance on a machine with less memory available. This value is appropriate for a 3 GB memory machine or less.
- Edit the SOA domain environment file found here (make sure you have the SOA Domain environment file):
- Set memory values:
set DEFAULT_MEM_ARGS=-Xms512m -Xmx512m
Starting and stopping
Now it’s time to start your servers. You can start them using the provided script or you can start them separately. Instructions for both methods are included.
First set boot.properties and then start the servers.
- Before you start, set the boot properties so you are not prompted to log in during server startup. Copy C:pobinboot.properties to C:OracleMiddlewarehome_11gR1user_projectsdomainsdomain1.
- Edit the copied file to reflect the password for your configuration (entered during domain configuration). The first time the server is started this file is encrypted and copied to the server locations.
You can start the servers one at a time or you can use the start_all script to start the admin and SOA managed servers (not BAM). To start them one at a time instead, skip to step 6.
- Copy the startup script to the Oracle directory:
- Edit the copied file to reflect your environment.
- Open a command window and start your servers as shown. You must specify how many seconds to wait after starting the admin server before starting the managed server. The admin server must be in the RUNNING state before the managed server starts (see the following screenshot). Try 180 seconds and adjust as necessary. You will need more time the first time you start after a machine reboot than for subsequent restarts:
Your servers are now starting automatically so you can skip steps 6-10. Jump to step 12 to continue.
To start the servers manually, continue with the following steps.
- Open three command windows, one for the WebLogic admin server, one for the SOA managed server, and one for the BAM managed server (only start BAM when you need it for a BAM lab).
- Start the Admin Server first:
- Wait for the Admin Server to finish starting up. It takes a few minutes—watch for status RUNNING in the log console window:
- Start the SOA managed server in the second command window. This start script is in the bin directory. You can also run it directly from the bin directory:
- When prompted, enter the username weblogic and password welcome1. If you did step 1 and set boot.properties, you will not be prompted. The server is started when you see the message, INFO: FabricProviderServlet.stateChanged SOA Platform is running and accepting requests.
- Start the BAM managed server in the third command window—do this only when needed for the BAM lab:
- When prompted, enter the user name weblogic and password welcome1. If you did step 1 and set boot.properties, you will not be prompted. Watch for the RUNNING status.
Log in with weblogic/welcome1 for all consoles:
- Weblogic console: http://localhost:7001/console
- Enterprise Manager console: http://localhost:7001/em
- SOA worklist: http://localhost:8001/integration/worklistapp
- B2B console: http://localhost:8001/b2b
- BAM (must use IE browser): http://localhost:9001/OracleBAM
Whenever you need to stop the servers complete the following:
- Stop the managed servers first by entering Ctrl+C in the command window. Wait until stopped.
- Stop the admin server by entering Ctrl+C in the command window.
WebLogic Server console settings
There are two suggested changes to make in the WebLogic Server console.
First, you will be viewing application deployments often using the WebLogic server console. This is a lot more convenient if you change the settings not to show libraries as this makes the list a lot shorter and you can find what you need more quickly.
- Start the WebLogic Admin Server (WLS) if it is not already running.
- Log in to the WLS console http://localhost:7001/console.
- Click on Deployments in the left navigation bar.
- Click on Customize this table at the top of the Deployments table.
- Change the number of rows per page to 100 (there are only about 30).
- Select the checkbox to exclude libraries and click on Apply.
Second, when the server is started, internal applications like the WLS console are not deployed completely and you see a slight delay when you first access the console. You saw this delay just now when you first accessed the console URL. You can change this behavior to deploy internal applications at startup instead and then you don’t get the delay when you access the console. This is convenient for demos (if you want to show the console) and also if you tend to use the console each time you start up the server.
- Click on domain1 in the left navigation bar in the WLS console.
- Click on Configuration | General tab.
- Deselect Enable on-demand deployment of internal applications checkbox.
- Click on the Save button.
EM settings for development
The Enterprise Manager can provide different levels of information about composite runtime instances based on a property setting. During development, it is helpful to have a higher setting. These settings are not used on production machines except when specifically needed for debugging purposes as there is a performance cost.
- Start your servers if they are not already running.
- Log in to the EM console at http://localhost:7001/em.
- Right-click on the soa-infra (soa_server1) in the left navigation bar to open the SOA menu and select SOA Administration | Common Properties.
- Select Audit Level: Development and select the checkbox for Capture Composite Instance State.
- Click on Apply and click on Yes.
If you need to uninstall JDeveloper and servers
If you need to uninstall everything, complete the following:
- First save anything from C:OracleMiddlewarejdev_11gR1jdevelopermywork that you want to keep as this directory will be deleted.
- Run Uninstall from the program menu to completion for both JDeveloper and WLS.
- Delete C:OracleMiddlewarejdev_11gR1 and C:OracleMiddlewarehome_11gR1. If you get an error message about not being able to delete because a name or path is too long, change the names of the composite directories within home_ 11gR1user_projectsdomainsdomain1deployed-composites to abcd and try deleting again.
- Delete program groups from C:Documents and SettingsAll UsersStart MenuPrograms:
- Oracle Fusion Middleware 18.104.22.168.0
- Oracle SOA 11g – Home1
- Oracle WebLogic
- Complete the Dropping existing schema section earlier in this article to clean up the database.