Yes this can be done.
There are different strategies to achieve this. You could e.g. put the bean definition of your test data source and production data source in different Spring configuration...
Type: Posts; User: driesva; Keyword(s):
Yes this can be done.
There are different strategies to achieve this. You could e.g. put the bean definition of your test data source and production data source in different Spring configuration...
You could also have a look at the DelegatingFilterProxy class.
--
Regards
Dries
Do you mean Spring beans in general or only your data source bean?
If the latter is the case, I guess you are performing a JNDI lookup to get the data source?
It's possible to create a...
If you really want it, you could have it configured in Spring but I doubt if this is really useful in the context of your application. You'll probably end up with something like this:
...
Use constructor injection:
http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-constructor-injection
--
Regards
Dries
Hi Marten
Thanks for your quick reply.
I was suspecting that it was not a Spring problem :-) and I totally agree with you that it can be done in a cleaner way.
If found this scenario in code...
I'm using the latest Spring version (2.5.4 + JDK 1.5.0_15 ) and I recently came across a problem with overloaded setters. I've a setter to set a custom object and an overloaded version of the setter...
Why do you find it complicated? The following just works fine for me:
@Autowired
@Qualifier ("myService")
private MyService myService;
See also here...
Have a look here ?ttp://forum.springframework.org/showthread.php?t=53390
(Replace '?' with 'h' because it seems I'm not allowed to post any links...)
I've just noticed that Spring 2.5.x has support for JAX-WS. You could use SpringBeanAutowiringSupport It's explained here:...
Other possibilities:
* You could try this http://weblogs.java.net/blog/kohsuke/archive/2007/01/spring_support.html (I've tried this a long time ago but could not get it working wit Weblogic)
* Use...
No. The PropertiesBeanDefinitionReader in that example is used to load bean definitions from a Java properties file in addition to an XML file.
Yes.
--
Regards
Dries
Deploying a WAR in WL 10 does not require any specific steps...
Are you sure that your classes are compiled with the correct JDK? Please verify this by analysing the class file.
A similar...
The following seems to work:
StringReader sr = new StringReader("<?xml version=\"1.0\" ... </beans>");
InputSource is = new InputSource(sr);
GenericApplicationContext ctx = new...
The reason is that your message is null because it was not injected. You have to load the BeanFactory/ApplicationContext first. You can do this in the following way
ApplicationContext context =...
You can use Spring IDE http://springide.org/
See also this forum post http://forum.springframework.org/showthread.php?t=42245
--
Regards
Dries
Yes, APP-INF/classes will be used for unpackaged resources.
More info on APP-INF/lib and APP-INF/classes:
http://e-docs.bea.com/wls/docs100/programming/splitcreate.html#wp1102496
Works fine here on WL 10.
This is an extract of the web.xml from one of the web modules:
<context-param>
<param-name>locatorFactorySelector</param-name>
...
Changing the order results in the same problem when omitting the javaagent tag...
I don't think that this makes a difference. Having only "load-time-weaver" enables the "spring-configured" by...
Yes, I've tried couple of combinations with
<context:spring-configured /> and
<context:load-time-weaver/>
I've also tried to explicitly set the Weblogic load time weaver:
...
Hello
We have a JAX-WS web service deployed on Weblogic 10. Because an instance of the web service class is not managed by Spring I've to find a way to inject some properties.
One of the...