Posts

Showing posts from 2021

Search for a specific class in a folder structure recursively

For those of you that have migrated java application from Fusion Middleware 11g to 12c, you will know that a lot has changed in the background. In my case, I was migrating a workspace application that heavily relied on Fusion Middleware/WebLogic libraries/classes. Some classes had changed packages or jars so changing the Maven dependency version to the current (12.2.1.3.0 in my case) was not enough. As you know, ORACLE_HOME contains hundreds if not thousand of jars, so I wrote a simple windows command to iterate in ORACLE_HOME folders, open all the jars that it encountered and search for the class name that you pass it. for /R %G in (*.jar) do @jar -tvf "%G" | find " WSSecurityContext " > NUL && echo %G

How to create a WebLogic DataSource using WLST and running it through Apache Maven

In this article, I will show you how to create a WebLogic DataSource. You will need two files to do this. In my case, I named them: createDatasource.properties createDatasource.py The properties file contains weblogic domain related information, while the python/wslt file contains the necessary WLST commands the create the datasource. Finally, to execute the script through Maven run: mvn com.oracle.weblogic:weblogic-maven-plugin:wlst-client -DfileName=createDatasource.py Alternatively, you can run the script through wlst.sh in your domain home: $ORACLE_HOME/oracle_common/common/bin/wlst.sh createDatasource.py The full code is committed here .