Check the source of my Google+ client library. It's an ugly workaround, but works. http://code.google.com/p/google-plus-java-api/
Type: Posts; User: Glamdring; Keyword(s):
Check the source of my Google+ client library. It's an ugly workaround, but works. http://code.google.com/p/google-plus-java-api/
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...
Where do I catch the exception? The listener's onMessage won't see the queue-related exceptions.
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...
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...
This thread: http://forum.springsource.org/showthread.php?t=81238 gives enough details
I know, it should be easy:
<bean id="handlerMapping"
class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
<property name="interceptors">...
Not yet. Whenever I have time, I will investigate it further.
15:11:14,676 WARN FacesRequestAttributes:121 - Could not register destruction callback [org.springframework.beans.factory.support.DisposableBeanAdapter@1059fd6] for attribute 'purchaseController'...
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...
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:...
Perhaps you could use reflection / BeanInfo and Introspector and call initialize() everywhere?
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?
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...
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...
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...
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...
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>
...
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...
Hello.
I am trying to flush a HibernateTemplate , but I get:
ERROR [http-9090-Processor25] ActionExceptionHandler.logException(147) | org.springframework.dao.InvalidDataAccessApiUsageException:...