Create datasource in weblogic by python script

Hi All,

If you want to create datasources in weblogic manually or through program. You can write a python script and invoke that python script with maven to use this in devops. This is quite common requirment. If you want to setup new environment using maven, this will be really helpful.

Below is follow script used for that


connect(UserName, Password, adminURL)



set('JNDINames',jarray.array([String('jdbc/techartifactDS')], String))

cmo.setUrl('jdbc:oracle:thin:@' + databasehost + ':1521:xe')

cmo.setTestTableName('SQL SELECT 1 FROM DUAL\r\n\r\n')




set('Targets',jarray.array([ObjectName('com.bea:Name=WCP_PORTAL,Type=Cluster')], ObjectName))


Happy coding with python with Vinay

Webcenter portal 12c released. An in-depth view of Webcenter portal 12c.

Oracle releases first FMW 12c platform which also includes ORACLE WEBCENTER 12.2.1. Oracle webcenter portal changed a lot in this release. Some of the interesting features includes :

– New User Experience


– Responsive UI
Two OOTB Responsive Page Templates – Mosaic and Unicorn

– Rigorous stress and performance testing allowed to achieve an average response time of < 0.5 second
-Portal composer view is completely changed. Options of draft is available.

– Multiple OOTB page style.

– Component wiring – Wiring between consumer and producer taskflow or pass value as parameter to component or Pass values to page components using values in page URLs. This is one of most likeable features in this version.

– Rapid application integration :


OOTB Integration – integration between WCP and Oracle products is available OOTB (Oracle BPM, OBIEE or IDM – now, Oracle Mobile Cloud Service (MCS) or Catalog Service – in 12c.

– Wizard-driven tools for data integration via support for REST and SQL data sources, earlier we only had sql data source. Now we can perform crud operations through REST.


– OOTB and custom visualization templates
– View/Update operations support
– Visualization can participate in components wiring
– Catalog of REST APIs from OSB

– Content manager in Webcenter Portal

Previous document explorer taskflow is not present in 12c. We have new content manager. After this you don’t need separate UI for webcenter content.

– ECM in the Portal – WC Content model of managing content, DAM
– Replacement to 11g Document Library taskflows
– Access to workflows, enterprise libraries, metadata and more
– WC Content tools – Mobile Apps, DIS, WebDAV
– Pin view to a particular configuration
– Portal events and parameters
– Works only with Framework folders
– Browse, View and Find documents similar to WebCenter Content UI
– You can leverage IRM, DAM inside portal directly.
– Add metadata for each document.
– easy merging of video using embed code for videos.
– Better development of content presenter directly in jdeveloper.



shared asset
– Portal life cycle

-Create portal server connection to production systems and Choose a server connection and deploy a portal to it.
Deployment happens on the UI with 4 clicks. Changes to a portal is propagated in a similar fashion. Shared Assets as well as (ADF) shared Libraries are transferred to the target server. Really cool.
– All the assets associated with a portal—including global assets—are deployed or the changes are propagated
– Shared libraries—including the linked shared libraries—are optionally deployed along with a portal
– Changes since the last deployment is clearly displayed prior to propagation
– Portal managers can deploy portals in a self-service manner.
– All portal deployments are audited. That means you can verify all the deployments.
– The details can be viewed after a deployment completes.


– Round trip Asset development for portal.
– Same as before. Can create following assets
Page Styles
Page Templates
Visualization Templates(New)
Content Presenter Templates

Summary –

New technologies and standards support:
ADF 12c stack uptake (JSF2 / Jersey 2 / Oracle REST standard / Alta look & feel)
Produce and Consume REST APIs (ADF REST DC with JSON Descriptors)
Responsive UI OOTB (Twitter Bootstrap, jQuery)
Native HTML5 tag support (camera, geospatial, phone)

–REST API for portal lifecycle & deployment to a remote Server (e.g. T2P)

–Easily configure role based security (simplification of roles)

Overall its quite a new and changed version in comparison with 11g. With addition of bootstap and Rest support, it make the webcenter portal really powerful. You can download portal here.
Webcenter portal release notes

Happy Learning Webcenter Portal 12c with Vinay. Stay tuned for more posts on webcenter portal 12c.

Running webcenter related wlst command from wlst.cmd or

Requirement- If you execute webcenter related admin commands (like export or importWebCenterApplication) in windows environment by using this -JDev\oracle_common\common\bin\wlst.cmd

and you run into name not found error.

That means its not able to find this command, because it doesn’t have the right jars.

Solution –
Modify the setwlstenv.cmd file and add %COMMON_COMPONENTS_HOME%/oracle_common/common/wlst/lib/webcenter-admin-commands.jar


After adding this simply run webcenter related commands.

Happy wlst with vinay in techartifact.