Search:

Type: Posts; User: dvoytenko; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. HibernateTransactionManager and DefaultTransactionStatus.setRollbackOnly()

    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...
  2. Replies
    1
    Views
    1,297

    DAO/update vs Unit of Work

    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...
  3. Replies
    35
    Views
    8,996

    I believe the use cases described above are...

    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...
  4. Replies
    35
    Views
    8,996

    I agree that this could be very attractive in...

    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:...
  5. Replies
    35
    Views
    8,996

    I've seen in many cases DTO working just fine....

    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....
  6. Replies
    35
    Views
    8,996

    I just had a chance to look into Kodo's...

    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...
  7. Let me make a step back. I don't want to start...

    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...
  8. Hi, 1) I don't belive Spring reports...

    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...
  9. It looks like release of JCL 1.0.5 is nearing...

    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....
  10. Replies
    5
    Views
    4,659

    If you want to check if bean has been registered...

    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...
  11. Are you saying that this would work in your...

    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});
    }...
  12. Replies
    5
    Views
    1,230

    It actually seems like some logs are missing,...

    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...
  13. Replies
    4
    Views
    956

    You can use non-singletons here.

    You can use non-singletons here.
  14. What do you mean? DataSourceUtil.getConnection()...

    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.
  15. Replies
    5
    Views
    1,230

    You're right here. As the matter of fact, you can...

    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...
  16. Replies
    5
    Views
    1,230

    Can you turn on the DEBUG logging and post it...

    Can you turn on the DEBUG logging and post it here (within org.springframework.transaction)?
  17. Replies
    3
    Views
    1,209

    Thanks a lot for the reply! Couple points...

    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...
  18. Replies
    3
    Views
    1,209

    Can anyone at least recommend best practices in...

    Can anyone at least recommend best practices in this area?
    Do you encourage propagation of Spring-based exceptions via remote calls?
  19. Replies
    3
    Views
    1,045

    This probably won't work, as connection is not a...

    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...
  20. Replies
    6
    Views
    1,767

    If order of loading is important to you, you can...

    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...
  21. Replies
    1
    Views
    996

    Judging by stack trace, there's no Spring here at...

    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...
  22. Replies
    1
    Views
    769

    while(it1.hasNext()){ String str =...

    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...
  23. Replies
    6
    Views
    1,767

    I believe MethodInvokingFactoryBean should work...

    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...
  24. Replies
    6
    Views
    1,503

    Couple of things can be here. JCL (which Spring...

    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...
  25. Replies
    3
    Views
    1,209

    remoting (RMI) and runtime exceptions

    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...
Results 1 to 25 of 61
Page 1 of 3 1 2 3