I am using ClassPathXmlApplicationContext followed by getBean to create my spring beans (Is that the right terminology?)
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.
ctx = ClassPathXmlApplicationContext(strXMLFile)
schedulerService = ctx.getBean("schedulerService")
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:
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?