I am trying to send a JMS message after a database transaction completes; the obvious thing seemed to register a callback with the TransactionSynchronizationManager.
However, I am unable to send...
Type: Posts; User: honeybunny; Keyword(s):
I am trying to send a JMS message after a database transaction completes; the obvious thing seemed to register a callback with the TransactionSynchronizationManager.
However, I am unable to send...
After fighting through a migration to spring 3, I am wondering if there is a migration guide for spring security that I have missed? I have read the sticky posts and the commit log for...
I am experiencing this as well, although I am not using GWT. It seems, in my case that maven/m2eclipse is not picking up the dependency on spring-security-web (the required jar never makes it into...
Yes, I can resolve them that way (it pulls from the maven central repo). I was trying to use the spring repo (thinking it would be more up to date).
I am trying to pull spring 3 from the maven repo using the directions found in the spring 3 reference. I'm using m2eclipse. I can add other repositories just fine (jboss for example), but I can't...
Figured it out after some intense reading of the jetty source:
Jetty does not expect to be shutdown via Server.stop() as most people would expect. Instead one is expected to call System.exit()...
I am trying to deploy my spring application within jetty. When jetty starts, ApplicationLifecycleListener beans get a ContextRefreshedEvent. However, when I stop the jetty Server, I don't get any...
I cannot imagine why you would want to build your application this way. It seems like you are creating more work for (what seems like) little gain; you now have to edit your application's internal...
Thanks, good to know.
I believe I have found the problem, I needed to set the subscription name AND make the subscription durable. It seems like non-durable subscriptions to topics don't seem to work right (at least with...
The javadoc makes no mention if Jaxb2Marshaller is thread safe. In particular are marshall() / unmarshall() thread safe?
While objects returned from createMarshaller() / createUnmarshaller() are...
I don't think you can use the init() method, as Martin pointed out. If you want to make sure your service is initialized before it can be used, you _can_ implement ApplicationListener, and reload...
Really? I think I have both transactional services and transactional DAOs; thinking that I can use either one or both together, and the thread scoped transaction will be started by the first layer...
I think the question we are trying to answer for you is 'is spring putting a transactional proxy around your DAO'?
You might try to print out the class of the spring injected reference, usually...
In my application I have two types of subjects which need to authenticate to my web app: 'users' and 'server principals'. I have two different UserDetailsService implementations which look up the...
How does DefaultAttachmentTypeService receive the reference to entityDao?
1) Is the reference injected via the spring container?
2) Is the method findAll() part of a public interface declared by...
is entityDao annotated with @Transactional (or findAll())?
There are many ways. Usually you have a DAO class annotated with @Transactional. As long as you make sure that the @Transactional is picked up by spring (and associated with the DAO class via...
update: I think the above poster has it right, "assigned" seems to be the problem.
It is allot easier to read if you use code tags. If you are just starting out, you might also consider using...
Wow, getCurrentSession() vs. getSession() thats never going to be confusing. Why not name it getManagedSession() and getUnmanagedSession() or getCurrentSesion()/createSession().
When I read it, i...
sounds like you don't have your class mapped right.
This is my impression as well. I don't actually know the history, but from reading some of the reference guide comments, it seems like hibernate used to be more difficult to use in the past.
It...
Silly me, from the javadoc for HibernateDaoSupport.
Totally makes sense now.
Thank you; I re-read the reference guide and it seems a bit clearer now, however; I am still confused.
I looked at those places where I extend HibernateDaoSupport; I noticed that wherever I was...
I'm trying to follow the "plain hibernate" style using only a SessionFactory (see the example in http://static.springsource.org/spring/docs/2.5.x/reference/orm.html#orm-hibernate-straight).
...