Search:

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

Search: Search took 0.01 seconds.

  1. It looks like they are thread safe. According to...

    It looks like they are thread safe. According to the Spring WS release notes (http://sourceforge.net/project/shownotes.php?release_id=446150&group_id=73357):
  2. Replies
    16
    Views
    2,913

    I also tried setting up the bean in XML instead...

    I also tried setting up the bean in XML instead of using @Component:
    <bean id="aopExampleRunner" class="com.test.aop.AopExampleRunner">
    <property name="trader" ref="trader"/>
    </bean>and I got...
  3. Replies
    16
    Views
    2,913

    I changed it to this: public class...

    I changed it to this:
    public class AopExampleRunner {

    private Trader trader;

    @Autowired
    private CorrectWay correct;

    @Autowired
    public void setTrader(Trader trader) {
  4. Replies
    16
    Views
    2,913

    I put my example project on github:...

    I put my example project on github: https://github.com/jurberg/spring-aop-mixed. Running as is, it fails with the following error:
    Exception in thread "main"...
  5. Replies
    16
    Views
    2,913

    I think I confused things with my original...

    I think I confused things with my original example. I first tried doing an introduction on a concrete class with no interface. When that failed with the error I posted, I tried factoring out the...
  6. Replies
    16
    Views
    2,913

    I understand that Spring prefers programming to...

    I understand that Spring prefers programming to interfaces. I knew that before I posted this question. If I'm in a situation where I have an existing code base that's using a mix of interface based...
  7. Replies
    16
    Views
    2,913

    Ok. So I have the same example as above except I...

    Ok. So I have the same example as above except I merge my Trader and TraderImpl into a single Trader class:

    @Component
    public class Trader {

    private int id;

    private String name;
    ...
  8. Replies
    16
    Views
    2,913

    One of the areas I'm weak in Spring is AOP. I'm...

    One of the areas I'm weak in Spring is AOP. I'm working thru the reference guide and creating a simple example to test it out. What I was trying to determine is if I can mix JDK and CGLIB proxies...
  9. Replies
    16
    Views
    2,913

    I was under the impression that Spring would...

    I was under the impression that Spring would choose JDK proxies or CGLIB proxies depending on whether there was an interface. Originally I did not have an interface and I would receive that error...
  10. Replies
    16
    Views
    2,913

    Here is my spring config:

    Here is my spring config:


    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
  11. Replies
    16
    Views
    2,913

    Introduction with concrete classes

    I was working thru the spring 3.0 reference and was trying out the @DeclareParents annotation. I was only able to get it to work when I used interfaces. When I try wiring up a concrete class, I get...
  12. Replies
    0
    Views
    609

    XML Config for @Async?

    Hi all,

    Is there a way to use XML config for an async method instead of using the @Async annotation?

    Thanks,
    John
  13. Replies
    3
    Views
    1,321

    Nevermind. This looks like some weird issue...

    Nevermind. This looks like some weird issue between STS and Maven. When I clean the project in both Maven and Eclipse, it works fine in the server in STS. If I do a Maven package (whether from the...
  14. Replies
    3
    Views
    1,321

    Here is the current web.xml:

    Here is the current web.xml:



    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
  15. Replies
    3
    Views
    1,321

    Config file location in a web app

    I have a Spring application I have started using Spring MVC, Spring WS and Hibernate. I started out by placing the application config files in my WEB-INF/spring directory. My web.xml brings them in...
  16. Replies
    0
    Views
    661

    Setting up a Spring DM Web Platform

    I'm attempting to setup a Spring DM Web Environment running on Equinox using Maven. I've looked at the download examples and have read thru the Spring DM book, but I would like to use Spring 3.0 and...
Results 1 to 16 of 16