8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Misc » Here

Comments for Set Managed Server Log Rotation Using WebLogic Scripting Tool (WLST)


Lammeki Diengdoh said...

Hi Tim,

My properties file is as follows

[Application1]
user=weblogic
password=weblogic1
adminURL=t3://IP1:PORT1

[Application2]
user=weblogic
password=weblogic12
adminURL=t3://IP2:PORT2

I can't form jython code to connect or work only on either of the application at one point of time.
Need your expertise in this regard.

--
Lam

Tim... said...

Hi.

I would have two separate properties files. They are independent. I see no reason to combine them.

Cheers

Tim...

Lammeki Diengdoh said...

Two properties files is getting my job done easily.
But the requirement is to have only one properties file. Because I'm required to have a standard/generic jython code that uses only one property file.

Tim... said...

Hi.

In that case I would probably use a YAML file for the properties and read the values into Python doing something like this.

https://stackabuse.com/reading-and-writing-yaml-to-a-file-in-python/

Cheers

Tim...

Anonymous said...

Hi Tim,

Just want to share. I workaround something like this.
Created a sh wrapper script.
Read the property, cut the desired section into a temporary file. Read the tmp file as the property file instead.
my execution:

./start_stop_wrapper.sh stop domain1
./start_stop_wrapper.sh stop domain2
./start_stop_wrapper.sh start domain1
./start_stop_wrapper.sh start domain2

--
Lam

DO NOT ask technical questions here! They will be deleted!

These comments should relate to the contents of a specific article. Constructive criticism is good. Advertising and offensive comments are bad and will be deleted!

If you post personal information (name, email address etc.) you are agreeing to them being stored and displayed. Feel free to remain anonymous.