-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Handling Different Transactions
PostPosted: Thu Nov 09, 2006 8:29 am 
Newbie

Joined: Thu Nov 09, 2006 8:17 am
Posts: 1
Hi,

I am handling two applications. one is a web application written in
Hibernate and the other was a stand alone application.

The stand alone application is being called by the web application by passing some parameters to it.

These parameters that are inserted into a table that both the applications are using.

Even after commiting the transaction from the stand alone application, data was not being fetched from the web application from the table into which the stand alone application has inserted/updated.

Both applications establish theit own sessions to the database. But after commiting the transactions the data has to be visible to the web application using just a select statement, but which is not happening at this point of time.

The database wsa MS SQL Sever.

I am not sure whether any properties are to be set in the hibernate environment to make this work.

Can any one help me in this regard

Thanks in Advance.
- Raju


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 08, 2006 5:27 am 
Newbie

Joined: Fri Dec 08, 2006 5:18 am
Posts: 2
Hi Raju,
Did you - or anyone - managed to solve this problem?

I have two applications, both using Hibernate. One is a desktop application, the other one is a (Tomcat) web application. When a record is inserted by the web application, the session is closed and the tansaction is commited. Though, I still cannot fetch the record into my web application. By fetching, I use the SessionFactory to open a session. When I restart my desktop application, the record is fetched properly.

I use Hibernate 3.1 and Tomcat 5.5.20

Thanks in advance,

Willem


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 08, 2006 8:54 am 
Newbie

Joined: Fri Dec 08, 2006 5:18 am
Posts: 2
For your information, I solved this problem by setting the hibernate.connection.pool_size property to 0. You can use c3p0 instead to make it work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.