Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Thanks for reply. Two things: In my posted...

    Thanks for reply. Two things:

    In my posted example, the two filter chains do not act independently (they *should* act independently, I agree, but they don't). <form-login> definitions in one...
  2. Why do I need to declare twice?

    We've got a spring security setup that looks (in part) like this:



    <!-- Auth Code authorization page -->
    <http pattern="/oauth/authorize" disable-url-rewriting="true" >
    ...
  3. View Post

    We are using the Web Application Security Namespace, and have configured it like so...



    <!-- Auth Code authorization page -->
    <http pattern="/oauth/authorize"...
  4. Replies
    3
    Views
    1,083

    > If you are using Spring's integration testing...

    > If you are using Spring's integration testing classes,

    Yes, that's them. (I'm loving them, BTW.)

    > the only solution I can think of is AspectJ. Adding an aspect to your
    > integration test...
  5. Replies
    3
    Views
    1,083

    Running Code at Application Startup

    We have a fairly typical webapp using Struts 2, Spring, Hibernate, etc.

    In our webapp we have the need to configure some things before just about anything else happens.

    Notably, we configure...
  6. Replies
    5
    Views
    1,160

    And it goes on like that. We're calling...

    And it goes on like that. We're calling getGeneratedKey in a loop and since each call starts a new transaction (and correspondingly a new connection) our available connections are eventually...
  7. Replies
    5
    Views
    1,160

    Here's the next transaction. Another call to...

    Here's the next transaction. Another call to getGeneratedKey. This is, again, a new transaction (not a participant in the previous transactions).

    And we now have connection #3 open.


    ...
  8. Replies
    5
    Views
    1,160

    Here's the next section where we see Spring...

    Here's the next section where we see Spring handle the transaction for getGeneratedKey.

    The transaction setup is all good here, the problem is that it's a *new* transaction, not a participant in...
  9. Replies
    5
    Views
    1,160

    Karl, Sorry for the delay in replying to this,...

    Karl,

    Sorry for the delay in replying to this, our hack-fix let us limp along awhile. But I would like to figure out what's going on.

    I'm going to post snippets of the debug log in separate...
  10. > Aren't these methods on the Session? No. ...

    > Aren't these methods on the Session?

    No.

    > Then SessionFactory.getCurrentSession() should work.

    Unfortunately it does not. The Hibernate Session does not expose the configuration. And...
  11. SessionFactory and LocalSessionFactoryBean in Hibernate caching and Tests

    We've got a bunch of tests which subclass AbstractTransactionalDataSourceSpringContextTests.

    Many of those tests need access to the SessionFactory to do things like flushing and cache evicting.
    ...
  12. > I would not necessarily expect a roll-back but...

    > I would not necessarily expect a roll-back but an invalidation

    With regard to the cache, I'm not sure I understand the distinction between "roll-back" and "invalidation".

    For a transactional...
  13. WARNING: Hibernate caching and AbstractTransactionalDataSourceSpringContextTests

    We've just struggled through troubleshooting a "complication" of using the AbstractTransactionalDataSourceSpringContextTests class.

    First off, let me say that the...
  14. Replies
    5
    Views
    1,160

    Transactions not propogating

    I've got a DAO that I've configured with declarative transactions as read-only, default propogation (progation required). When I call the getter on that DAO I get no propagation, a new transaction...
  15. Replies
    1
    Views
    1,008

    Business Event Modeling and Logging

    We're a health care provider that collects and manages patient data. Various end-user activities need to be logged.

    Patients, for example, are associated with a Provider (their doctor). For a...
  16. I figured it out. For posterity... Karl was...

    I figured it out.

    For posterity...

    Karl was right. You can just declare a SessionFactory setter in your test class (a test class that extends AbstractTransactionalDataSourceSpringContextTests)...
  17. Ok, got it. But note that neither suggestion...

    Ok, got it.

    But note that neither suggestion you mentioned for getting the current session (and flushing it) inside of a class that extends AbstractTransactionalDataSourceSpringContextTests works...
  18. Rather than fight with figuring out how to get...

    Rather than fight with figuring out how to get access to my current session in the test class, I just added the flush to the DAO's udpate method. That method now looks like this:



    public...
  19. Well, hmm. Suggestion #1 -------------- If I...

    Well, hmm.

    Suggestion #1
    --------------
    If I inject the LocalSessionFactoryBean declared in my Spring applicationContext.xml this fails...

    ...
  20. I'll go give that a try. Any hint on how to...

    I'll go give that a try. Any hint on how to easily get access to the Hibernate session from within a test that extends AbstractTransactionalDataSourceSpringContextTests?

    Thanks!

    - Gary
  21. HibernateDao tx behavior and AbstractTransactionalDataSourceSpringContextTests

    We've got a simple application that, up to this point, hasn't needed any transactional capability beyond "one transaction per query". We just want each and every hibernate call to commit if it...
  22. Job (project) Opportunity - Web services / remoting

    We've got a project due first thing next week that requires us to make some calls to an vendor's existing Web Service. The pseudo code would look something like this:



    //get an authentication...
  23. WebWork uses a listener. It's not that I want to...

    WebWork uses a listener. It's not that I want to do it without a listener, I just want to do it without a custom listener of my own. In other words, I want support from the framework for the...
  24. SotA: Thanks, thanks, thanks, you put me on...

    SotA:

    Thanks, thanks, thanks, you put me on the right path....

    There is a WebAppRootListener utility included with Spring's standard distribution.

    When you add that listener to your webapp...
  25. Referencing "current directory" in applicationCont

    One of our vendor libraries (CyberSource payment gateway) requires a pathname that points to the keyfile used for encrypting the payment session. It will accept either absolute URL's or relative...
Results 1 to 25 of 51
Page 1 of 3 1 2 3