Create a JNDI Provider Resource in servicebus console using WLST

354 views Asked by At

I need to create a JNDI provider resource in the servicebus console using WLST as part of my Chef Automation. I knew the process of manual creation but didn't have the WLST script. I didn't find the necessary information on any blogs or official documents as well. Can anyone please help me with this?

2

There are 2 answers

2
Emmanuel Collin On

You can start reading these documentations : Oracle WebLogic Server 12c: Using the WebLogic Scripting Tool, WebLogic Scripting Tool and WLST Command Reference

Please note that the WLS admin console has a record mode. When you create or update your configuration, the console records all your actions in a wlst file. Very usefull to learn WLST.

0
Piotr Galas On

Maybe this can be a solution for you. Here is example for 11g. 12c is very similar (sorry, I noticed it is about 12c after I wrote whole instruction) and whole idea is the same.

Menu visible after login, with all menu item mentioned below - 11g: enter image description here

Here is 12c menu: enter image description here

I. Create new resource

  1. Login to OSB Console, by default http://localhost:7001/sbconsole
  2. On the left side click on System Administration item
  3. Then find JNDI Providers, under Global Resources
  4. Start new OSB Console session, click Create at the top left corner
  5. Click Add
  6. Provide all the required details
  7. Click Save
  8. Activate session - click on green Activate button, in the left top corner

II. Export created resource

  1. In the left find and click on System Administration
  2. Find and click Export Resources
  3. At the top click on Export Resources
  4. Click on + button next to first listed item called System
  5. Tick the checkboxes next to JNDI Providers which are part of your interest
  6. At the bottom click Export
  7. Select if you want to protect Sensitive Data (and provide pass-phrase) or not
  8. Click Finish Export

Now you have a JAR file which you can play with - extract files, update content of XML files which contain your JNDI Provider definition, add the new ones, re-pack and re-deploy using WLST.

Below is description how to deploy OSB JAR using WLST. There is a chance it requires small changes to handle JNDI Providers deployment. https://redstack.wordpress.com/2011/08/25/getting-started-with-continuous-integration-for-osb/