0 Replies Latest reply: Nov 22, 2013 10:06 AM by d5b9d952-11b5-457f-9000-7c54cdb1fc7c RSS

    Issue connecting multiple servers in parallel using wlst

    d5b9d952-11b5-457f-9000-7c54cdb1fc7c

      Hi,

       

         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?