I think I figured this one out, and it makes sense after all...
I guess it will end up starting and commiting a transaction on the "wrong" datasource - that doesn't do anything. When saving the...
Type: Posts; User: kristian; Keyword(s):
I think I figured this one out, and it makes sense after all...
I guess it will end up starting and commiting a transaction on the "wrong" datasource - that doesn't do anything. When saving the...
Hi.
I've been playing around with HibernateTransactionManager today and stumbled upon a strange behavior. If I deliberately configure a transactional resource to use the wrong transaction manager...
Thanks for your replies, at least I understand why it doesn't work now :-)
I think I'm just going to drop this. It boils down to what I actually want/need to test and it's not the timeout...
I don't think the order will make any difference:
- If the transaction interceptor is first in the chain, a local transaction will be used in the separate thread (started by the timeout...
Thanks for your quick reply!
Ok, that makes sense.
Yes, I've tried that. Both changing the order of the interceptorNames and by implementing "Ordered" in the timeout interceptor - with...
Hi
I've implemented a timeout interceptor (MethodInterceptor) that starts a new thread and potentially interrupts it - if a timeout should occur. The problem is that when I configure a bean with...
Hi,
I'm using JndiObjectFactoryBean to look up one of my beans and need to call an init-method on that bean. Implementing InitializingBean doesn't seem to help. Any ideas? Maybe there's a JNDI...
Hi,
I have the same issue. Anyone figured it out?
--
Best regards,
Kristian
Doesn't work here, with or without the slash. What are you using? I'm running this on Jetty 4.x
--
Kristian
I just get a 404 when doing it like that. It might be Jetty though, maybe it requires an actual file...
--
Kristian
web.xml
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
*-servlet.xml (in the SimpleUrlHandlerMapping)
Yes, that's what I would like to avoid =)
--
Regards,
Kristian
Hi,
Started to play around with Spring MVC, looks great. Thanks.
Is it possible to set the welcome page to a virtual URL? Tried setting the welcome-file (in web.xml) to an URL mapped with a...
Hi
Thanks, I've misunderstood transactionAttributes. That part is now ok =) But when I now try to save one of my mapped objects I get an SQLException saying that it can't find the table, even though...
Hi
I'm just curious, could you guys say something about best practises here? I'm a newbie, and I'm used to creating my own exception hierarchy, but none of the examples with HibernateDAOSupport I've...
Hi
Ok, this is the two methods I'm trying to use:
public int addUser(
String userName, String surName, String firstName,
String telephoneNumber, String faxNumber, String cellNumber,...
Hi
I'm trying to use HibernateTemplate. When using .saveOrUpdate(Object) it works, but when using .save(Object) I get an SQLException, saying that the database is in read only mode.
This is my...