Hi all,
I have an application which uses @Cacheable annotations through AspectJ caching.
I.e.
<cache:annotation-driven mode="aspectj"/>
I also have some AspectJ AOP running (authorization...
Type: Posts; User: silverjam; Keyword(s):
Hi all,
I have an application which uses @Cacheable annotations through AspectJ caching.
I.e.
<cache:annotation-driven mode="aspectj"/>
I also have some AspectJ AOP running (authorization...
Hi all,
Dunno where to file a bugreport, but it seems that I found a bug somewhere inside tcServer.
Please look here: http://forum.springsource.org/showthread.php?t=99778
Basically, the bug...
It turned out that I was missing the ant-style syntax of the namespaces in aop.xml.
However, tcServer behaves incorrectly then. Guess I'll file a bug on this...
Cheers,
~Morten :-)
I am pretty sure of this, since I get this in the log:
INFO: Using a reflective load-time weaver for class loader:...
Hi all,
I have been banging my head on a very heavy wall for the last couple of days.
I am developing an application, which uses AspectJ Load-Time-Weaving (LTW). It works just fine on my...
Hi all,
I have developed several JSF web applications which uses the OpenSessionInViewFilter in order to keep the Hibernate session open throughout each HTTP request.
However, when I develop a...
Security layer should be Java, which probably brings me down to Tomcat.
If I use a ServletFilter I still need to do some proxying to the other server if I allow the user past my filter.
Any...
Hi all,
We have an ancient web server running some archaic web-based programs with no built-in security layer. (All in PL/SQL.)
I want to set up some HTTP proxy in front of this ancient server....
Hi all,
After working with Spring for a while now, I've been banging my head up against almost any wall in our house. (Old brick house from the 1930's... -- Ouch!!!)
The Spring framework is...
Hi all,
I'm developing a Spring 3.0 application that should expose itself through a series of REST URLs.
My servlet is annotated with the @Controller annotation.
However I get the dreaded...
Okay thanks.
I only have this problem once in my application, so I just did a join fetch on the entities (it's an isolated case).
I talked with one of the other guys in our development team,...
I also read about Spring Web Flow, which seems to address this issue in version 2.0. However, I feel it's just another extra technology with loads of additional configuration files.
I'm running...
Hi all,
We're developing web applications using JSF with Richfaces, Spring and Hibernate on the back.
It works fine with the OpenSessionInView filter, until I had an Ajax component which gave...
It is true: you cannot acces the database outside a transaction. However a transaction can be set as read-only, which will improve performance under certain circumstances.
However (side note!),...
Check if you have two different versions of the SLF4J libraries in your classpath. (Or rather: check if you use a different version of the SLF4J library than Spring (PropertyBinder.java) was built...
Guess this is the question we're all evaluating. :p
Keep the code free of unnecessary imports, and decoupled as much as you can. The ultimate smell test is whether you have redundant code (i.e....
I have attended the Core Spring course, which really gave me a lot. If you haven't taken it yet, you should seriously consider it.
The exam should pretty much reflect that course. There are some...
It was indeed a concurrency issue.
I missed a ThreadLocal variable to store the session in.
This is my helper class that does the job in case other people need to do the same:
package...
You're missing the apache-commons jar file in your classpath. If it's there already (in Tomcat?), try to add a newer version to the application classpath and see if it helps.
You need to restart the Spring application for this.
However, you can easily link external Spring XML configuration files into the main Spring configuration file using the <import resource="..."/>...
I don't think you can do things much different than that.
For small applications, it might be okay to use @Autowired, but it is generally not advisable, since you can't see the actual wiring...
You probably need to inject the datasource somewhere (into the transaction manager perhaps?). Please let us see some code. ;)
I don't know if this will help you, but have you tried to clear and/or flush the session?
Best regards,
Morten
Hi all,
I have a JSF web application utilizing Hibernate. It runs with the OpenSessionInViewFilter, which works perfectly fine for my needs.
In my applicationContext.xml, I have a plain...
Hm.... Thats also what I have mostly concluded during the last days trial and error on my coding:
I cannot set up my threads programatically (based on the actual entities from Hibernate) and have...