Search:

Type: Posts; User: kdelong; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. Flash scope causes stack trace on redirect

    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...
  2. Replies
    0
    Views
    363

    Adding create/update users magically?

    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...
  3. Trouble getting URL mappings to work in Spring Security Plugin

    I have this in my Config.groovy:
    grails.plugins.springsecurity.securityConfigType = 'InterceptUrlMap'
    grails.plugins.springsecurity.interceptUrlMap = [
    '/image/save/**':...
  4. Multiple Instances of Annotated Controllers

    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? ...
  5. Mystery solved. HibernateTransactionManager...

    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...
  6. I was able to grab the datasource dynamically...

    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...
  7. Unfortunately, it's not that easy. I have a...

    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...
  8. JDBCTemplate and Hibernate - bizarre exceptions

    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...
  9. Replies
    3
    Views
    1,086

    Michael, it worked! I swear we tried about 3...

    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. ...
  10. Replies
    3
    Views
    1,086

    How to set Job Exit Message

    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...
  11. Replies
    0
    Views
    412

    FilterBasedLdapUserSearch threadsafe?

    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.
  12. Thanks very much Dave! Since we have over a...

    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...
  13. What multiple jobs of the same type running at...

    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,...
  14. alright, thank you!

    alright, thank you!
  15. Hosting Reusable Batch Jobs in a web container

    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...
  16. Replies
    5
    Views
    1,391

    Wow, I finally figured it out. In our main app,...

    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...
  17. Replies
    5
    Views
    1,391

    I know the transaction is thread-bound. Under...

    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...
  18. Replies
    5
    Views
    1,391

    One more clue, debugging through it, it appears...

    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...
  19. Replies
    5
    Views
    1,391

    Transactions not reentrant?

    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...
  20. Ha, but in this particular instance you can use...

    Ha, but in this particular instance you can use this in your @Controller:

    @Autowired
    private ServletContext servletContext;
  21. I still see the same effect in 3.0.4. I added...

    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...
  22. Replies
    1
    Views
    696

    I'm still trying to create the evaluation context...

    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...
  23. Replies
    1
    Views
    696

    Custom XML Namespace and SpEL

    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...
  24. Replies
    0
    Views
    965

    Multithreaded App Context Initialization

    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.
  25. Ah, I found my problem. The pom didn't have the...

    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...
Results 1 to 25 of 85
Page 1 of 4 1 2 3 4