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...
Type: Posts; User: gaffonso; Keyword(s):
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...
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" >
...
We are using the Web Application Security Namespace, and have configured it like so...
<!-- Auth Code authorization page -->
<http pattern="/oauth/authorize"...
> 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...
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...
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...
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.
...
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...
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...
> 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...
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.
...
> 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...
We've just struggled through troubleshooting a "complication" of using the AbstractTransactionalDataSourceSpringContextTests class.
First off, let me say that the...
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...
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...
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)...
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...
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...
Well, hmm.
Suggestion #1
--------------
If I inject the LocalSessionFactoryBean declared in my Spring applicationContext.xml this fails...
...
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
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...
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...
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...
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...
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...