ok, finally we got it solved. problem was the gwt-servlet.xml had an annotation scanner, which was picking up a second copy of the daos/services, but not proxying them.
Type: Posts; User: jbalint; Keyword(s):
ok, finally we got it solved. problem was the gwt-servlet.xml had an annotation scanner, which was picking up a second copy of the daos/services, but not proxying them.
<a href="http://foo.bar/myWebApp/login.html">Click here to log in.</a>
David,
Please try adding the following to your JDBC URL:
autoReconnect=true
Regards,
Jess
I seem to remember you need to enable trace logging for this one. Try
log4j.logger.PerformanceInterceptor=TRACE
Jess
There should be more to the error. Check the catalina.out file in Tomcat's log directory.
Jayarama Nettar -
MySQL 4.1 does not support XA. Both databases will have to be on MySQL 5.0 or later.
Jess
John,
Please verify that you are using InnoDB tables in MySQL. MyISAM tables do not support transactions.
Jess
Francesco,
The way to setup transactions using annotations is clearly documented. Please read about it in the manual here:
...
The issue is that you specified "class" On the baseManager. YOu need to use target. See the example here:...
What auto proxy are you using? With something like BeanNameAutoProxyCreator or DefaultAdvisorAutoProxyCreator, you can still set proxyTargetClass=true. This will force the use of CGLIB to generate a...
Why are you using the transactional tests if you are not using any transactional objects?
Can you show the stack trace and config? Also, are you using a container data source w/Hibernate? You need to if you are going to use the JTA txmgr.
Are you retrieving "txResetTradeServiceTarget" from the application context?
Which method on which component are you calling that is not rolling back? Also please use the proper CODE tags when adding code to your post.
Craig,
You (probably) don't need XA if you are using JDBC and Hibernate with the same database. You can use the same data source with both and Spring can help wrap all the access up into one...
The problem is that the ActiveMQ connection is not registered as a resource in the XA transaction. The standard way this is done with JOTM is to use a XAPool data source, but this only works for...
I just found this in the manual, Section 12.7.1.2.1. Tomcat setup. It states:
I would make sure you have that jar copied and no additional Spring jars in server/lib or common/lib.
I would try Spring 2.0-RC3 since it was recently released and if it does not work, raise an issue in JIRA.
I think something like this would happen if you tried to map a non-SQL-native type onto a field, eg. somethat that should be one-to-many or similar. What happens is Hibernate just uses Java...
The "target" is in fact the bean to wrap. The advice is applied to the target based on the pointcut.
I'm not sure why you don't think advice can be applied to multiple classes or methods. Have you...
You've got two different sessions going on your DAO. Try reading this section of the manual.
Your DAO can just use getHibernateTemplate() and the operations available on there for most session...
Use the JndiObjectFactoryBean to retrieve the data source. Use the data source name that you are using for your BMP EJBs.
The problem here is that your data source in your JDBC DAO and the data source in the EJB are two different database connections. In order to do this you should use the container-managed datasource...
Can you show your DAO (are you extending HibernateDaoSupport) and the generated mapping files? Also, remember to use the 'CODE' tags in the post so it's easier to read.
Also, you'll want to use a...
I think you need to put the Spring jar in $CATALINA_HOME/common/lib.