Announcement Announcement Module
No announcement yet.
Bind to IP Address Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bind to IP Address


    I am using ClassPathXmlApplicationContext followed by getBean to create my spring beans (Is that the right terminology?)
    ctx = ClassPathXmlApplicationContext(strXMLFile)
    schedulerService = ctx.getBean("schedulerService")
    When I make a call to a class from the bean, I see the request being made to the server and the correct response coming back, but it is always from the first address on my machine.

    I need to specify which IP address the request is to be made from, it will be different for each thread so I need to configure it as a variable not hard coded in some XML file.

    The question is how do I do this? Do I use the spring framework to do this? or do I need to configure it at a lower level?

    I have tried looking around: plicationContext istableBeanFactory

    I also tried searchin for "spring getBean bind ip address"

    I can't seem to find the answer? Does anyone know how to do this?