Search:

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

Page 1 of 17 1 2 3 4

Search: Search took 0.04 seconds.

  1. Can SchedulerFactoryBean be made aware of AbstractRoutingDataSource?

    I am trying to setup org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource and am wondering if this dynamic data source routing can be integrated with Quartz. If we have...
  2. Replies
    1
    Views
    436

    Spring Security 3.1 upgrade issue

    With Spring Security 3.0.5 the following definition worked:



    <sec:authentication-manager alias="authenticationManager">
    <sec:authentication-provider ref="anonymousAuthenticationProvider" />...
  3. Grails application on Cloud Foundry with MongoDB - Error on application startup

    I have a simple Grails application that uses MongoDB (without hibernate plugin). On startup I am receiving the following error message. Any help is appreciated.



    Jan 18, 2012 2:28:44 AM...
  4. Replies
    2
    Views
    345

    awesome! thx!

    awesome! thx!
  5. Replies
    2
    Views
    345

    STS 2.9.0M1 Stack Overflow

    I keep getting stack overflow and am force to restart continuously using STS 2.9.0M1 with a super simple Grails app, log attached.
  6. Replies
    1
    Views
    468

    nevermind this, I was being an idiot :)

    nevermind this, I was being an idiot :)
  7. Replies
    1
    Views
    468

    trouble rendering an image

    got a weird problem I am hoping someone can answer. I got a simple domain class


    class Photo {
    byte[] file
    String contentType

    static belongsTo = Listing
    static mapWith =...
  8. Replies
    7
    Views
    1,680

    the only thing that is different for you is the...

    the only thing that is different for you is the data source, you should take a look at org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
  9. Thanks Costin! I'll give it a try. I got things...

    Thanks Costin! I'll give it a try. I got things "working" by creating a single connection in init-method method of the cache provider and closing it out on destroy-method (using JRedis). The...
  10. All, I created an even simpler test, it...

    All,

    I created an even simpler test, it appears as if once the first connection retrieved from the connection factory is closed, any subsequent connection that is retrieved from the factory is...
  11. Spring Data Redis-Closed Connection after first access and any subsequent operations

    All,

    I am investigating usage of Redis for some simple caching of data. The problem I am running into is that after the first time the application attempts to access Redis any subsequent operation...
  12. http://static.springsource.org/spring/docs/3.0.x/r...

    http://static.springsource.org/spring/docs/3.0.x/reference/aop.html
  13. if you want to run from the command line you have...

    if you want to run from the command line you have to provide -javaagent:/path/to/agent/jar argument to instrument your VM
  14. you can of course have both, are you using...

    you can of course have both, are you using org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean?
  15. Replies
    2
    Views
    673

    take a read through this blog post...

    take a read through this blog post and the other two (part I and III)
  16. why don't you send email notification from your...

    why don't you send email notification from your after-throwing advice? you have a code smell here, you are running code in the finally that is saying emailSender.emailFailedNotification so when...
  17. Replies
    2
    Views
    1,065

    You can use another property placeholder...

    You can use another property placeholder configurer to first load up system properties and then have those system properties available when you define your second property placeholder configurer. The...
  18. Just get your dataSource from the application...

    Just get your dataSource from the application context and do invoke getUrl() method, that will give you the URL. you can parse the URL if you want just the server name/IP part
  19. Replies
    4
    Views
    938

    are these objects actually saved? cause hibernate...

    are these objects actually saved? cause hibernate will call getters during saves... you'd need full AspectJ if you want to advice objects that are not spring beans...
  20. Replies
    4
    Views
    938

    As you pointed out, Hibernate is creating these...

    As you pointed out, Hibernate is creating these so you cannot use Spring AOP for this. Wouldn't hibernate interceptor for for you, why do you need AOP for this?
  21. you want to the same session, tell OSIV that you...

    you want to the same session, tell OSIV that you do...



    <filter>
    <filter-name>hibernateFilter</filter-name>
    <filter-class>org.springframework.orm.hibernate3.support.O...
  22. Thanks for the reply guznik, the application is...

    Thanks for the reply guznik, the application is not using EntityManager, just Hibernate.

    Writing the query is not an option as there are 100's of references in the application to this call and...
  23. Getting Current State of the Object From DB "Bypassing" Hibernate First-Level Cache

    All,

    I am wondering if someone has a slick solution to this pattern. Basically I have an application that has several hundred hibernate-mapped domain objects. Most of the associations are...
  24. Replies
    4
    Views
    734

    absolutely, if your service throws runtime...

    absolutely, if your service throws runtime exception the transaction will be rolled back (if it occurs in utility call or any other subsequent call while still in the service.
  25. Replies
    4
    Views
    734

    based on your description your transactional...

    based on your description your transactional boundary is call to


    Utility.getConsumerNumber();

    Which means that you have to create a transactional proxy around the Utility class. You would...
Results 1 to 25 of 420
Page 1 of 17 1 2 3 4