That did the trick!!
Much appreciated:)
Type: Posts; User: backofthecup@hotmail.com; Keyword(s):
That did the trick!!
Much appreciated:)
I have a very interesting problem: I'm using a hibernate session factory with a RoutingDataSource (for 2 data sources). I'm using 2 facades in my service layer which also defines my transactions...
I have a simple controller that takes one request parameter:
@Controller
@RequestMapping("/secure/somurl.htm")
public class ProblemListController {
@Autowired
private ServiceFacade...
Ok, I think I finally know why it isn't working. The problem is the determineCurrentLookupKey() on the AbstractRoutingDataSource class is being called before my advisor is being called. I really...
Well I switched to using annotations for aspects and I get unpredictable results. Sometimes it works and sometimes it doesn't. The methods appear once again to be getting intercepted correctly. ...
Well I thought I had everything working. I'm using beforeAdvice on the call to my service layer to determine what data source to set. That seems to be working perfectly. However I noticed I had...
Thanks for your help ....I really appreciate it. Determining what data source to use sounds like a perfect scenario to use Aspects.
I think I may have to use a JtaTransactionManager??
Here's my problem..I have two sessionFactory(ies) , two Tx managers - one for each sessionfactory each one having a different data source. I want to use annotations for transaction mgmt with...
As of Spring 2.5.6 you can now use the setPackagesToScan() method accommodate this:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"...
Thanks....setting the property to true fixed the problem.
Why not just create your own formAuthenticationProcessingFilter. Subclass AuthenticationProcessingFilter and override this method:
onSuccessfulAuthentication(HttpServletRequest request,...
I'm using version 2.0.3. On my formAuthenticationProcessingFilter bean I have "serverSideRedirect" set to false but it still seems to send a redirect rather than an include/forward. I know this...
Thanks for your response...pointing the loginFormUrl to a controller did the trick! Thanks again.
What controller? I'm using Spring MVC but there isn't a controller with form based authentication. Here are my security settings:
<bean id="filterChainProxy"...
How do I prepopulate the user name (from say a cookie value) using form based authentication? It's not clear to me where the developer "hook" is for this. I'm using a custom...
I'm not sure if this belongs here or not, but I am using Spring MVC & Spring Security using form based authentication and was wondering how I can set a cookie value once the user is successfully...
I figured it out....I had to wrong URI. Forgot to put the app name in the uri :
http://localhost:7001/{app name}/services/nameService
Thanks for you help!:)
No I'm not sure I'm pointing to the correct uri. In the WebServiceClient I'm using:
webServiceTemplate.sendSourceAndReceiveToResult("http://localhost:7001/services/nameService", source, result);
...
Here is the full stack trace:
Exception in thread "main" org.springframework.ws.client.WebServiceTransportException: Not Found [404]
at...
I'm using Spring WS 1.5 and am having a problem with my first simple web service that simply sends a first and last name which in turn gets echoed back in a response. When I point the browser to...
Thanks for the information. Once I upgraded to Eclipse 3.3 and WTP 2.0 everything worked!!!
I have Eclipse 3.2.2, WTP 1.5, and Spring IDE 2.0.1, however the class attribute is not auto completing. For instance, when I type:
<bean id="test" class="java.lang.">
nothing is suggested. ...
Ok, turns out we had a problem with a transaction that was suspended, waiting to be committed or rolledback. Once the DBA manually rolled back the transaction, everything seems to be working fine. ...
There are 2 JDBC XA datasources involved in this transaaction. However, when I comment out one of the datasources from the transaction, so there is only 1 jdbc XA datasource involved, the...