ZagorTenay
Programmer
I am working on an application that uses sql data (tomcat and MS sql server). There will be about 15-20 simultaneous clients. I would like to know if my logic makes any sense. I am very new to java, any kind of help would be great..
To access the sql server, I am going to write a bean that opens a connection, gets/deletes/inserts/updates the data and if there is any data to be returned, puts the data into an array(??) and returns the array, then closes the connection.
My question is, what is the best way to pass the data from the bean to the servlet? The queries are all very different... (How to pass a 10 column data into a servlet) The same goes for making an update query - pass the changed data back to the bean and execute..
Is it at all possible to work with a resultset?
Thanks a lot..
burhan
To access the sql server, I am going to write a bean that opens a connection, gets/deletes/inserts/updates the data and if there is any data to be returned, puts the data into an array(??) and returns the array, then closes the connection.
My question is, what is the best way to pass the data from the bean to the servlet? The queries are all very different... (How to pass a 10 column data into a servlet) The same goes for making an update query - pass the changed data back to the bean and execute..
Is it at all possible to work with a resultset?
Thanks a lot..
burhan