My problem is that it's creating it as JdkDynamicProxy instead of cglib.
Type: Posts; User: tirtza; Keyword(s):
My problem is that it's creating it as JdkDynamicProxy instead of cglib.
I have a bean called VoidReq. VoidReq extends ReqHandlerBase and implements ApplicationContextAware.
It also has an aspect that intercepts one of its methods with around advice.
@Aspect...
Additionally-
I come into the same problem if I want to have a catch all exception within my transaction block. for example
@Transactional (timeout=3)
public void doSomething(){
...
I am using @Transactional (timeout=3)
From what I saw the timeout generates an UncategorizedSQLException which the transaction interceptor deals with.
The problem is that I catch...
I've searched high and low and cannot find what I'm doing wrong.
I have the JMX server up and running but when I try accessing the MBean from the client I get:
...
I'm using the TransactionProxyFactoryBean. I found that it only works when calling a method that is not part of the calling class.
For example I have class A and class B. Method save is part of...
I finally solved the problem although I'm not sure I understand it 100%.
runGroup is a function called from within the ReportEngine class. When called from within the class a transaction is not...
as a continuation from last post...
runGroup is a function of ReportEngine.
I do not understand why a transaction is not generated for this function.
This is what I have.
<bean id="myTransactionManager" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager"><ref...
ok here's what i figured out.
<prop key="*">PROPAGATION_SUPPORTS</prop>
When I have this line it causes a transaction for every function in my class.
When I take out that line no transaction...
also i tried turning autocommit on and it still doesn't work
I tried PROPAGATION_NOT_SUPPORTED with the normal transactionSynchronization value and it still did not commit right away. It is acting as if it's in a transaction.
Is this a bug in Spring- that...
as a continuation from last post....
here's my code. maybe it will be helpfull
public void Run(){
if(reNeedsToRun()) {//*************the method reNeedsToRun will update the...
when i set transactionsychronization to 1 then the first db update commits right away. The problem is that the second db update will give me
java.lang.IllegalStateException: Active Spring...
If I don't use transactions I get
java.lang.IllegalStateException: Active Spring transaction synchronization or jtaTransactionManager on LocalSessionFactoryBean plus active JTA transaction required
I do not want any of my db updates to be part of a transaction. Each one should commit as it is performed.
My problem is that this is not happening. Nothing is commited till the end.
I was able...
I have a one-to-one mapping based on a foreign key association. It is able to pull the related data.
The problem is: when saving it does not put in an id into the foreign key of the related data . ...
when I configured it this way it works
<bean id="transactionManager" class="org.springframework.orm.hibernate.HibernateTransactionManager">
<property name="sessionFactory">...
I saw I can overide the bean name to map to with determineActionBeanName. How do I implement this?
I am using the ContextLoaderPlugIn.
What do I do in the case where I have multiple struts actions that maps to the same class?
They need to be different mappings because they are coming from...
expert one-on one says that TransactionProxyFactoryBean is an alternative simplified way of proxy coniguration. Using this you don't have to set up AOP proxyfactorybean.
So what am I doing...
I am using spring 1.1.2 , hibernate 2.1. and oracle 9i. I am using clobs.
When trying to access records in the db I get the following error:
Active Spring transaction synchronization or...
I am using spring 1.1.2, hibernate2 and oracle 9i.
I am receiving errors when trying to save my clob to the db.
My original error was
operation not allowed: streams type cannot be used in...
to make myself more clear- the first post problem occurs when defaultautocommit is not set at all in my datasource in mi applicationContext.xml and the second post problem occurs when it is set to...
Additionally-
when the sql does not throw an exception the inserts do not appear in the database although the log claims to have commited:
- Creating new transaction
- Opening new connection...