eg:
@Transactional public boolean addPersonToDb(Person p) {
The code compiles and runs without problems.
Message itself: several markers on this line
com.pname1.pname2.pname3.pname4.PersonDAO.addPersonToDb
org.springframework.transaction.interceptor.TransactionInterceptor.invoke (org.aopalliance.intercept.MethodInvocation)
I can’t understand if this is a mistake or just a message looking at other topics that people perceive as a mistake. I am just worried if my transactions are working.
Well, a class implements an interface and its method annotated as transactional, is there something wrong with that?
Update: some minor errors have been resolved, the web application is working, but I still get this message (not in the stack trace, but at the line breakpoint):
recommended by org.springframework.transaction.interceptor.TransactionInterceptor.invoke (org.aopalliance.intercept.MethodInvocation)
Current situation:
@Transactional public void registerNewUser(Person p) { // this gives message on line breakpoint - advised by ...; AND this method is implemented by interface pd.addPersonToDb(p); } @Transactional public void blabla(Person p){ // this does not, as expected; AND it is not in interface }
Do my transactions work or not? (I have no exceptions and web application launches and the methods work)
I can’t understand if this message was an error or not?
source share