Tagged Questions
3
votes
0answers
56 views
Hibernate / MySQL connection timeouts — Trying to deal with thread-pooled executors not releasing Hibernate connections to C3P0 after exit
I have a Tomcat application that uses MySQL, and Hibernate for ORM. The nature of our application demands that we have to pull and aggregate a lot of analytics data from a NoSQL store for each request ...
3
votes
0answers
82 views
Trying to backup my database but got error
Hello All here i am trying to backup my database but unfortunately gives error like IOException, Null pointer Exception.. so can you give me hint where is my mistake.. even i have Mysqldump file in ...
2
votes
0answers
38 views
WiFi conflicting with local mysql connection (Java/Spring)
I'm using java/spring to connect to a local mysql database and run some integration tests. Sometimes I get Hibernate errors saying that a connection cannot be established. I've noticed this only ...
2
votes
0answers
88 views
How to send message MySQL to java(jsf project) ,when data insert or update?
I'm making a database in MySQL for tow java web Application. I need to send Messages MySQL to java web Application(tow java web Application),when data insert or update. But I'm new to MySQL and don't ...
2
votes
0answers
95 views
SmartGwt with hibernate for database connection
I am using eclipse indigo.I want to use hibernate with smartgwt smart gwt showcase
I have a grid so want data from database using hibernate datasource(ds) like smartgwt showcase EE. I don't ...
2
votes
0answers
109 views
Blob datatype in service.xml of liferay
I am working with liferay and want to store images in my MySQL database.
My service.xml goes like this:
<entity name="DLApp" local-service="true" remote-service="true">
<column ...
2
votes
0answers
224 views
Game App Client-Server: MySQL logs “too many connections”, Linux logs “100% CPU”
I am developing a game with client-server, client of this game can be from Flash Web, J2ME or Android Mobile. Every day there are 300-400 users play this game. I am faced with headache problem, and I ...
2
votes
0answers
180 views
Ramifications for Calling Statement.cancel() on To Forcefully Close Large ResultSet in Java/MySQL
I'm developing a website that will allow registered users to search through anywhere from 10-20 million records, and those records will be cross referenced against a number of in memory caches (in ...
1
vote
0answers
46 views
Why does hibernate execute redundant update statements when no values for those tables were changed?
I have the following piece of code:
public int makePayment(User forUser, Collection<Movie> cartItems,
Address deliverTo)
{
int returnCode = 0;
LOGGER.debug("Number of items in ...
1
vote
0answers
43 views
Complex order-by clause into .hbm hibernate files
I have a question about hibernate and order-by clause.
I have a mySQL database containing 3 tables: A, B and C. The Java code corresponding to those tables is hereafter.
Class A code:
package ...
1
vote
0answers
68 views
prepared statement bind variables 'neutral' parameters in query string
Having googled like crazy for hints I'm still stuck with my non working query using java and mysql. I'm trying to launch a query with prepared statement and bind variables. The query should give me ...
1
vote
0answers
65 views
How to Implement a Database Cache Framwork in Java
I wants to implement a cache framework to display the contents of a database table to users on every request. There is already Ehcache in Hibernate. But i wants to implement my own. So i need a ...
1
vote
0answers
43 views
How do i format this function using strings in a database?
This is the function in a View package for a basic website. I have a folder called productImages and a function "getString" that takes string params from my database. In this database I have a column: ...
1
vote
0answers
701 views
how to store image path in mySql from jsp file using liferay?
Hello I m using lifera portlets. I want to store image path in mySql using jspfile and using that imagepath i want to display image on another jsp file. how it is possible kindly explain me.
here i ...
1
vote
0answers
174 views
passing data from one frame and setting it in textfield in another frame retrieving corresponding data from database
I am working on a NetBeans project (Java Swings) using MySQL @ the back ground. Got struck in this particular scenario.
I am working with a JTable in one frame, say frame1 from where a row has to be ...