Configuring Datasource on Weblogic Server

Precondition: We will create a Data Source using PostgresSQL. In order to test it you will have to install Postgres  and keep and instance running on port-5460. We also need to keep the Postgres-driver in the domain/lib folder. Steps to Create a Data Source: Step 1: Expand Services link Domain

Continue reading »

WLST Script to rotate server log file

You can use the script below to rotate server log files using WLST connect('weblogic','weblogic123','t3://localhost:7001') serverRuntime() cd('LogRuntime/AdminServer') cmo.forceLogRotation() print 'Log file rotated'

Continue reading »

WLST Script to start and stop Datasource

  Script to start Datasource connect('weblogic','weblogic123','t3://localhost:7001') domainRuntime() cd('ServerRuntimes/AdminServer/JDBCServiceRuntime/AdminServer/JDBCDataSourceRuntimeMBeans/PegaRULES') objArray = jarray.array([], java.lang.Object) strArray = jarray.array([], java.lang.String) invoke('start', objArray, strArray) exit() Script to stop Datasource connect('weblogic','weblogic123','t3://localhost:7001') domainRuntime() cd('ServerRuntimes/AdminServer/JDBCServiceRuntime/AdminServer/JDBCDataSourceRuntimeMBeans/PegaRULES') objArray = jarray.array([], java.lang.Object) strArray = jarray.array([], java.lang.String) invoke('shutdown', objArray, strArray) exit()

Continue reading »

steps to create datasource in Jboss eap

You need to create oracle\jdbc\main folder under modules and keep the module.xml and ojdbc6.jar there   module.xml   <?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="oracle.jdbc"> <resources> <resource-root path="ojdbc6.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module> In standlone.xml / domain.xml you need to add the datasource and driver entry <datasource jndi-name="java:jboss/datasources/OracleDS"

Continue reading »

WebLogic Server Distributed Setup

Continue reading »

WebLogic Server Cluster

Continue reading »

WebLogic Server Nodemanager

Continue reading »

WebLogic Server Setup

Continue reading »