Hi ,
I ran into a little trouble when trying to use OpenSessionInViewFilter on top of a requst / response cycle that is responsible for reading data from one database and writing it to another...
Type: Posts; User: cosmin; Keyword(s):
Hi ,
I ran into a little trouble when trying to use OpenSessionInViewFilter on top of a requst / response cycle that is responsible for reading data from one database and writing it to another...
understood , thanks a lot Costin
I am extending the HibernateDaoSupport and this is managing the sessions for me . At this point thigs are getting a bit confusing , how would I manually manage the session , should I give up the...
I have a spring / hibernate web aplication , and so far I've been successfully using OpenSessionInViewFilter , to keep the session open throughout the request / response process .
The problem is...
Kees , so you can't use IoC with Struts ?
use spring to inject your daos / service beans into your view pages as needed .
if you are using struts i am very unfamiliar with that , but i do know spring gets along well with that
Hello ,
Today I managed to get the OpenSessionInViewFilter working , to allow me to use lazy initialization of my hibernate objects from my tapestry pages .
Later in the day I found out that...
Cool ...
allthough i'm all about hbm.xml's now , I think that's definently the way to go for my next proj .
oh wait come to think of it , i did see Hibernate Annotations on the hibernate page , maybe they've just provided their own annotations for this , makes sense ...
question still stands as i'm...
thanks guys , open filter worked just great , it looks like i kept getting an error due to some bad code in my presentation layer ( this was a test app and i was beeing a bit lazy ) :
...
how do you use anotations for this , have you written your own code to generate the hbm.xml file ?
I've allwais used hbm.xml and generated the .java files .
I can see benefits of generating the hbm.xml files thogh ...
Allthough it is probably bad practice , one can run , if there's ever...
yea there are some ways arround this using my current scenario , but i was asking , thinking about other things i might want to do in the future
are you saying postgresql is the wrong database to...
where do you have that code . I'm affraid i'm using Tapestry which uses ognl , which is something similar to the JSP EL language . most of my time i get objects like this and theese would cause...
i'm using postgres 7.4 which version supports this ?
and what you are saying is that , there is no way arround not using JTA for this ?
I am trying to use the OpenSessionInViewFilter , but I am not entirely confortable with the examples i've found online and I have not managed to get it to work yet .
I am using Tapestry for the...
I was wondering what the Spring way is for dooing this .
I am dooing an import / data translation tool with spring , and I have to get data from one database , run some logic on it , and save it...
thanks for your reply .
I'd be willing to spend a few thousands per deployment in this case , so free licenses are not first on my list .
I've posted this after some majour googling which was...
Sorry this is by far the best place to ask such a question IMO , esp since Spring concntrates on dooing J2ee in a simple server container .
In the ejb world we have Websphere and BEA as "serious"...
I had problems with 7.3 . Don't remember the driver version , as i simply took the latest for my DB . You seem up to date so I guess no luck with findinig the problem there
oh sorry , i got ahead of myself , and thought you were using hibernate , must have been too late at night :rolleyes:
well hibernate was chapter 12 , so if you want to step backwards to jdbc...
Hi
Hibernate becomes a bit different when used with spring . And A LOT easyer in the end .
This would be a good place to start . You can also find tons of examples in most of the posts in...
It looks like i'm facing a rather common problem here .
I am using latest spring , hibernate 3 and tap 4 . I have the default true setting for lazy loading in hibernate . I would like to take...
What dbms are you using ? Have you updated your jdbc driver when moving to hibernate3 ? I've had a similar problem with postgresql , and i needed the newest driver