Search:

Type: Posts; User: driesva; Keyword(s):

Search: Search took 0.01 seconds.

  1. Yes this can be done. There are different...

    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...
  2. Replies
    5
    Views
    8,222

    You could also have a look at the...

    You could also have a look at the DelegatingFilterProxy class.

    --
    Regards
    Dries
  3. Do you mean Spring beans in general or only your...

    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...
  4. Replies
    5
    Views
    1,360

    If you really want it, you could have it...

    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:



    ...
  5. Replies
    5
    Views
    1,360

    Use constructor injection: ...

    Use constructor injection:

    http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-constructor-injection

    --
    Regards
    Dries
  6. Replies
    3
    Views
    1,727

    Hi Marten Thanks for your quick reply. I was...

    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...
  7. Replies
    3
    Views
    1,727

    Overloaded setter problem

    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...
  8. Why do you find it complicated? The following...

    Why do you find it complicated? The following just works fine for me:



    @Autowired
    @Qualifier ("myService")
    private MyService myService;


    See also here...
  9. Have a look 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...)
  10. I've just noticed that Spring 2.5.x has support...

    I've just noticed that Spring 2.5.x has support for JAX-WS. You could use SpringBeanAutowiringSupport It's explained here:...
  11. Other possibilities: * You could try this...

    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...
  12. No. The PropertiesBeanDefinitionReader in that...

    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
  13. Replies
    1
    Views
    925

    Deploying a WAR in WL 10 does not require any...

    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...
  14. The following seems to work: StringReader...

    The following seems to work:



    StringReader sr = new StringReader("<?xml version=\"1.0\" ... </beans>");
    InputSource is = new InputSource(sr);
    GenericApplicationContext ctx = new...
  15. Replies
    2
    Views
    770

    The reason is that your message is null because...

    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 =...
  16. Replies
    2
    Views
    718

    You can use Spring IDE http://springide.org/ ...

    You can use Spring IDE http://springide.org/

    See also this forum post http://forum.springframework.org/showthread.php?t=42245

    --
    Regards
    Dries
  17. Yes, APP-INF/classes will be used for unpackaged...

    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
  18. Works fine here on WL 10. This is an extract...

    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>
    ...
  19. Replies
    8
    Views
    3,944

    Changing the order results in the same problem...

    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...
  20. Replies
    8
    Views
    3,944

    Yes, I've tried couple of combinations with ...

    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:

    ...
  21. Replies
    8
    Views
    3,944

    @Configurable and Weblogic 10

    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...
Results 1 to 21 of 21