Weblogic

From Kb

Jump to: navigation, search

Contact Article Author | Blog of Article Author | FirstPartners.net Home | LinkedIn profile of Author

Contents

See Also

BEA Weblogic Getting Started

  • Weblogic Main Console (open in IE) : http://127.0.0.1:7001/console
  • Create Domain using wizard (on windows start menu). By default this goes into C:\bea\user_projects\domains\mydomain\server1
  • Create any resources (e.g. Connection Pools and JDBC connections) required by the application.
  • Hot Deploy Application using method below.

BEA Weblogic Hotdeploy

Add the following to your startWeblogic.cmd file:

@rem start the Weblogic server in Development (non production) mode.
set STARTMODE=FALSE

After you restart, any ear or war files placed in (weblogic_home)]/mydomain/application will be hot deployed (i.e. no need to remove / add via the web console) – much quicker during development. A simple batch / cmd script to do the copy .

Enabling Weblogic Testing of Database Connections

  1. Go to Weblogic Console (typically http://localhost:7001/console)
  2. Open myDomain .. Services .. JDBC .. Connection Pools .. the pool you wish to setup for test
  3. Click on Configuration , Connections Tab , then the Advanced Options (bottom of page).
  4. Make sure Test Created Connections and Test Reserved Connections have a tick beside them.
  5. Enter the following beside Test Table Name
SQL SELECT 1 FROM DUAL
  1. (Optional) - Enable Connection Leak Profiling
  2. Now click on 'Testing' Tab at top of the page, then Test Pool to see the result.
Personal tools