i woulid like to create data sourec dynamically during build scripts of ant, i understand there are Connection pooling API's (at least they were in was 4) but i can't see any docs on the subject.
You can create datasource, connection pools along with detailed properties using Jython script. The script is invoked using wsadmin (.bat or .sh). So technically you can create a batch file, which gets called from ant. The batch file will call wsadmin with the name of the Jython script to create datasource etc.
That link describes what a component, which is running inside Websphere, would have to do to create its own private connection pool.
Presumably you already know how to configure a connection pool in Websphere, using the administration application. But you don't want to do that, you want to configure a connection pool at some other time. Using Ant, apparently. I don't understand what you are trying to do, or why, or what you expect to produce.
we are trying to build a script that given connection data a developer supplied would create it's own connection pool data. think of it as part of a installation script for an ear.
we are using spring beans to describe current connesions, the bean could either be a simple DbCp bean, or a our own pojo which shall describe the the connection propeties, in case it's our own pojo's the build script will generate jndi data sources (XA ones) in the server during installation, by the same name of the spring bean id. during run time this pojo will actually retrive the jndi data source from the server.