4 Replies Latest reply on Aug 12, 2010 8:57 AM by Jonathan Souza Santos

    JPA - Create dynamic connections.

    Jonathan Souza Santos Newbie

      Hi all,


      I'm with a problem that is:


      I need to create connetions dynamically. I'm using JPA - Hibernate, and need to somehow create a connection and execute some sql, and close the connection. All this is well-dynamically even.


      I would not like to use the configuration files in XML, because there is no need, for where I create this dynamic connection, I'll have all the information needed.


      Well, I thank everyone's help, and sorry for my English, but he is very weak.