Announcement Announcement Module
Collapse
No announcement yet.
Including Spring Configuration Files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Including Spring Configuration Files

    Hi,

    Here's my situation :
    - I have a full fledge 3D + Swing GUI
    - I have a Web Service, exposed thanks to XFire ( I couldn't find any documentation on how to do it with JAX RPC Spring support)

    Both parts of my application share quite a number of classes, but I think that maintaining 2 spring.xml files is a nightmare.
    So here's a way to create a commons.xml file that is included by the other spring bean description files ?

    Thanks a lot
    Sami Dalouche

  • #2
    Oh, BTW :

    The following way of splitting the beans definitions into several files is not really an option, since I want to expose a web service through xfire, and it looks like I have to use the xfire-servlet.xml file. It doesn't look like I can have several files, can I ?

    ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(
    new String[] {"applicationContext.xml", "applicationContext-part2.xml"});
    // of course, an ApplicationContext is just a BeanFactory
    BeanFactory factory = (BeanFactory) appContext;

    Comment


    • #3
      Maybe Spring's import feature might be helpful for you.

      Regards,
      Andreas

      Comment


      • #4
        Originally posted by Andreas Senft
        Maybe Spring's import feature might be helpful for you.

        Regards,
        Andreas
        Mmh, yes, thanks ! looks like it can do the trick !

        Comment

        Working...
        X