Hi All!
Can anyone clarify why HibernateTransactionManager in its doSetRollbackOnly (see below) does NOT call setRollbackOnly on the status. It would seem a logical place to be...
protected...
Type: Posts; User: dvoytenko; Keyword(s):
Hi All!
Can anyone clarify why HibernateTransactionManager in its doSetRollbackOnly (see below) does NOT call setRollbackOnly on the status. It would seem a logical place to be...
protected...
Hi All, I wanted to discuss this issue.
I have a relatively complex domain model object graph with a lot of cross-references b/w objects. I've been always using DAO objects for my data access...
I believe the use cases described above are resolved pretty well in JDO and Hibernate (and I assume JPA) using fetch groups, lazy loading, batched lazy loading, etc. Although, I agree that DTO-s can...
I agree that this could be very attractive in many scenarios and not just for RCP.
Here's the discussion I had with Hibernate's team about potential foundation for such features:...
I've seen in many cases DTO working just fine. Web Services themselves operate on DTOs (i.e. the same behaviorless domain copies/fragments). Sometimes protection provided by DTO is well sufficient....
I just had a chance to look into Kodo's remoting/offline capabilities. It does seem like a good solution in cases when tight coupling b/w both server and client models are needed. Especially, I liked...
Let me make a step back. I don't want to start the argument about "correct" deployment model for Spring or other components. I belive, if specifications allow different deployment models, someone...
Hi,
1) I don't belive Spring reports anywhere constraints of deployment in the shared locations. If this is the case, it would be fine. There's no class loader problems using it in such...
It looks like release of JCL 1.0.5 is nearing that's supposed to fix most of the problems associated with multi-classloader environment.
Unfortunetely, some of the issues will probably go unfixed....
If you want to check if bean has been registered within MBean server, you can simply provide MBeanProxyFactoryBean bean in the same context and try to invoke methods on it. It should delegate all the...
Are you saying that this would work in your example?
try {
custId = template.queryForInt("select id from customers where username = ? and password = ?", new Object[]{username, password});
}...
It actually seems like some logs are missing, which made me think, which Spring version do you use?
I just looked in the source and two commands before "Committing Hibernate transaction on...
You can use non-singletons here.
What do you mean? DataSourceUtil.getConnection() doesn't throw SQLException - i.e. it's not in the signature and you don't have to catch it.
You're right here. As the matter of fact, you can simply null instead of TransactionDefinition for the same effect.
I believe it should work but I don't think it's a bug b/c a lot of code...
Can you turn on the DEBUG logging and post it here (within org.springframework.transaction)?
Thanks a lot for the reply!
Couple points here:
- I completely agree on the not-littering code with exceptions and I do like and use Spring exception hierarchy, but I also do have deployment...
Can anyone at least recommend best practices in this area?
Do you encourage propagation of Spring-based exceptions via remote calls?
This probably won't work, as connection is not a bean, only DataSource is.
I'd first check if physical JDBC connection supports properties that are equivalent to addDataType() call, i.e. if you...
If order of loading is important to you, you can always implement org.springframework.core.Ordered to direct Spring to load addItem-bean first. Unfortunetely for your case MethodInvokingFactoryBean...
Judging by stack trace, there's no Spring here at all. It looks like there're some classloading issues with Eclipse. Is this the full stack trace? Is it actually httpinvoker or you can't run Spring...
while(it1.hasNext()){
String str = (String)it1.next();
out.println("<option value=" + str + ">" + it1.next() + "str1"+ "</option>");
You check hasNext() once, but call next() twice in the...
I believe MethodInvokingFactoryBean should work fine here. I used it a number of times w/o any issues. I don't think it caches anything either. What do you mean by "doesn't work"? Does it throw an...
Couple of things can be here. JCL (which Spring uses) does the following to setup: http://jakarta.apache.org/commons/logging/guide.html#Configuration
Log4j is usually configured as default, but...
Hi All,
Just wanted to share the situation I ran into.
I have two applications communicating via RMI. I decided to replace the server part with Spring's remoting support. Thus I have a service...