We are experience a problem that we've traced to our use of flash scope.
The use case is that a user visits our site, and then stays on one page until a session timeout on the server occurs. At...
Type: Posts; User: kdelong; Keyword(s):
We are experience a problem that we've traced to our use of flash scope.
The use case is that a user visits our site, and then stays on one page until a session timeout on the server occurs. At...
I'm relatively new to Grails, and I'm hoping someone here can teach me a new piece of magic!
For all my domain objects, I'd like to add properties called "createUser" and "updateUser" and set the...
I have this in my Config.groovy:
grails.plugins.springsecurity.securityConfigType = 'InterceptUrlMap'
grails.plugins.springsecurity.interceptUrlMap = [
'/image/save/**':...
I want to instantiate two instances of the same annotated controller. The two controllers will have different URLs and some different data (different success view).
How can I get this to work? ...
Mystery solved. HibernateTransactionManager caches the DataSource in afterPropertiesSet(). As we have the multi-tenant architecture, that's not the correct DataSource, the correct one must be...
I was able to grab the datasource dynamically from the ApplicationContext (I cannot hardwire it as recommended above because of the multitenancy issue). I observe the same behavior as I see with...
Unfortunately, it's not that easy. I have a multi-tenancy application as documented here http://www.jroller.com/kenwdelong/entry/multi_tenancy_using_spring_and and so there are actually 9...
I have a DAO with an injected SessionFactory, all managed by Spring's @Transactional with HibernateTransactionManager.
Now I have a use case where I want to do JDBC Bulk inserts, and I want to use...
Michael, it worked! I swear we tried about 3 variants of this before. But we had added the JobListener interface to the last step. Apparently that doesn't work the same way as a dedicated bean. ...
We are using batch 2.1.6. I am trying to figure out how to change the EXIT MESSAGE of a job (explicitly, I want the exit message to appear in the batch_job_execution.EXIT_MESSAGE column in the...
I'm wondering if a single instance of FilterBasedLdapUserSearch can be used by multiple threads simultaneously? I've looked at the source, and it seems threadsafe, but I couldn't be totally sure.
Thanks very much Dave!
Since we have over a dozen jobs, and many of the beans are named the same (copy-and-paste job creation), I actually went back to the launcher that creates a sub application...
What multiple jobs of the same type running at the same time? For example, if we are building search indexes for multiple sites using a single job that is parameterized (using JobParameters,...
alright, thank you!
We were early adopters of Spring Batch, back in the 1.0 and 1.1 days. We have a long-running web container that hosts our dozen or so Batch jobs. In those days, there were two pieces of advice that...
Wow, I finally figured it out. In our main app, we use a delegating wrapper (JDK Proxy) around our Hibernate Session Factory. In Spring's TransactionSynchronizationManager, it is using the...
I know the transaction is thread-bound. Under propagation REQUIRED the second entry into a transactional service should join the existing transaction, but it doesn't.
The issue is clearly seen in...
One more clue, debugging through it, it appears that it's because the SessionHolder is marked as "isSynchronizedWithTransaction". I'm not sure what that means exactly, but in the...
I have a service method, executing within a transaction, that in a roundabout way ends up calling another transactional service. All the @Transactional annotations use the default REQUIRED...
Ha, but in this particular instance you can use this in your @Controller:
@Autowired
private ServletContext servletContext;
I still see the same effect in 3.0.4. I added ServletContextAware to my @Controller class, and got that lovely error:
javax.servlet.ServletException: No adapter for handler...
I'm still trying to create the evaluation context for this guy. I've got this giant mess:
String hubElString = ((Attr) node).getValue();
ExpressionParser parser = new...
I'm trying to get SpEL to work with our custom XML namespace tags, but I've not had success. My bean def looks like
<bean myns:mytag="#{stringBeanId}" etc etc/>
The "stringBeanId" is just a...
Application startup starts to be annoying when you get up to hundreds of beans. Are there any plans to multithread the context initialization? Speeding up initialization would be huge for us.
Ah, I found my problem. The pom didn't have the compiler plugin, and therefore source level was set to 1.3 by default. I put in the usual compiler plugin with 1.6 and then the maven builder started...