Search:

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

Search: Search took 0.02 seconds.

  1. I think I figured this one out, and it makes...

    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...
  2. Transactions when using the wrong TransactionManager

    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...
  3. Thanks for your replies, at least I understand...

    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...
  4. I don't think the order will make any difference:...

    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...
  5. Thanks for your quick reply! Ok, that...

    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...
  6. Interceptors, multiple threads and transaction rollback during testing

    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...
  7. Replies
    0
    Views
    761

    [solved] InitializingBean as a JNDI resource

    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...
  8. Replies
    1
    Views
    1,179

    Any solution for this?

    Hi,

    I have the same issue. Anyone figured it out?

    --
    Best regards,
    Kristian
  9. Replies
    10
    Views
    2,238

    Doesn't work here, with or without the slash....

    Doesn't work here, with or without the slash. What are you using? I'm running this on Jetty 4.x

    --
    Kristian
  10. Replies
    10
    Views
    2,238

    I just get a 404 when doing it like that. It...

    I just get a 404 when doing it like that. It might be Jetty though, maybe it requires an actual file...

    --
    Kristian
  11. Replies
    10
    Views
    2,238

    web.xml ...

    web.xml


    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>


    *-servlet.xml (in the SimpleUrlHandlerMapping)
  12. Replies
    10
    Views
    2,238

    Yes, that's what I would like to avoid =) --...

    Yes, that's what I would like to avoid =)

    --
    Regards,
    Kristian
  13. Replies
    10
    Views
    2,238

    Setting welcome page to a virtual URL

    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...
  14. Replies
    4
    Views
    1,891

    Hi Thanks, I've misunderstood...

    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...
  15. Best practise

    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...
  16. Replies
    4
    Views
    1,891

    Hi Ok, this is the two methods I'm trying to...

    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,...
  17. Replies
    4
    Views
    1,891

    HibernateTemplate

    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...
Results 1 to 17 of 17