Tagged Questions
3
votes
3answers
497 views
Auto-commit to SVN with Java
I run a lot of my projects for work using
java name.java
I was wondering if there was a way to add a hook to it where it would commit to SVN once that command is ran?
Thanks!
3
votes
1answer
390 views
Database Connection Settings Retrieved From a JNDI Connection Pool
I have Hosted a data source on the websphere server and i wanted make use of that datasource through my application clients.
After retrieving the database connection from the JNDI datasource i am ...
3
votes
1answer
181 views
How to commit batches of inserts in hibernate?
I have to save a large number of objects to the database using hibernate.
Instead of commiting all of them at once, I would like to commit as soon as n (BATCH_SIZE) objects are present in the session.
...
2
votes
1answer
323 views
UserTransaction issue in java
I have existing project which uses 2 database (DB2),and the records which are saved in the 2 databases are related.So the transactions need to be maintained.Eg whenever a new thing is to be added then ...
2
votes
2answers
2k views
Error when Committing in SVN using subclipse
"org.apache.subversion.javahl.ClientException: svn: E155007:
'C:\User\Bosung\Workspace\Chicken
Survival.settings\org.eclipse.jdt.core.prefs' is not a working copy"
Details is same.
I have ...
1
vote
2answers
1k views
Postgresql transaction handling with java
i have two blocks of queries with preparedStatement.
This is first :
String sql = "update cikan_malzeme set miktar = ? where proje_id = ? and malzeme_id = ?";
PreparedStatement prep = ...
1
vote
2answers
120 views
Are begin() and commit() required for JPA CriteriaQuery?
I have a simple question to ask regarding JPA's CriteriaQuery-based queries? I noticed in the Java EE examples (http://docs.oracle.com/javaee/6/tutorial/doc/giqsq.html) that
...
1
vote
1answer
628 views
How to do manual commit using spring's DefaultMessageListenerContainer?
We have an application that listens on a queue for messages and I know that the dmlc provides a sessionTransacted property that I assume would allow us to manually commit the message receive event, ...
1
vote
2answers
3k views
java servlet:response.sendRedirect() not giving illegal state exception if called after commit of response.why?
after commit of response as here redirect statement should give exception but it is not doing so if this redirect statemnet is in if block.but it does give exception in case it is out of if block.i ...
1
vote
1answer
659 views
Hibernate Save, Hibernate Rollback
I'm trying to make my DAO work this way:
public void incrementNumber(long id) throws Exception{
Session session = factory.openSession();
Number n = ...
0
votes
4answers
39 views
setAutocommit(true) further explanations
I have come across this oracle java tutorial. As a beginner in the topic I cannot grasp why it's needed to set con.setAutocommit(true); at the end of the transaction.
Here is the oracle explanation:
...
0
votes
2answers
46 views
Implements save (or commit) and rollback methods to a Map
I'm searching for a fast and convenient way to add save() and rollback() to a standard Map. Let's say i have an object 'table' of class Table which in turn has a private Map called 'rows'. What I'm ...
0
votes
2answers
211 views
JDBC: Is `con.rollback()` has effect only if`con.commit` not succeeded?
I am new to Java JDBC, and developed small database application. I am learning from
O'Reilly - Database Programming with JDBC and Java 2nd Edition.
Is con.rollback() has effect only ifcon.commit ...
0
votes
1answer
511 views
MySQL commit and rollback failed
I have a problem.
try {
jdbcConnect( ); //get mysql connect
conn.setAutoCommit( false );
pstmt = conn.prepareStatement (
"INSERT INTO member ( ...
0
votes
3answers
468 views
JDBC doesn't store update in sqlite database
I wrote an application that inserts some data in a SQlite database using JDBC and have the ability of Read/Update that data.
The problem is when i change data by application it updates data and while ...