Search:

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

Search: Search took 0.03 seconds.

  1. Check the source of my Google+ client library....

    Check the source of my Google+ client library. It's an ugly workaround, but works. http://code.google.com/p/google-plus-java-api/
  2. Is it ok to have multiple listeners in one container?

    One MessageListenerContainer (extending AbstractMessageListenerContainer at least) can have only one message listener. However, in the general case, clients want to listen to many different queues...
  3. Replies
    3
    Views
    1,031

    Where do I catch the exception? The listener's...

    Where do I catch the exception? The listener's onMessage won't see the queue-related exceptions.
  4. OAuth2 token with AbstractOAuth2ServiceProvider

    AbstractOAuth2ServiceProvider has getApi() which only takes an access token. However, oauth2 implementations require both an access token and a refresh token. Furthermore, the refresh token should be...
  5. Replies
    3
    Views
    1,031

    Sending requeue=false on failure

    Currently, when there is an exception in a listener, the container's BlockingQueueConsumer does this:
    channel.basicReject(deliveryTag, true);

    However, we want to send requeue=false in these...
  6. This thread:...

    This thread: http://forum.springsource.org/showthread.php?t=81238 gives enough details
  7. How to register handler interceptors with spring 3.0

    I know, it should be easy:


    <bean id="handlerMapping"
    class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
    <property name="interceptors">...
  8. Not yet. Whenever I have time, I will investigate...

    Not yet. Whenever I have time, I will investigate it further.
  9. WARN: Could not register destruction callback

    15:11:14,676 WARN FacesRequestAttributes:121 - Could not register destruction callback [org.springframework.beans.factory.support.DisposableBeanAdapter@1059fd6] for attribute 'purchaseController'...
  10. I just answered my question. If I move ...

    I just answered my question.

    If I move


    <tx:annotation-driven transaction-manager="jpaTransactionManager" />

    above the <aop:config>, the xml-configuration takes precedence. If I specify...
  11. Annotation-based and xml-based transaction definitions precedence

    I couldn't find a definitive answer to this in the docs, and although there seems to be a logical answer, one can't be sure. The scenario is this - you have a xml-based transaction definition, like:...
  12. Replies
    1
    Views
    680

    Perhaps you could use reflection / BeanInfo and...

    Perhaps you could use reflection / BeanInfo and Introspector and call initialize() everywhere?
  13. Replies
    2
    Views
    742

    What do you have in the getEntityManager method?...

    What do you have in the getEntityManager method?
    Is it injected with @PersistenceContext?

    It seems that your session is closed - how to you manage your session?
  14. I see. Yet, I feel strange with using...

    I see.

    Yet, I feel strange with using getCurrentSession() in my DAO, but having the session to be created within the TransactionManager.

    I checked the Hibernate documentation about...
  15. I'm not sure you are correct. If...

    I'm not sure you are correct. If "hibernateManagedSession" is set to true, the transaction manager uses getCurrentSession, instead of using the internal mechanism. BUT getCurrentSession delegates the...
  16. Discussion: Spring + Hibernate - No Hibernate Session bound to thread

    Hi,

    I'm having some very particular questions about this 'issue'. I know how to make it work, but I want it understood to the root.
    I saw a thread about it, but I think it didn't explain what I'm...
  17. Replies
    10
    Views
    1,567

    I'm not using annotations (except some XDoclet...

    I'm not using annotations (except some XDoclet ones).

    The transaction management, I suppose, is done by the HibernateTransactionManager.


    (If needed, here is the User.hbm.xml mapping file...
  18. Replies
    10
    Views
    1,567

    applicationContext-resources.xml

    applicationContext-resources.xml


    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
    "http://www.springframework.org/dtd/spring-beans.dtd">

    <beans>
    ...
  19. Replies
    10
    Views
    1,567

    This was my question - where are those...

    This was my question - where are those "Transaction configuration".

    Yes, I need a write operation (a Hibernate object was changed). However, the problem seems not in Spring itself - when I turn...
  20. Replies
    10
    Views
    1,567

    Problem with readOnly transactions

    Hello.

    I am trying to flush a HibernateTemplate , but I get:

    ERROR [http-9090-Processor25] ActionExceptionHandler.logException(147) | org.springframework.dao.InvalidDataAccessApiUsageException:...
Results 1 to 20 of 20