Results 1 to 4 of 4

Thread: Including Spring Configuration Files

  1. #1

    Default 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. #2

    Default

    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;

  3. #3
    Join Date
    Aug 2004
    Posts
    2,715

    Default

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

    Regards,
    Andreas

  4. #4

    Default

    Quote 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 !

Similar Threads

  1. Gaijin Studio for Spring MVC 0.9.2 Released
    By dadams in forum Announcements
    Replies: 8
    Last Post: May 30th, 2007, 10:48 PM
  2. jbpm setup through spring
    By gnic in forum Container
    Replies: 1
    Last Post: Sep 19th, 2005, 09:36 PM
  3. (Tricky part) Spring beans and jar files
    By p_e_t_e_r in forum Container
    Replies: 1
    Last Post: Sep 17th, 2005, 08:19 PM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 5
    Last Post: Aug 27th, 2004, 07:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •