I have a java program deployed in Weblogic server which is executed using Quartz scheduler. The program executes in every 10 seconds. In the java code I have created two threads using ExcutorService and I have called service.shutdown() at the end. But every time the quartz scheduler runs the program it creates a new pool of threads by incrementing the pool id like "pool-109-thread-1" and "pool-109-thread-2" then pool-110-thread-1" and "pool-110-thread-2". So this pool count is increasing. Is it ok or do I need to change something in my code ? Sample Code below:`
public void post(){
ExecutorService service = Executors.newFixedThreadPool(2);
for (String filePath : strArray) {
service.submit(new PostImages(postURL,filePath));
}
service.shutDown();
}
`