Hi,
I have transaction methods managed by Spring @Transactional (Propagation REQUIRED).
On the begin of method I need to discover, if method is called from transactional or non-transactional...
Type: Posts; User: manousek; Keyword(s):
Hi,
I have transaction methods managed by Spring @Transactional (Propagation REQUIRED).
On the begin of method I need to discover, if method is called from transactional or non-transactional...
Warwick,
I'm afraid I have not good solution.
Because my method is only *loader*, I set hibernate lazy=true. But I know I must figure out this in future.
I believe this is because UserBus used...
Hi,
Specification: instead of "recommendation" I use term "warning" now.
A validator can report a failure or warning.
Failure is standard exception.
A warning is a failure that can be ignored...
Hi,
I'm looking for best practices for "Recommendation" - optional validators rule.
Idea:
We use Spring Validators for strict validation on user-input.
In Validators we define rules that...
I have still not good solution.
With not-transactional behaviour I have problem with hibernate LAZY, because session is closed after any load in method.
Solution is mapping as lazy=false, but...
gehel
thanks for answer, but annotation @Transactional is achieve to describe class OR method, so moving to class has no effect.
Problem is just in use userBus as userDetailsService in...
Can anybody tell me if "not-proxied @transactional objects used in userDetailsService" is a feature?
Or have I a chance to correct it?
Thanks
Jara
Configuration is scattered in couple files. One file is "main" and imports another files (tree structure).
So yes userBus is loaded into the same context as the <tx:annotation-driven> element. I...
Marten,
thank you for answer.
TransactionManager in userBus is a residue of my experiments. I donīt require it and put it away now.
Jara
Hello,
I have bus service UserBus for user-management, methods are annotated with @Transactional.
Transactions worked fine before I used Acegi and UserBus as userDetailsService in...
Addition: of course applicationContext_unitils only extends or changes applicationContext_product, junit uses both contexts. Priority is applicationContext_unitils.
Hi,
I have project with secured bussiness method via @Secured.
In applicationContext_product I have
<bean...
Sorry for stupid question, I solved it by import Spring.jar.
Jara
Hi, I can try SpringRich and have a newcommer problem:
I have SpringRCP 0.2.1, Oracle JDeveloper 10.1.3., Java 5.
When compiling main code
i get from compiler(!) error
ApplicationContext...
Solved.
We forgot old Spring 2.0 jar in WEB-INF\lib.
And Spring 2.0 had this NPE in DEBUG mode.
JUnit tests runs with in-classpath Spring 2.01, but servlet runs with this out-of-mind old...
Thank you for answer.
servlet uses the same configuration from BUS like junittests:
w4sn-servlet.xml
...
<!--import resource="applicationContext.xml"/-->
<import...
Hi,
I have app Spring 2.01 + Hibernate + Spring MVC, it runs on Oracle OC4J.
When I set LOG4J level to DEBUG, I get exception
2007-02-13 07:17:37,687 ERROR...