I have requirement to write a jython script to connect multiple weblogic servers and generate some reports.
I am importing wlstModule(import wlstModule as wl) in the scirpts.
I would need multiple users to be able to run the script from a webpage in parallel.The website is based on java.
1. My initial thoughts were to create a new thread for each user request. But since the global variable cmo is shared between the jython threads,i believe it wouldn't work.
2. My second option is to create a new process for each user.This way each process would have its own independent global namespace.
Even though this should work,it dosen't look the cleanest way to do.
Does someone have any better idea?