I finally figured out a way to achieve injecting a ServletContext object onto a quartz scheduler. I had to go about it in a slight different fashion but the end result is the same.
As Marten...
Type: Posts; User: BillyBacon; Keyword(s):
I finally figured out a way to achieve injecting a ServletContext object onto a quartz scheduler. I had to go about it in a slight different fashion but the end result is the same.
As Marten...
I see what you are saying now, I never create the MoreResourcesProcessor as it's own bean. I went ahead and tried what I think needed to be done and it didn't work because the jobClass property on...
Sorry, I didn't read the last sentence in my original reply. What do you mean by the bean I am using isn't a spring bean. The quartz job is a spring bean and configured in my spring config file,...
Yes, you are absolutely correct. Apologies for not adding the web.xml snippet to the original post! This is what I have in my web.xml which loads the spring config.
<context-param>
...
I've searched these forums along with google and cannot find the proper way to achieve setter injection on a Quartz scheduler bean. We are using Spring 3.0 and I've confirmed that the...
As a follow-up to this, if I add a slash to the end of the URL, nothing every works. Maybe this is the culprit?
Also, I forgot to mention in my original post, I looked at these posts already and...
Spring 3.0.5
Java 1.6
Tomcat 6.0.26
I have a SpringMVC controller and I've seen this work before but I can't figure out why my browser request NEVER hits this method. Ultimately I'm trying to...
Java 1.6
Tomcat 6
Spring 3.0.0
I've implemented my own database driven MessageSource and everything is working perfectly, until I need to refresh it. I can't figure out why when I call the...
That was it Marten! I had the annotation configuration in the wrong spring file.
After adding:
<context:annotation-config />
to the same spring configuration file that my Filter is...
I appreciate the continued responses Marten.
Unfortunately I've tried that configuration and it has not resolved the issue.
I have the following in my spring configuration file:
...
I've attempted to tell Spring to use annotations for auto-wiring by indicating the default-autowire="byType" (I've also tried 'byName') in my spring config file like so:
<beans...
Marten, I appreciate the reply.
Did you read my post with the code snippets? Using a DelagatingFilterProxy is exactly what I'm doing in the web.xml. Spring knows about my beans, I have the two...
Spring version 3.0.0
Java 1.6
Tomcat 1.6
I found several posts out there and all are very similar on how to implement this. It appears to be very straightforward but for some reason the bean I...
Nice! What are the odds!
Correct, I was thinking that after a SpringMVC controller did it's processing we could maybe forward the request to Surf to populate a portion (what we are calling a...
Alright, so here's what I seem to have working and provides the separation I think we are looking for.
I had to completely separate each spring configuration file in order to have 2 Dispatcher...
Thanks for the continued replies here, I really appreciate it.
The main reason we would like the separation is because we would like to stay in SpringMVC / JSP for most of our web site but need...
Ok, so I made a little bit of progress by simply renaming my 'LoginController' to 'LoginSpringMVCController'. I also put the auto-scanning spring configuration back into my web-application-config.xml...
I did try the auto-scanning with the following
<context:component-scan base-package="com.soundstrue.directweb.spring.controller"/>
My controller lives in that package with the @Controller...
Thanks so much for the response chris, I've taken a look at what you've suggested.
It appears that the alfresco wcm configs that you were referring to are identical to what 'surf install' gives...
I'm using this sample application which at the end of the tutorial gives you instructions to checkout the source from Subversion. Build and deploy to a container and you will have an existing Spring...
Thanks Kev, that worked!
Thanks Kev.
I'm trying to retrieve request parameters that are passed in via the URL when my DeclarativeWebScript is executed and after looking at the source code and running my code through a debugger, it...
I figured out a solution to this, not entirely sure if it's the preferred way or a best practice.
I was able to inject a javax.servlet.ServletContext object onto my DeclaritiveWebScript by having...
I don't see a way of getting a handle to a javax.servlet.ServletContext object so that I can get attributes out of that object which are in application scope. Here is my code:
public class...