Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. i doubt this is right way to define absolute path...

    i doubt this is right way to define absolute path to the properties file:

    <value>file:c:/config/three-plugin.properties</value>
    My suggestion is to try using class path instead of absolute path...
  2. Make following change in your code and try again:...

    Make following change in your code and try again:

    private static volatile FooConfiguration fooConfiguration;

    In addition, what is the WowoConfiguration? Was it a typo of FooConfiguration?
  3. You can define a PropertyPlaceholderConfigurer...

    You can define a PropertyPlaceholderConfigurer bean and load your properties in your root application context, these properties will be shared across all your servlet context.
  4. Replies
    1
    Views
    232

    You need to provide more details for what ...

    You need to provide more details for what exactly you want to do.
  5. Sounds like your have an EAR that has multiple...

    Sounds like your have an EAR that has multiple web apps. In this case, you can define an EAR level application context of which is root context of each webapp in EAR, i.e. the common utilities and...
  6. Replies
    2
    Views
    298

    As long as you put your component jars in the...

    As long as you put your component jars in the classpath, and the property file is visible from your PropertyPlaceholderConfigurer and no naming conflict, everything should work. If you have a common...
  7. You may want think about using Spring's...

    You may want think about using Spring's DispatcherServlet. it runs in its own namespace with its own application context.


    <servlet>
    <servlet-name>jndi resource</servlet-name>...
  8. From the code you posted, the MainManager,...

    From the code you posted, the MainManager, SecondManager and ThirdManager did *not* actually inherit your AbstractManager. Is this your typo? or it is the real code you were testing?
  9. Replies
    1
    Views
    234

    what exactly error did you get? Can you post the...

    what exactly error did you get? Can you post the stack trace?
  10. you can consider one of following ways: 1) add...

    you can consider one of following ways:
    1) add @PostConstruct annotation to one or more bean methods. once a lazy bean get initialized, the methods will be invoked.
    2) alternatively to #1, you can...
  11. Replies
    4
    Views
    296

    If your business logic only needs one bean...

    If your business logic only needs one bean definition for the 'BeanOne' class, but you have multiple ways to construct it, consider to use setter injection.
  12. Replies
    2
    Views
    596

    problem might be because of the 'autowire by...

    problem might be because of the 'autowire by type':


    <beans ... default-autowire="byType">

    because you have two beans with same type, and 'autowire by type' means that Spring will inject...
  13. Replies
    4
    Views
    296

    take a look at following code to see if that...

    take a look at following code to see if that answers your question:


    <bean id="bean1" class="package.BeanOne" >
    <constructor-arg type="int" value="12"/>
    <constructor-arg type="java.lang.String"...
  14. I am not familiar with Vaadin, but I would first...

    I am not familiar with Vaadin, but I would first check how Vaadin hook up with Spring's context bootstrap, i.e. how your internet application starts the Spring's Application Context loading.. just a...
  15. That's true but the original post did *not*...

    That's true but the original post did *not* expect to see different instance in the StandardJobToDo case. Instead the original post expected the abstractJobToDo case to show different instances,...
  16. Any errors in log? Please post if there is any.

    Any errors in log? Please post if there is any.
  17. Replies
    6
    Views
    438

    I don't think you followed me. I believe that...

    I don't think you followed me.

    I believe that you posted only part of the xml configuration and missed some other bean config, there is NO reason that the code you posed can work as you said. To...
  18. Replies
    6
    Views
    438

    In your xml, you are not even defining a bean of...

    In your xml, you are not even defining a bean of type SimpleTarget, you are defining a bean of Java String type instead.

    Try using this to see if that works:

    <bean id="injectBean"...
  19. Thanks for sharing your ideas. I agree what you...

    Thanks for sharing your ideas. I agree what you said about letting Spring framework to manage initialization order.
  20. Best practice to do layered initialization of Spring application context

    We have a Spring based web application, it has layered architecture: kernel, framework, application layer.

    The order of initialization is important by layer and within layer. Suppose we need to...
  21. Replies
    2
    Views
    264

    Here is an example for Spring DI: outputGenerator...

    Here is an example for Spring DI: outputGenerator is injected by Spring per xml bean config below

    public class OutputHelper
    {
    IOutputGenerator outputGenerator;

    public void...
  22. Replies
    1
    Views
    410

    Not sure if i understand your question exactly. I...

    Not sure if i understand your question exactly. I think you misunderstood the factory method getBean, you don't need constructor parameters here because they are already defined (and wired) in the...
  23. Replies
    1
    Views
    281

    I don't think currently Spring has supports on...

    I don't think currently Spring has supports on this.
  24. Did you say you want asynchronous architecture?...

    Did you say you want asynchronous architecture? if you can accept your "core services" as asynchronous services, then you shouldn't worry about latency of the services 'cause your core services will...
  25. Replies
    1
    Views
    329

    by looking at SpelExpression source, looks like...

    by looking at SpelExpression source, looks like getValue is thread safe
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4