How to handle three JDBC connectionpooling in tomcat? [closed] - java

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
How to handle three database connection pool in tomcat 6 ? Three databases are(two oracle database and SQL server). Please advise what is the best to handle connections? Any any example code it will be more helpful to me.
I have seen examples of connectionpooling through JNDI. Is this best way to handle ?

http://sourceforge.net/projects/c3p0/
3CPO is another popular db connection pool. They have a lot of example code on their site.
http://www.mchange.com/projects/c3p0/

Related

It is safe to keep jdbc connection open for a long [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I'm using Java database connectivity for my projects.
Everything is good but there is a problem for each statement I make a new connection and execute a statement.
Obviously this is very bad for lots of requests like 5000 per minute.
Is it safe to keep the Java database connectivity connection for a long like keep it for 1 minute.
Speaking about relational databases: Yes, that is good.
Opening a database connection is a fairly expensive operation.
That's why you use a connection pool in such cases.

Database for a small java application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am relatively new to programming and in need of help.
I am trying to design/develop small desktop app for a family hotel.
Do I need a database to write/read from or there is another solution to this problem.
There aren't massive amounts of information to be stored ,because of the nature of the application.
What would be a good way to approach the problem ?
Any help will be appreciated!
Sqlite is the go to solution for simple usage
You can read/write your data to files. The files can be simple text, JSON or XML. There are many Java libraries that can interact with files on disc.
Depending on your requirements you can also have an in-memory database - for example HSQL or SQLite

Which java database should I use [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am new to databases. Now, I want to make 4 computers share the same database through LAN. So, which database would you recommend me to learn and how do you set up the location of the database be the specified by me?
if you are looking for free then go for mysql.You have not mentioned which operating system you use.Well mysql supportsmost of the operating systems.See this link for more info on databases

Implementation of sockets in a web application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
For some time, I have wanted to do my development more efficiently and faster. I wonder what is the best technology for implementing sockets in a web application. Normally I use PHP and JSON for HTTP requests from the client, and I build my clients in GWT and mobile clients in Android and iOS.
Have you tried nodeJS? its a bit different to what you've been using before but it works well.
See this tutorial - http://net.tutsplus.com/tutorials/javascript-ajax/real-time-chat-with-nodejs-socket-io-and-expressjs/
and this demo - http://demo.tutorialzine.com/2012/08/nodejs-drawing-game/

Should I go for dedicated server to host an EJB application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm building an application that invokes a (JAVA)web service implemented in JBOSS.
I plan to host the web service as soon as I finish building it.
My question is: Should I go for a dedicated server to host it? Or go for a VPS?
I read about this two hosting possibilities but did not find a clear answer for my case.
Thank you.
I am hosting a web service on a dedicated server with Rackspace. It works well, and I can always add their hybrid solution in the future if I want.
I went with their dedicated server, because I have full control. Their support team is awesome and their machines are pretty good.

Categories

Resources