


When you run your application, a log file ( spy.log) is generated in bea-home/wlportal4.0. Restart WebLogic Portal by running startPortal.bat.R ight-click on the your-domain-> Servers-> your-server node and select Stop this Server from the pop-up menu. Using the Administration Console, shut down WebLogic Portal.
Log file spy driver#
Set the Driver parameter to .P6SpyDriver.Using the Administration Console, navigate to the your-domain-> Security -> Realms node.If using RDBMS Security Realm, configure P6Spy to monitor your realms (in this example, commercePool, dataSyncPool, and wlcsRealm) by completing the following steps:.Navigate to the your-domain (where your-domain is the domain name specified during the BEA WebLogic install) -> Services -> JDBC -> Connection Pools node and set the Driver Classname for each Connection Pool to .P6SpyDriver.Start the Administration Console tool by navigating to your-host:7501/console, where your-host is the machine on which BEA WebLogic is installed.Start WebLogic Portal by running startPortal.bat.Either modify config.xml (which resides in bea-home/wlportal4.0/config/portalDomain) directly or complete the following steps: Modify WebLogic Portal to use the P6Spy driver.Do not include any trailing spaces after the new line. The path to startPortal.bat is bea-home/wlportal4.0/config/portalDomain. Add %P13N_DIR%/config/portalDomain to the classpath in the startPortal.bat file.Modify the realdriver line in the spy.properties file to reflect your wrapped database driver. An example of a modified realdriver line follows :.Move spy.properties to bea-home /wlportal4.0/config/portalDomain or to the application's domain directory.set-environment.bat resides in bea-home/wlportal4.0/bin/win32. Add %P13N_DIR%/lib/ext/p6spy.jar to EXT_CLASSPATH in the set-environment.bat file.Move p6spy.jar to bea-home/wlportal4.0/lib/ext, where bea-home is the directory in which BEA WebLogic is installed. An example follows:ĭscription "Standard jdbc driver for Oracle"ĭatasource.url .P6SpyDriver For example, the Oracle1.properties file delivered with JOnAS should be updated by replacing with .P6SpyDriver. Modify the datasource.properties file (where datasource is the name of the data source) by replacing the database driver classname with the P6Psy database driver classname in the datasource.classname property.It is recommended that you move it to the directory where your jndi.properties file resides. Move spy.properties to a directory which is part of your classpath.For example, if p6spy.jar is in the /opt/Provider6 directory, add /opt/Provider6/p6psy.jar to the XTRA_CLASSPATH environment variable or directly edit the config_env script. Put the p6spy.jar file in the classpath of the JOnAS EJB server.Extract the p6spy-install.jar file. The p6spy-install.jar file contains p6spy.jar and spy.properties.
Log file spy install#
To install P6Spy on JOnAS EJB, complete the following steps: The following instructions were tested with JOnAS 2.3.x. (Contributed by François Exertier, JOnAS Opensource EJB Server team)
