Hi friends!!!
I'm working with Spring+Hibernate. When I provoke a rollback in my application, it works, but i can't see any information about it in my Tomcat's log. I want to know if there are any...
Type: Posts; User: Jarva; Keyword(s):
Hi friends!!!
I'm working with Spring+Hibernate. When I provoke a rollback in my application, it works, but i can't see any information about it in my Tomcat's log. I want to know if there are any...
Umm....it doesn't run at all...If i do two "createProducto", and cause and exception on the second, the rollback only affect to the last one.
I have been reading about...
Uagggg, what stupid error. Thanks!!!
This is my springHibernateTransactions-servlet.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Registred (Registred) -->
<!DOCTYPE beans...
public class AltaProductoFormController extends SimpleFormController{
protected final Log logger = LogFactory.getLog(getClass());
/**
* Valor del campo <code>PM</code> que...
And PM is created on the "applicationContext-hibernate.xml":
<bean id="blankTarget" class="com.acotelsa.transactions.hibernate.HibernateProductoManager">
<property name="sessionFactory"><ref...
Actually my "createProducto" is like:
public Integer createProducto(Producto producto)
{
Integer id= (Integer) getHibernateTemplate().save(producto);
if (true)
...
Ok. I had tried to insert a "throw new RuntimeException" on the "createProducto" method, and i doesn't do the rollback. I don't know if my configuration is wrong or i've i testing it with wrong...
Because i believe that my application isn't looking at my TransactionProxyFactoryBean: it still insert the fisrt record on database. So i put the "readonly" property to prove that maybe it give me an...
Hi friends!!
I'm trying to use the declarative transaction management with Hibernate in Spring. But i can't obtain a rollback at my wrong actions on BBDD.
This is my...
ok,and how i can prove that rollback runs??
Hi friends!!
I'm trying to use the declarative transaction management with Hibernate in Spring. But i can't obtain a rollback at my wrong actions on BBDD.
This is my...
Hi friends!!!
I need to know what is the workflow of SimpleFormController, before and after of submit action. This is because i've to check user's session, and i don't know how to do it.
I think...
:D
Ok!! It works now!! My errors were that:
- weren't putting ".htm" on the success view tag at ...-servlet.xml
- using new RedirectView on the Controller side and "redirect:" on the xml side. I've...
Thanks dhainlin
I've tried to do what you say. My ...-servlet.xml now is like that:
<!-- Validador y Controlador del formulario para la edicion de Contactos" -->
<bean...
Ufff, i find the problem. Yeah, thanks for your answer because it's true: i need the setter method, and I've to call the property with the same name that in the "xml" file; it was obvious, but i...
Ok,
I've put getter and setter methods for the too Managers in my class, but i'm still having the problem:
Error creating bean with name 'listadoCanales' defined in ServletContext resource...
Hi friends!!!
I've to do a call from a SimpleFormController to another SimpleFormController, but I don't know how i can do it, because i want to call to the controller of the second form, not to...
Hi friends!!
I'm trying to use to DataSource on my application, that seems like that:
<!-- JNDI DataSource para entornos J2EE para el esquema ARS-->
<bean id="dataSourceArs"...