Hi Lars, I have implemented an object-relationnal mapping tool called OJB (it's open source) to connect to my databases. It works very well. You don't need special code or new methods within javabean. You don't need queries and you don't need to manage connections. You simply instantiate a new database object within the javabean and after that you work with your classes that represent your database.
I could send you an example if you are interested. Regards Sylvain -----Message d'origine----- De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]] Date: jeudi, 9. janvier 2003 02:47 À: Cocoon-Users (E-Mail) Objet: XMLform JavaBean and Database Connection Pool Hello, hello I have a question related to xmlform and database connections. I would like to know which would be the best way to implement database connections and querys. So far I tried to put all database connection into methods within the javabean. therefore I didn't used the cocoon database connection pool. I run into several problems as I tried this. I also tried to get a connection from the cocoon connection pool in the action class of the xmlform. after I got this I passed the connection to the bean. this seemes to work, but causes sometimes system hangs and its in my opinion not a good solution. My question is now what would be a good way to feed the databean with data from a database? Should be all database actions take place in the action class? ciao Lars --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>