Results 1 to 2 of 2

Thread: Setting up Application Context XML

  1. #1
    Join Date
    Oct 2010
    Posts
    5

    Default Setting up Application Context XML

    Hi Guys,

    I would like to ask your advise on how to setup my application context xml when the setting is like this:

    Code:
    import com.testing.webservice.client.OnTheMarketService;
    import com.testing.webservice.client.OnTheMarketServiceService;
    ...
    protected static OnTheMarketService getOnTheMarketServiceBean() {
    		if (onTheMarketServiceBean == null){
    			OnTheMarketServiceService service = new OnTheMarketServiceService();
    			onTheMarketServiceBean = service.getOnTheMarketServiceSoap11();
    		}
    		return onTheMarketServiceBean;
    	}
    This is working in a non-spring project. Now, I want to integrate this one in my spring. I don't know how to set this up in spring application context. Based on my understanding, we could do this via:

    Code:
    <bean id="OnTheMarketServiceService" class="com.testing.webservice.client.OnTheMarketServiceService"/>
    However, since the object that needs to be wired in my other classes should be of type OnTheMarketService, I don't know now how to work on this one.

    Can someone assist me on configuring this stuff?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    I am sorry, but this question has nothing to do with Spring Integration project. Please re-post in the appropriate forum.

Posting Permissions

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