What did you mean?
Create and destroy connections pools from a Java application?
In that case you might use the management API introduced with AS7 to create it
Thanks for your answer. You are right, I need to create and destroy connection pools from Java application and also we need to assign maximum connections, minimum connections, idle timeout, etc. so it would be great if you share some examples for using management API.