Search:

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

Page 1 of 2 1 2

Search: Search took 0.12 seconds.

  1. Replies
    1
    Views
    256

    integration with external framework

    Is there a standard approach to exposing another framework/system's objects as beans in the spring framework? For example, suppose a set of services are being written in another system but I would...
  2. Replies
    2
    Views
    525

    Java Configuration question

    Hi all,

    I've had a handful of headaches with java based bean configuration... basically I get stuck in a lot of circular dependencies.. ones I didn't have with xml.

    Here's my case

    My...
  3. Customizing AnnotationMethodHandlerAdapter

    We're trying to move our development over to annotation controllers, but have found that it's very difficult to customize. There are points we'd like to extend but either the methods are private,...
  4. Replies
    4
    Views
    1,102

    mm, yes, but..

    Sure, that works until this:

    @Scope("singleton")

    on both beans. Then whomp, infinite loop.
  5. Replies
    4
    Views
    1,102

    And yes, I know I can use @Autowire inside...

    And yes, I know I can use @Autowire inside classes TypeA and TypeB. However, I have a general dislike of autowiring due to the fact that I cannot go to a 'definition' to understand what the bean is...
  6. Replies
    4
    Views
    1,102

    circular dependencies WITHIN java config

    On a similar note:



    <bean id="a" class="TypeA">
    <property name="b" ref="b"/>
    </bean>

    <bean id="b" class="TypeB">
    <property name="a" ref="a"/>
  7. Replies
    2
    Views
    1,166

    circular dependencies with java config

    We've been slowing switching over to javaconfig for some of our spring configuration, but have been running into one problem fairly consistently.. circular dependencies.

    For example, I have a...
  8. Replies
    1
    Views
    727

    java config with parameters

    Hi,

    I'm attempting to use the java based wiring mechanism, but encountering a problem when the method requires a parameter.

    Here's a mock of my configuration:



    @Bean(name="myBean")...
  9. Thread: log spam

    by gjbaxter
    Replies
    0
    Views
    339

    log spam

    We recently moved (some) of our spring configuration from servlet initialization to container initialization by using the context listener and the context config:

    <!-- defines where to load...
  10. Replies
    0
    Views
    578

    keeping parameters order

    I have a problem due to a primitive load balancer requiring a particular parameter to be the 'first' on the query string. I was concerned because adding the parameter to the model map would not...
  11. Replies
    2
    Views
    1,000

    Er.. that won't resolve the issue, and...

    Er.. that won't resolve the issue, and effectively is no different that using addObject. The problem is that the model is not used at all during a forward... well, correction, the model values are...
  12. Replies
    2
    Views
    1,000

    model parameters in a forward:

    For a bit, some of our code (usually when talking to legacy struts code, but also some spring code) would do something such as:

    ModelAndView mv = new...
  13. Replies
    4
    Views
    1,734

    Wow.. we got caught by this one too. This seems...

    Wow.. we got caught by this one too. This seems rather... dangerous! We'll be fixing our code, but the fact that the framework is doing this caching including query parameters and consumers of the...
  14. Replies
    0
    Views
    502

    Custom XML using references

    Seems I lost my previous post, so let's try that again...

    I'm interested in injecting references to other beans within a custom XSD definition. For example:



    <myns:person name="George"
    ...
  15. Replies
    2
    Views
    1,051

    also...

    Some additional data:

    The DefaultNamespaceHandler has /WEB-INF/classes (where the special files have been placed) in its repositories list.
  16. Replies
    2
    Views
    1,051

    similar problem

    I have a similar problem. We don't actually deploy as a jar, simply as an 'exploded' jar. I've tried dropping my spring.handlers and spring.schemas in the 'classes' directory (where all our external...
  17. Replies
    1
    Views
    693

    BTW, I meant to write 'I've checked and the...

    BTW, I meant to write 'I've checked and the character encoding comes in null on the request'.

    Using Tomcat 5.5, firefox 2.0
  18. Replies
    1
    Views
    693

    to utf8 or not to utf8

    Hi all,

    I'm a tad at wits end here... I've been trying to get my pages to submit utf-8, which shouldn't be rocket science, but I must be so tired and frazzled that I'm doing something stupid.
    ...
  19. Replies
    9
    Views
    1,857

    onBind()

    Also.. btw, I know I can override the onBind() in the controller to handle this manually. I was just wondering whether there was some easy way to keep using the reflection based approach but handle...
  20. Replies
    9
    Views
    1,857

    legacy system

    The legacy system is generating the URL.. otherwise I'd just have them lowercase the request parameter!
  21. Replies
    9
    Views
    1,857

    Certainly! Here's the snippet of jsp: ...

    Certainly!

    Here's the snippet of jsp:

    <spring:form method="POST" commandName="userInfo">

    ...

    <spring:input path="Name"/>
  22. Replies
    9
    Views
    1,857

    BTW, the error also comes from the spring input...

    BTW, the error also comes from the spring input tag.. that ultimately calls the BeanWrapper as well.
  23. Replies
    9
    Views
    1,857

    case sensitive request parameters

    I hope there's a simple answer out there! I have some legacy systems I'm integrating with, and they pass a request parameter 'Name' for example, as opposed to 'name'. The problem is that the...
  24. You're right, but my example was a bad one. I'm...

    You're right, but my example was a bad one. I'm not really doing this.. it's just that some of my beans are initialized from data in the xml file and some from data in the database.

    I think...
  25. mmm, unfortunately

    Unfortunately, it is one of my beans that needs to be allocating other spring beans. Therefore it needs to be instantiated first. Therefore the post-processor won't work.

    I guess what I need is...
Results 1 to 25 of 31
Page 1 of 2 1 2