
Originally Posted by
mdeinum
As I said before it has ALL to do with your transaction management. Can you post your transaction configuration?
I am sorry for my ignorance.
Still trying to get a handle on all of this!
If by transaction configuration you mean what I have set up in my applicationContext.xml for spring, then here it is. (Pretty much a copy and paste from a sample app I had seen)
Code:
<bean id="addSponsors" class="com.natixis.blr.web.jsf.model.AddSponsorsModel">
<property name="tbProjectDepartmentDAO">
<ref local="TbProjectDepartmentDAO" />
</property>
<property name="tbDepartmentDAO">
<ref local="TbDepartmentDAO" />
</property>
</bean>
<bean id="addSponsorsModel" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref local="transactionManager" />
</property>
<property name="target">
<ref local="addSponsors" />
</property>
<property name="transactionAttributes">
<props>
<prop key="save*">PROPAGATION_REQUIRED</prop>
<prop key="remove*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>
Also, I realized that I have not integrated my JSF stuff with Spring. So I changed around my code a little bit essentially by adding another layer. This layer communicates with the DAO now instead of my JSF bean. (The "addSponsors" bean above is an example of this)
Something like this:
JSF Bean -> New Layer -> DAO
Anyways, I am seeing something different now. Now I am seeing the error displayed on the webpage. Before the integration, the error message would only appear in the log.
Not sure if this means I am getting closer.
Again, sorry for my ignorance. I feel like my brain is about to explode!