I've tried this with the most recent from the 2.0 and 2.5 branches.
I'm using a ProducerCallback to setup a synchronous JMS request but anytime I try sent send a request to the queue I receive a...
Type: Posts; User: Rilux; Keyword(s):
I've tried this with the most recent from the 2.0 and 2.5 branches.
I'm using a ProducerCallback to setup a synchronous JMS request but anytime I try sent send a request to the queue I receive a...
I tried moving the Hibernate jars to one of the nodes in a two-node cluster and so far have not seen the error message in the one I changed, and several times in the one that hasn't. I will change...
I can confirm there is only 1 instance of the jar present. It in is usually in WEB-INF/lib of the application but I have also tried it in $RESIN/ext-webapp with the same result. I will try $RESIN/lib...
I'm seeing this error in my application log files a lot.
[2008-01-14 10:06:46.626] org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for...
There have been a few posts on the subject before but I've not really gained much headway in the problem.
org.springframework.transaction.IllegalTransactionStateException: Pre-bound JDBC...
I'm using Resin. I seem to recall doing something similar a while ago in Tomcat and not having the classloader issue. I hadn't realised this had been discussed already.
This makes sense. Thanks...
Yes, I was a little vague. Apologies.
I'm expecting three files to be processed and none are. Turning up the debug didn't reveal anything. The files are in my application jar which resides in...
In my applicationContext.xml I include the line
<import resource="classpath*:META-INF/services/*.ctx.xml" /> for use as an implementation of the lightweight plug-in arcitecture described in this...
The session factory I use depends on a parameter passed into a HTTP request. In order to use the OpenSessionInViewFilter I rewrote the Spring class to obtain use the session factory associated with...
You might want to just increase the permgen space available to the JVM.
Yeah, that's how I did it to try it out. I'm warming to the idea of fewer configs to manage and get wrong.
Fair enough. I wasn't getting very far in getting JTA set up anyway.
Well, it was more complicated than that. It is a large application that uses a great many third-party libraries and has a memory-intensive sub-system involving many huge and complicated XSLT...
Yes, there are a few good reasons. Memory usage and maintainance being two of them. The app has evolved a lot over the last 6 months and continues to do so. Maintaining $BIGNUM instances of the...
Hmm, reading the documentation a little more shows that this isn't the way to handle transactions when accessing multiple databases. Any pointers on the right way to go about that?
Can I still do this without having DAOs configured in applicationContext.xml? I have no DAOs configured because I have multiple session factories and one DAO could use any of them.
I have an abstract base DAO that uses HibernateTemplates for data access. I'm a little confused as to where I should be configuring transaction management. Should I be configuring it with my...
As would I. I'm new to Spring, but I'm VERY protective over how I perceive myself as a coder. Thanks for the vote of confidence.
Use a better driver - specifically jTDS.
Sure thing. Whether it's any good is still open to debate ;)
So I have my session factories configured in separate XML files and loaded by the bean factory. Here is one of them (sanitised):
...
Yup, this was a requirement. Stupid, I know, but the customers insist (apparently).
Using a HibernateTemplate-per-customer works. I just hope it scales well. I need to make sure that...
No. Not 500 session factories for 500 people logged in. That's not what I meant :)
Currently there are 25 databases (1 per customer) and X number of people log into each.
I read through the...
I've been reading through the threads concerning multiple session factories but can't really find anything particularly concrete to what I'm trying to do.
I currently have multiple Hibernate...