XML : Creating a dynamic datsource with xml files

Is it possible to create a dynamic datasource in Java JEE web application using multiple XML files full of data?.

And how will i accomplish this?

More Info : I have all files stored in db using JPA. Getting these are easy. I want to take example all files in the last month and convert it to a datasource the do queries etc on that datasource. Using Payara as a container .

I Dont want to loop over the files input stream nor save the data of xml . Xml files are +- 200MB of size .

I Saw this post Dynamic Data Site with XML file . But its not helping

Thanks in advance.

No comments:

Post a Comment