Just to answer my own Question:
That is easily possible using a ProxyFactoryBean to sort of implement the service Interface without a target and a MethodInterceptor to choose the correct target...
Type: Posts; User: chbeutenmueller; Keyword(s):
Just to answer my own Question:
That is easily possible using a ProxyFactoryBean to sort of implement the service Interface without a target and a MethodInterceptor to choose the correct target...
Hi folks,
I need to choose between different implementations of basically the same service based on one parameter.
So I got
public interface FirstService { doStuff(Choose by, Long...
The best place to save the data across requests would be the HttpSession or a Cookie, you could than use a context listener or filter to put the persisted data into your ThreadLocal.
That is strange. AFAIK webflow doesn't create or use new Threads on incoming requests (at least not 2.2), since this would mean, that all other ThreadLocal Spring variables like RequestContext etc....
Hi folks,
I don't know if it's a nice or a terribly stupid idea, but here it goes:
I have the requirement to choose between mutliple instances of basically similar services based on a flow...
Ask the java compiler settings of your favorite build tool, open a terminal and enter javac -help, or take a look at http://download.oracle.com/javase/6/docs/technotes/tools/windows/javac.html
Hi,
Is Spring EL supported in the "init-method" attribute in the xml bean definition? Is there a reference on which attributes spring el is supported?
Well there are basically two options but both won't work allways:
Get it from a HttpRequest from outside (well where is outside actually? and from where outside might someone adress the server)
...
Could this perhaps relate to:
https://jira.springsource.org/browse/SPR-7385
Then your solution is simple: Just reset the world. :)
Otherwise: I've never used ClasspathXmlApplicationContext in a...
http://static.springsource.org/spring/docs/3.0.x/reference/beans.html#beans-inner-beans
Especially:
"An inner bean definition does not require a defined id or name; the container ignores these...
Not without at least a glimpse of your spring config.
A wild guess: you named a bean dataSource that's no dataSource and turned autowiring on.
JNDI lookup to local datasources works without hostname (just declare a java:comp/env/jdbc/MyDatasourceName reference in spring, in the web.xml and in the container).
Take a look at the...
Hi folks,
I got a quick Question:
I'd like to implement some kind of "Service Registry" in Spring (OSGi is not an option).
One Solution is automatic service discovery by the registry:
...
For a certain request (!)
The HttpServletRequest Object holds all information you can get at runtime.
No stacktrace.
I don't have a declared variable in the main flow.
I just tried for instance: (with declared global transitions for sub1 and sub2 just saying on sub1 goto sub1 and on sub2 goto...
An action-state with an action method and different outcomes based on the users role should do the trick.
Take a look at:...
Hi folks,
this question is maybe a nearly faq for those who have worked a while with webflow:
I got a main (let's call it main) flow with several subflows (sub1, sub2). Users can change from...